问题
I don't want my global pipeline changes to show up in Jenkins list of changes.
Whenever a build is ran and there are global pipeline updates, the list of changes for that build include all updates made to the global pipeline. I only want the list of changes that the build picked up from the SCM branch that is being built, not any of the global pipeline updates. Is this possible?
回答1:
Such option to disable the changelog exists since version 2.9 of the Pipeline Shared Groovy Libraries Plugin:
@Library(value="mylib", changelog=false)
回答2:
You can also uncheck the corresponding box in the Jenkins system settings if you are administrator for your Jenkins, see here:
回答3:
In addition to @StephenKing's response, if you use the library
step, do it this way
library identifier: 'mylib', changelog: false
More info on the topic in this improvement request
回答4:
I have encountered the same problem and did an ugly workaround .
just at any change of the pipeline library put a prefix in your source control commit and then when you parse your changes you can ignore the changes with the commit prefix comment
I hope it helps
来源:https://stackoverflow.com/questions/46735908/jenkins-pipeline-global-pipeline-library-updates-show-up-in-jobs-list-of-rece