简体   繁体   English

Jenkins在自动重启后重置Gerrit \\ Sonar插件中的用户名和密码

[英]Jenkins resets username and password in Gerrit\Sonar plugin after autorestart

I use Jenkins with Gerrit-Sonar plugin and face a very weird issue: 我将Jenkins与Gerrit-Sonar插件一起使用,面临一个非常奇怪的问题:

  1. I configure the plugin to handle Gerrit REST API with my username\\password 我将插件配置为使用我的用户名\\密码来处理Gerrit REST API
  2. When I run the job the first time, it passes, but after it Jenkins goes to auto-restart, saying "Please wait, Jenkins is getting ready to work." 第一次运行该作业时,它会通过,但是在此之后,Jenkins会自动重启,并说:“请稍等,Jenkins准备开始工作了。”
  3. After this my credentials in plugin are reset to default ("jenkins"\\"gibberish"). 此后,我在插件中的凭据被重置为默认值(“ jenkins” \\“乱码”)。
  4. Build fails due to 401 to Gerrit 由于401到Gerrit,构建失败

When I re-save the credentials, they are stored only till the next weird auto-restart. 当我重新保存凭据时,它们只会存储到下一次奇怪的自动重启为止。

Has anyone seen this issue before or what could be the cause of it? 有没有人看过这个问题,或者是什么原因造成的?

Thanks! 谢谢!

这不是您问题的答案,但可能是一种解决方法:在Sonar-Gerrit插件1.0.8版本中,可以在插件级别覆盖Gerrit凭据。

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

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