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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With