Jenkins multibranch pipeline Scan without execution

前端 未结 4 2059
不思量自难忘°
不思量自难忘° 2021-02-06 22:04

Is it possible to Scan a Multibranch Pipeline to detect the branches with a Jenkinsfile, but without the pipeline execution?

My projects have different branc

4条回答
  •  囚心锁ツ
    2021-02-06 22:23

    If you are using job-dsl you could simply do this and it will scan everything without actually running the build the first time you index.

    organizationFolder('Some folder name') {
      buildStrategies {
        skipInitialBuildOnFirstBranchIndexing()
      }
    }
    

提交回复
热议问题