How does Jenkins handle the following scenarios for long running builds?Jenkins - abort running build if new one is startedHow to restart Jenkins manually?Jenkins: update SCM without triggering a build?Jenkins run batch command only at periodically build and not at polling buildJenkins plugin - Merge build queue?How to prevent Jenkins SCM polling from triggering a build on branch creationWhich one has higher priority, 'Poll SCM' or 'Build periodically' in Jenkins?How to schedule Jenkins to run based on Poll SCM and Periodically on same job?Jenkins periodic buildPrevent Jenkins from polling SCM (Git) while build is runningJenkins pipeline with Git polling doesn't run
What is the reason for setting flaps 1 on the ground at high temperatures?
Does the Nuka-Cola bottler actually generate nuka cola?
Tikz-cd diagram arrow passing under a node - not crossing it
Wizard clothing for warm weather
How many potential different endings are there for a football match?
Grandpa has another non math question
How do we say "within a kilometer radius spherically"?
Proving that a Russian cryptographic standard is too structured
Why did Intel abandon unified CPU cache?
How (un)safe is it to ride barefoot?
If there's something that implicates the president why is there then a national security issue? (John Dowd)
How to get depth and other lengths of a font?
Convert only certain words to lowercase
Is it okay to have a sequel start immediately after the end of the first book?
Why do radiation hardened IC packages often have long leads?
Who is "He that flies" in Lord of the Rings?
A Salute to Poetry
What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?
What should I be wary of when insurer is taking a lot of time to decide whether car is repairable or a total loss?
Rail-to-rail op-amp only reaches 90% of VCC, works sometimes, not everytime
How to write a convincing religious myth?
Was Self-modifying-code possible just using BASIC?
Can there be absolute velocity?
Generate certain list from two lists
How does Jenkins handle the following scenarios for long running builds?
Jenkins - abort running build if new one is startedHow to restart Jenkins manually?Jenkins: update SCM without triggering a build?Jenkins run batch command only at periodically build and not at polling buildJenkins plugin - Merge build queue?How to prevent Jenkins SCM polling from triggering a build on branch creationWhich one has higher priority, 'Poll SCM' or 'Build periodically' in Jenkins?How to schedule Jenkins to run based on Poll SCM and Periodically on same job?Jenkins periodic buildPrevent Jenkins from polling SCM (Git) while build is runningJenkins pipeline with Git polling doesn't run
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want to know what is the jenkins workflow in the following scenario.
Scenario 1:
Let's say a build job takes 30 minutes to complete and in the meantime the developers submit commits 1, 2 and 3 in the 1st minute and then commits 4, 5 are submitted in the 15th minute. Will jenkins create 2 separate build jobs in the queue if the polling frequency for SCM change is 1 minute? Or will it combine all the 5 commits into a single build job?
Scenario 2:
Also, what will happen if the quiet period is set to 5 minutes with SCM polling frequency set to 1 minute, and the long running build job is running and in the meantime 5 commits come at 1st minute, 4th minute, 11th minute, 15th minute and 16th minute after the previous build job was initiated? Will it still add two build jobs to the queue? Or will it combine these 5 commits into a single build?
jenkins jenkins-pipeline
add a comment |
I want to know what is the jenkins workflow in the following scenario.
Scenario 1:
Let's say a build job takes 30 minutes to complete and in the meantime the developers submit commits 1, 2 and 3 in the 1st minute and then commits 4, 5 are submitted in the 15th minute. Will jenkins create 2 separate build jobs in the queue if the polling frequency for SCM change is 1 minute? Or will it combine all the 5 commits into a single build job?
Scenario 2:
Also, what will happen if the quiet period is set to 5 minutes with SCM polling frequency set to 1 minute, and the long running build job is running and in the meantime 5 commits come at 1st minute, 4th minute, 11th minute, 15th minute and 16th minute after the previous build job was initiated? Will it still add two build jobs to the queue? Or will it combine these 5 commits into a single build?
jenkins jenkins-pipeline
add a comment |
I want to know what is the jenkins workflow in the following scenario.
Scenario 1:
Let's say a build job takes 30 minutes to complete and in the meantime the developers submit commits 1, 2 and 3 in the 1st minute and then commits 4, 5 are submitted in the 15th minute. Will jenkins create 2 separate build jobs in the queue if the polling frequency for SCM change is 1 minute? Or will it combine all the 5 commits into a single build job?
Scenario 2:
Also, what will happen if the quiet period is set to 5 minutes with SCM polling frequency set to 1 minute, and the long running build job is running and in the meantime 5 commits come at 1st minute, 4th minute, 11th minute, 15th minute and 16th minute after the previous build job was initiated? Will it still add two build jobs to the queue? Or will it combine these 5 commits into a single build?
jenkins jenkins-pipeline
I want to know what is the jenkins workflow in the following scenario.
Scenario 1:
Let's say a build job takes 30 minutes to complete and in the meantime the developers submit commits 1, 2 and 3 in the 1st minute and then commits 4, 5 are submitted in the 15th minute. Will jenkins create 2 separate build jobs in the queue if the polling frequency for SCM change is 1 minute? Or will it combine all the 5 commits into a single build job?
Scenario 2:
Also, what will happen if the quiet period is set to 5 minutes with SCM polling frequency set to 1 minute, and the long running build job is running and in the meantime 5 commits come at 1st minute, 4th minute, 11th minute, 15th minute and 16th minute after the previous build job was initiated? Will it still add two build jobs to the queue? Or will it combine these 5 commits into a single build?
jenkins jenkins-pipeline
jenkins jenkins-pipeline
asked Mar 24 at 21:44
agr.csagr.cs
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If polling every minute, in scenario #1, Jenkins will start two separate jobs, one for commits 1, 2, and 3, and a second for commits 4 and 5.
For scenario #2, Jenkins will also create two jobs if the quiet period is 5 minutes, based on your example.
There are a few solutions that help address the problem of new and old builds running concurrently. One option is to use the Milestone Pipeline plugin to automatically abort multiple concurrent jobs running, once one of them has reached a milestone.
The second is that some SCM plugins, such as the GitHub plugin, support a build trigger Cancel build on update
feature, that will automatically stop running jobs when a new job is triggered via an update.
A third option is to use a Groovy script that executes as part of the build, and detects running jobs for older commits and aborts them.
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55328871%2fhow-does-jenkins-handle-the-following-scenarios-for-long-running-builds%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If polling every minute, in scenario #1, Jenkins will start two separate jobs, one for commits 1, 2, and 3, and a second for commits 4 and 5.
For scenario #2, Jenkins will also create two jobs if the quiet period is 5 minutes, based on your example.
There are a few solutions that help address the problem of new and old builds running concurrently. One option is to use the Milestone Pipeline plugin to automatically abort multiple concurrent jobs running, once one of them has reached a milestone.
The second is that some SCM plugins, such as the GitHub plugin, support a build trigger Cancel build on update
feature, that will automatically stop running jobs when a new job is triggered via an update.
A third option is to use a Groovy script that executes as part of the build, and detects running jobs for older commits and aborts them.
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
add a comment |
If polling every minute, in scenario #1, Jenkins will start two separate jobs, one for commits 1, 2, and 3, and a second for commits 4 and 5.
For scenario #2, Jenkins will also create two jobs if the quiet period is 5 minutes, based on your example.
There are a few solutions that help address the problem of new and old builds running concurrently. One option is to use the Milestone Pipeline plugin to automatically abort multiple concurrent jobs running, once one of them has reached a milestone.
The second is that some SCM plugins, such as the GitHub plugin, support a build trigger Cancel build on update
feature, that will automatically stop running jobs when a new job is triggered via an update.
A third option is to use a Groovy script that executes as part of the build, and detects running jobs for older commits and aborts them.
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
add a comment |
If polling every minute, in scenario #1, Jenkins will start two separate jobs, one for commits 1, 2, and 3, and a second for commits 4 and 5.
For scenario #2, Jenkins will also create two jobs if the quiet period is 5 minutes, based on your example.
There are a few solutions that help address the problem of new and old builds running concurrently. One option is to use the Milestone Pipeline plugin to automatically abort multiple concurrent jobs running, once one of them has reached a milestone.
The second is that some SCM plugins, such as the GitHub plugin, support a build trigger Cancel build on update
feature, that will automatically stop running jobs when a new job is triggered via an update.
A third option is to use a Groovy script that executes as part of the build, and detects running jobs for older commits and aborts them.
If polling every minute, in scenario #1, Jenkins will start two separate jobs, one for commits 1, 2, and 3, and a second for commits 4 and 5.
For scenario #2, Jenkins will also create two jobs if the quiet period is 5 minutes, based on your example.
There are a few solutions that help address the problem of new and old builds running concurrently. One option is to use the Milestone Pipeline plugin to automatically abort multiple concurrent jobs running, once one of them has reached a milestone.
The second is that some SCM plugins, such as the GitHub plugin, support a build trigger Cancel build on update
feature, that will automatically stop running jobs when a new job is triggered via an update.
A third option is to use a Groovy script that executes as part of the build, and detects running jobs for older commits and aborts them.
edited Mar 24 at 22:53
answered Mar 24 at 22:39
ck1ck1
3,2921815
3,2921815
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
add a comment |
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
thanks a ton. A follow up question, if the pipeline isn't configured to run concurrently then in that case will there be a single build for all the 5 commits?
– agr.cs
Mar 25 at 0:25
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
Yes, if concurrent builds are disabled, the first build must end before any subsequent builds are started.
– ck1
Mar 25 at 1:44
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55328871%2fhow-does-jenkins-handle-the-following-scenarios-for-long-running-builds%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown