Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuration of Jobs getting updated by System user on Jenkins

Tags:

jenkins

We are using Jenkins enterprise version. Whenever we update job configs there are cases where the config is again updated with the System user to what it was earlier.

We are unable to understand what process is doing that.

Thank you for the help in advance.

I'm unable to attach a screenshot to give an idea of what is happening as my reputation is not high enough.

like image 510
moiz134 Avatar asked Sep 03 '14 10:09

moiz134


1 Answers

Most likely, the reason is in the fact, that your job includes "Parameterized Jenkins Pipeline" stage (thanks to @rjohnston for the "Jenkinsfile" comment above, which is related to this). And in this case, once the parameters code "is included at the top level of the pipeline script, any pipeline execution resets the job’s parameters to the specified values" (as it is pointed out in this article: Parameterized Jenkins Pipelines).

So, you need to change config parameters not in the job configuration page itself, but in the pipeline script (source code in the repository). To find its relative address, you can refer to the job configuration page ("/configure"), "Pipeline" tab, "Script Path" field.

like image 157
evgeny9 Avatar answered Oct 22 '22 10:10

evgeny9