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

multijob does not finish if phase contains same job multiple times

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • multijob-plugin
    • None

      I have configured a multijob with a single phase that runs to builds of the same job (with different parameters) in parallel. See the attached screenshot for the job configuration.

      When the two builds succeed, the multijob does not finish. It keep running forever, see the second screenshot.

          [JENKINS-25636] multijob does not finish if phase contains same job multiple times

          Which os and which version of Jenkins?

          Mathieu Cantin added a comment - Which os and which version of Jenkins?

          In my case it's Jenkins LTS 1.580.1 running on Windows Server 2012 R2 64-bit. My jobs are publicly visible at https://dscho.cloudapp.net/job/sdk-test-git-parallel/10/console and https://dscho.cloudapp.net/job/sdk-test-git-parallel/configure.

          Sebastian Schuberth added a comment - In my case it's Jenkins LTS 1.580.1 running on Windows Server 2012 R2 64-bit. My jobs are publicly visible at https://dscho.cloudapp.net/job/sdk-test-git-parallel/10/console and https://dscho.cloudapp.net/job/sdk-test-git-parallel/configure .

          ojasvi Jagtap added a comment -

          I am using Jenkins 1.585 which is running on linux rhel 6.5

          ojasvi Jagtap added a comment - I am using Jenkins 1.585 which is running on linux rhel 6.5

          Mathieu Cantin added a comment - - edited

          I find the bug, I work on a fix.

          Mathieu Cantin added a comment - - edited I find the bug, I work on a fix.

          To respond to the earlier version of your comment, I'm using the version of Java that ships with Jenkins for Windows:

          C:\Program Files (x86)\Jenkins\jre\bin>java -version
          java version "1.7.0_25"
          Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
          Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode)

          Sebastian Schuberth added a comment - To respond to the earlier version of your comment, I'm using the version of Java that ships with Jenkins for Windows: C:\Program Files (x86)\Jenkins\jre\bin>java -version java version "1.7.0_25" Java(TM) SE Runtime Environment (build 1.7.0_25-b17) Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode)

          Pull request is open. I am not sure of the fix, thank to confirm if it fix your problems.

          Mathieu Cantin added a comment - Pull request is open. I am not sure of the fix, thank to confirm if it fix your problems.

          For completeness, there's the link to the PR: https://github.com/jenkinsci/tikal-multijob-plugin/pull/58

          I'll see if I can build it myself and try it out.

          Sebastian Schuberth added a comment - For completeness, there's the link to the PR: https://github.com/jenkinsci/tikal-multijob-plugin/pull/58 I'll see if I can build it myself and try it out.

          Yes, your PR does seem to fix my issue, see https://dscho.cloudapp.net/job/sdk-test-git-parallel/11/console (the reason that the job fails is a different one; at least it does fail now, which means it finished Thanks a lot for the fast fix!

          Sebastian Schuberth added a comment - Yes, your PR does seem to fix my issue, see https://dscho.cloudapp.net/job/sdk-test-git-parallel/11/console (the reason that the job fails is a different one; at least it does fail now, which means it finished Thanks a lot for the fast fix!

          Code changed in jenkins
          User: Mathieu Cantin
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
          http://jenkins-ci.org/commit/tikal-multijob-plugin/3d7589a8100898ed1671c1a44788de29bd2ed10c
          Log:
          Fix JENKINS-25636

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mathieu Cantin Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java http://jenkins-ci.org/commit/tikal-multijob-plugin/3d7589a8100898ed1671c1a44788de29bd2ed10c Log: Fix JENKINS-25636

          Code changed in jenkins
          User: itaior
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
          src/main/webapp/help-continuationCondition.html
          http://jenkins-ci.org/commit/tikal-multijob-plugin/be6dab8891405d17b692f550656bbf9b8965940a
          Log:
          Merge pull request #58 from harcher81/master

          Fix JENKINS-25636

          Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/ab4ec0ab77b1...be6dab889140

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: itaior Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java src/main/webapp/help-continuationCondition.html http://jenkins-ci.org/commit/tikal-multijob-plugin/be6dab8891405d17b692f550656bbf9b8965940a Log: Merge pull request #58 from harcher81/master Fix JENKINS-25636 Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/ab4ec0ab77b1...be6dab889140

            mcantin Mathieu Cantin
            sschuberth Sebastian Schuberth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: