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;








0















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?










share|improve this question




























    0















    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?










    share|improve this question
























      0












      0








      0








      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?










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 21:44









      agr.csagr.cs

      31




      31






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer

























          • 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











          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
          );



          );













          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer

























          • 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















          0














          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.






          share|improve this answer

























          • 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













          0












          0








          0







          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.






          share|improve this answer















          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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

















          • 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



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript