Jenkins Pipeline - global pipeline library updates show up in job's list of recent changes, how to prevent this?

北战南征 提交于 2020-05-26 07:57:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!