Jenkins配置被SYSTEM用户异常恢复 [英] Jenkins configurations gets reverted by SYSTEM user anomaly
问题描述
我在Kubernetes上以pod的形式运行Jenkins版本2.85(关联性设置为一个workernode).我正在使用 Salt Jenkins模块创建工作a>通过将XML传递到此模块.
I am running Jenkins version 2.85 on Kubernetes as pod(Affinity set to one workernode). I am creating Jobs using Salt Jenkins module by passing XML to this module.
我正在使用Jenkins Global Library执行作业执行.
I am using Jenkins Global Library for preforming job execution.
我的作业配置如下所示
My Job config looks like this
我正在使用诸如repoURL,componet等之类的参数调用GobalLibrary,
I am calling GobalLibrary with my parameters like repoURL, componet etc..,
几周来一切进展顺利,现在我陷入一种奇怪的情况,我的工作配置(config.xml)自动更新/恢复.
Things goes well for weeks and now I landed to a weird situation where my job configurations(config.xml) gets updated/revert automatically.
间歇地,我的带参数构建"选项消失了,在Jenkins GUI中只能看到立即构建".最初,我认为有人正在这样做,因此要跟踪我在Jenkins中安装的Job config history插件的配置更改,我发现很奇怪.拥有"SYSTEM"用户名的人正在进行/还原更改.
Intermittently my "Build with parameter" options disappears and I can see only "Build now" in Jenkins GUI. Initially I thought someone is doing this, so to track the config changes I installed Job config history plugin in Jenkins and what I find is strange. Someone with "SYSTEM" username is making/reverting changes.
这是它的样子
我发现SYSTEM用户仅还原JOB配置更改,而不还原PIPELINE.
and what I find is SYSTEM user revert only JOB config changes, not the PIPELINE.
我不确定幕后有什么问题以及如何停止或解决此问题.这是我的Production实例,所以我更担心.
I am not sure what's going wrong behind the scenes and how to stop or fix this. This is my Production instance so I am more worried.
我可以在Jenkins中看到一个SYSTEM用户
I can see a SYSTEM user in my Jenkins
但我无法删除该用户
我为此找到了几个相关问题,但没有答案
Few relevant Question I find for this but with no answers
我不确定这个Jenkins Bug或某些插件在玩我的灵魂.
I am not sure if this Jenkins Bug or some plugin is playing with my soul.
需要帮助! :(
推荐答案
好的,我找到了解决这个问题的方法.
Okay I find the answer to this problem.
我在Jekins Global Library中使用了类似这样的 properties
I have used properties in my Jekins Global Library something like this
// Disable concurrent builds
//properties([disableConcurrentBuilds()])
它会覆盖我的外部作业配置(通过盐完成).
which overrides my external job configuration(done via salt).
从此博客中获得的提示: https://st-g.de/2016/12/parametrized-jenkins-管道
Hint I get from this blog: https://st-g.de/2016/12/parametrized-jenkins-pipelines
这篇关于Jenkins配置被SYSTEM用户异常恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!