Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26175

Allow exclusive execution plugin skip wait for end of execution of jobs

      There are situations when executing build phase of a job marked with exclusive execution should not wait till all currently running jobs have finished.

      E.g. imagine you have a planned backup of your SCM server. You have typical tasks that download projects from SCM and compile them and run tests. Execution of these jobs can take very long but it is unlikely they fail once they have started (SCM is queried on start). If you want to avoid any other job to start running if SCM backup process starts you can schedule a dummy job marked with exclusive execution that simply waits till SCM server is back online in its build phase.

      The problem with the scenario described is that if currently running jobs take very long to complete, actual check on SCM status will not be performed until such long execution has finished. It could happen that those long-running tasks finish way after SCM server is back online, so Jenkins execution time is wasted (no jobs are run due to dummy job still in pre-build phase).

      For these an other reasons IMHO it would be great if waiting for running jobs, when enabling exclusive execution, could be skipped by configuration.

          [JENKINS-26175] Allow exclusive execution plugin skip wait for end of execution of jobs

          Pull-request submitted: https://github.com/jenkinsci/exclusive-execution-plugin/pull/4

          Awaiting approval.

          Fernando Miguelez added a comment - Pull-request submitted: https://github.com/jenkinsci/exclusive-execution-plugin/pull/4 Awaiting approval.

          Code changed in jenkins
          User: fmiguelez
          Path:
          src/main/java/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper.java
          src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config.jelly
          src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config_es.properties
          src/main/resources/hudson/plugins/execution/exclusive/Messages.properties
          src/main/resources/hudson/plugins/execution/exclusive/Messages_es.properties
          http://jenkins-ci.org/commit/exclusive-execution-plugin/6ce7ef5677a127544c12af2fe55228ebc025f76d
          Log:
          [FIXED JENKINS-26175] Exclusive execution mode can now be configured to
          skip waiting for currently running jobs
          [FIXED JENKINS-24854] Shutdown mode is now also cancelled if job is
          canceled in pre-build phase
          [FIXED JENKINS-26351] Spanish translation added

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: fmiguelez Path: src/main/java/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper.java src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config.jelly src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config_es.properties src/main/resources/hudson/plugins/execution/exclusive/Messages.properties src/main/resources/hudson/plugins/execution/exclusive/Messages_es.properties http://jenkins-ci.org/commit/exclusive-execution-plugin/6ce7ef5677a127544c12af2fe55228ebc025f76d Log: [FIXED JENKINS-26175] Exclusive execution mode can now be configured to skip waiting for currently running jobs [FIXED JENKINS-24854] Shutdown mode is now also cancelled if job is canceled in pre-build phase [FIXED JENKINS-26351] Spanish translation added

          Code changed in jenkins
          User: fmiguelez
          Path:
          README
          pom.xml
          src/main/java/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper.java
          src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config.jelly
          src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/help.html
          src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/help_es.html
          src/main/resources/index.jelly
          http://jenkins-ci.org/commit/exclusive-execution-plugin/a6175f1bb692481ee133ea0dcbe34a3d01180802
          Log:
          [FIXED JENKINS-26175] Exclusive execution mode can now be configured to
          skip waiting for currently running jobs
          [FIXED JENKINS-24854] Shutdown mode is now also cancelled if job is
          canceled in pre-build phase
          [FIXED JENKINS-26351] Spanish translation added

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: fmiguelez Path: README pom.xml src/main/java/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper.java src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/config.jelly src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/help.html src/main/resources/hudson/plugins/execution/exclusive/ExclusiveBuildWrapper/help_es.html src/main/resources/index.jelly http://jenkins-ci.org/commit/exclusive-execution-plugin/a6175f1bb692481ee133ea0dcbe34a3d01180802 Log: [FIXED JENKINS-26175] Exclusive execution mode can now be configured to skip waiting for currently running jobs [FIXED JENKINS-24854] Shutdown mode is now also cancelled if job is canceled in pre-build phase [FIXED JENKINS-26351] Spanish translation added

          Solved in 0.8

          Fernando Miguelez added a comment - Solved in 0.8

            fmiguelez Fernando Miguelez
            fmiguelez Fernando Miguelez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: