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

After a build is rebuilt, parallel stages are marked as FINISHED instead of NOT_BUILT

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      While doing some tests I found an issue (this is a restarted build that was restarted from the "Static Analysis" stage)

       

      The state of non-parallel stages is being correctly reported as "NOT_BUILT" while the state of the Parallel stages is "FINISHED"

       

       

      The jenkinsfile used in the example above is: https://github.com/NicuPascu/app-store-demo/blob/longer-pipeline/Jenkinsfile

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Hmm. I see NotExecutedNodeAction on both the parent of the parallel stages and the parallel stages themselves, which is right, and they have the SKIPPED_FOR_RESTART value for the STAGE_STATUS tag.

            Oh, wait, I think I get it. Honestly, I'm not sure how any of the stages are showing up as NOT_BUILT. It looks like that only gets set for a stage that's skipped for a conditional, or one where its last FlowNode has the NotExecutedNodeAction on it. I was putting NotExecutedNodeAction on the start node, not the end node. Durrr. Working up a fix, but it'll need review next week.

            Show
            abayer Andrew Bayer added a comment - Hmm. I see NotExecutedNodeAction on both the parent of the parallel stages and the parallel stages themselves, which is right, and they have the SKIPPED_FOR_RESTART value for the STAGE_STATUS tag. Oh, wait, I think I get it. Honestly, I'm not sure how any of the stages are showing up as NOT_BUILT . It looks like that only gets set for a stage that's skipped for a conditional, or one where its last FlowNode has the NotExecutedNodeAction on it. I was putting NotExecutedNodeAction on the start node, not the end node. Durrr. Working up a fix, but it'll need review next week.
            Hide
            abayer Andrew Bayer added a comment -

            I think I have the fix - https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/273/files - I wasn't setting NotExecutedNodeAction in the right places, I believe.

            Show
            abayer Andrew Bayer added a comment - I think I have the fix - https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/273/files - I wasn't setting NotExecutedNodeAction in the right places, I believe.
            Hide
            abayer Andrew Bayer added a comment -

            Merged, will be in next release (1.3.2)

            Show
            abayer Andrew Bayer added a comment - Merged, will be in next release (1.3.2)
            Hide
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            Show
            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

              People

              Assignee:
              abayer Andrew Bayer
              Reporter:
              nicu Nicolae Pascu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: