小编Pra*_*gam的帖子

带有 Bitbucket 分支插件的多分支管道的 DSL 种子作业抑制分支的自动构建

有一个 DSL 工作来在 jenkins 中创建多分支管道作业,运行 Jenkins2.107.1和插件: 'Branch API Plugin' 2.0.18, 'Bitbucket Branch Source Plugin' 2.2.10

我找不到合适的配置功能来启用“抑制自动 SCM 触发”的属性,请帮忙。

这是我的工作,但它会在扫描分支后立即触发构建:

multibranchPipelineJob("job") {
  configure {
    it / sources / data / 'jenkins.branch.BranchSource' / source(class: 'com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource') {
      credentialsId('..')
      id("..")
      checkoutCredentialsId("..")
      repoOwner("owner")
      repository("my-repo")
      includes()
      excludes("PR-*")
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

dsl jenkins jenkins-job-dsl

3
推荐指数
1
解决办法
3003
查看次数

标签 统计

dsl ×1

jenkins ×1

jenkins-job-dsl ×1