Jenkins Pipeline - global pipeline library updates

2020-07-23 04:34发布

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?

4条回答
Ridiculous、
2楼-- · 2020-07-23 04:51

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

查看更多
Summer. ? 凉城
3楼-- · 2020-07-23 04:55

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楼-- · 2020-07-23 04:57

Such option to disable the changelog exists since version 2.9 of the Pipeline Shared Groovy Libraries Plugin:

@Library(value="mylib", changelog=false) 
查看更多
家丑人穷心不美
5楼-- · 2020-07-23 05:03

You can also uncheck the corresponding box in the Jenkins system settings if you are administrator for your Jenkins, see here:

enter image description here

查看更多
登录 后发表回答