Skip to content

Commit

Permalink
Add skipInitialBuildOnFirstBranchIndexing DSL to avoid redundant CI b…
Browse files Browse the repository at this point in the history
…uilds

skipInitialBuildOnFirstBranchIndexing is added to buildStrategies to
skip redundant CI builds on already opened PRs.
  • Loading branch information
aaradhak committed Jan 23, 2025
1 parent 65efc68 commit 8efa15e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jobs/seed-github-ci.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ node { repos.each { repo ->
'jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl' {
ignoreTargetOnlyChanges(true)
}
// Skip initial builds during the first branch indexing
'jenkins.branch.buildstrategies.basic.SkipInitialBuildOnFirstBranchIndexing' {
}
}
}
}
Expand Down

0 comments on commit 8efa15e

Please sign in to comment.