简体   繁体   English

Jenkins生成后操作保存错误

[英]Jenkins post-build action save error

In my Jenkins project configuration I'm trying to add a post-build action to send emails to a specific email after every build. 在我的Jenkins项目配置中,我试图添加一个构建后操作,以在每次构建后将电子邮件发送到特定电子邮件。

I add the E-mail Notification post-build action and after entering the recipients I click save. 我添加了电子邮件通知生成后操作,并在输入收件人后单击“保存”。 After clicking save Jenkins gives an error saying A problem occurred while processing the request. 单击“保存”后,Jenkins出现错误,指出A problem occurred while processing the request. Below that is a massive stack trace. 在此之下是大量堆栈跟踪。

I just checked and whenever I make changes to my other post-build actions and click save I have the same issue. 我刚刚检查了一下,每当我对其他后生成操作进行更改并单击“保存”时,我都会遇到相同的问题。 Now when I make changes to like the description for example it gives the same error but seems to save my changes. 现在,当我进行更改以使其类似于示例时,它给出了相同的错误,但似乎可以保存我的更改。

I have installed the following plugins. 我已经安装了以下插件。 Not sure of one of these is causing the issue. 不确定其中之一是引起问题的原因。

  • GitHub Plugin GitHub插件
  • Clover Plugin 三叶草插件
  • Checkstyle Plug-in Checkstyle插件
  • TAP Plugin TAP插件
  • Embeddable Build Status Plugin 可嵌入的构建状态插件
  • NodeJS Plugin NodeJS插件
  • GitHub Pull Request Builder Plugin GitHub Pull Request Builder插件

Any ideas on how I can fix this error? 关于如何解决此错误的任何想法? Basically my end goal is to enable an e-mail notification post-build action but it seems to be more widespread in terms of saving project configuration. 基本上,我的最终目标是启用电子邮件通知生成后操作,但是在保存项目配置方面,它似乎更加普及。 Let me know if there is any other information or details I can provide. 让我知道我是否可以提供其他信息或详细信息。

Since my reputation is too low to write a comment with some follow-up questions, based on the amount of information you provided, your problems might be connected to the following: 由于我的声誉太低,无法针对一些后续问题发表评论,因此,根据您提供的信息量,您的问题可能与以下内容有关:

  • reloading configuration from disk - this is not the best thing to do. 从磁盘重新加载配置-这不是最好的事情。 If you made direct changes to Jenkins files, it's best to restart Jenkins, otherwise problems like this might randomly occur (another thing that sometimes happens is executors suddenly dying ) 如果您直接更改了Jenkins文件,则最好重新启动Jenkins,否则可能会随机发生这样的问题(有时发生的另一件事是执行器突然死掉

  • wrong file permissions - I would check, just in case, if the Jenkins user has write permissions to all files. 错误的文件权限-为了以防万一,Jenkins用户是否具有对所有文件的写权限,我将进行检查。

  • (unlikely) installing a plugin in a non-standard way (for example without restarting Jenkins?) (不太可能)以非标准方式安装插件(例如,无需重新启动Jenkins?)

I hope this was useful. 我希望这是有用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM