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

Wrong status for Matrix jobs when using "Execute concurrent builds if necessary" and "Set Build Name"




      Seen with Jenkins ver. 1.548

      Can be reproduced easily by creating a basic matrix job:
      AXIS_A: A1 A2
      AXIS_B: B1 B2 B3 B4

      And setting:
      Execute concurrent builds if necessary: True
      Set Build Name: 123456 #${BUILD_NUMBER}
      (Instead of 123456, we typically set the SCM Change ID)

      As a build step:
      Execute Shell: "sleep 30"

      Fire 2 or 3 times "Build Now"

      All the configurations should have a SUCCESS status and the global status should be SUCCESS too.

      But, even if all the configurations' consoles tell "Finished: SUCCESS", some of them get a red ball failure icon anyway. And the global console tells, for example:
      "A1,B1 completed with result FAILURE"
      Then, the global status is FAILED, while all the configurations succeeded!

      It works again if either of the options "Set Build Name" or "Execute concurrent builds if necessary" is removed.



          benoit_belbezet Benoit Belbezet created issue -
          joeyharrington Joey Harrington made changes -
          Field Original Value New Value
          Attachment Screen Shot 2014-04-27 at 11.35.20 PM.png [ 25740 ]
          benoit_belbezet Benoit Belbezet made changes -
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          benoit_belbezet Benoit Belbezet made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          ircbot Jenkins IRC Bot made changes -
          Component/s matrix-project [ 18765 ]
          Component/s matrix [ 15501 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 153523 ] JNJira + In-Review [ 207369 ]


            kohsuke Kohsuke Kawaguchi
            benoit_belbezet Benoit Belbezet
            2 Vote for this issue
            3 Start watching this issue