简体   繁体   English

防止 Jenkins 多分支管道触发新分支的构建

[英]Prevent Jenkins multibranch pipeline from triggering builds for new branches

I have a multibranch pipeline job for deploying an application in IIS.我有一个多分支管道作业,用于在 IIS 中部署应用程序。 Because of it, I cannot run the job (that deploys a new version of the application) when new branches are discovered.因此,当发现新分支时,我无法运行该作业(部署新版本的应用程序)。

I need to configure the trigger only to discover new branches and do not trigger the job.我只需要配置触发器来发现新分支而不触发作业。

In your Branch Sources section you can add a Property named Suppress automatic SCM triggering.在您的Branch Sources部分中,您可以添加一个名为 Suppress automatic SCM triggering 的属性。

This prevents Jenkins from building everything with an Jenkinsfile .这可以防止 Jenkins 使用Jenkinsfile构建所有内容。

More Info更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Jenkins Multibranch Pipeline触发来自多个SCM存储库的构建 - Jenkins Multibranch Pipeline triggering builds from multiple SCM repos Jenkins Multibranch管道不会从Github触发PR构建 - Jenkins Multibranch pipeline not triggering PR builds from Github 如何跨分支限制Jenkins并发多分支管道构建? - How to limit Jenkins concurrent multibranch pipeline builds across branches? Jenkins-MultiBranch管道:无法从源获取分支 - Jenkins - MultiBranch Pipeline : Could not fetch branches from source Jenkins 多分支管道在不相关的分支上触发管道 - Jenkins multibranch pipeline triggers pipeline on unrelated branches 如何限制 Jenkins 并发多分支管道构建? - How to limit Jenkins concurrent multibranch pipeline builds? 当与多个git repos一起使用时,如何防止Jenkins管道(工作流)触发多个构建? - How do I prevent Jenkins pipeline (workflow) from triggering multiple builds when used with multiple git repos? 获取 Jenkins 多分支管道中的分支列表 - Get list of branches in Jenkins multibranch pipeline 从其他多分支管道触发多分支管道作业 - Triggering a multibranch pipeline job from an other multibranch pipeline 多分支 Jenkins 管道停止扫描所有分支中的 Jenkins 文件 - Multibranch Jenkins pipeline stop scanning for Jenkins file in all branches
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM