Jenkins Pipeline - 全局管道库更新显示在作业的最近更改列表中,如何防止这种情况? [英] Jenkins Pipeline - global pipeline library updates show up in job's list of recent changes, how to prevent this?

查看:12
本文介绍了Jenkins Pipeline - 全局管道库更新显示在作业的最近更改列表中,如何防止这种情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望我的全局管道更改显示在 Jenkins 更改列表中.

I don't want my global pipeline changes to show up in Jenkins list of changes.

每当运行构建并且有全局管道更新时,该构建的更改列表包括对全局管道所做的所有更新.我只想要构建从正在构建的 SCM 分支中获取的更改列表,而不是任何全局管道更新.这可能吗?

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?

推荐答案

管道共享 Groovy 库插件:

@Library(value="mylib", changelog=false) 

这篇关于Jenkins Pipeline - 全局管道库更新显示在作业的最近更改列表中,如何防止这种情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆