If you have a workflow which uses multiple git repositories, each git push triggers a build in Jenkins.
If I have a workflow job configured to poll 10 git repositories and I pushed changes to all of them [quite possible when doing a release build] - that's 10 builds in the queue. This is both good and bad. Bad because we will have changes in different repositories and we would like to kick off the build once all the files are in. At the same time I don't want to avoid polling the repositories.
stage 'REPO-1' {
git branch: "feature/testbranch", changelog: true, poll: true, url: 'ssh://[email protected]/repo1.git', credentialsId: 'xxx' }stage 'REPO-2' {
git branch: "feature/testbranch", changelog: true, poll: true, url: 'ssh://[email protected]/repo2.git', credentialsId: 'xxx' }
Is there a way I can prevent this behavior perhaps introduce a delay in polling.