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

Pipelines are mixed up when same stage/step names are used

    XMLWordPrintable

Details

    Description

      I have multiple pipelines representing multiple maintenance branches of the same codebase, and each pipeline has the same stage names and step names. They are all using different projects though (all projects are duplicated for each branch/pipeline).
      What happens is that the top pipeline has the proper arrows in the view, and the bottom one has all the arrows from the first stage going all the way up to the second stage of the top pipeline (the remaining stages on the bottom pipeline just have no arrow/lines). All pipelines in between the top and bottom ones have no arrow/lines.

      If I add a completely different pipeline at the bottom, then it won't have any lines/arrows at all, but it won't point to the top pipeline, so I think it's related to the fact that I'm using the same stage/step names.

      This is a regression, it was working fine before version 0.7.1 (which had only the top pipeline displayed)

      Attachments

        Activity

          pmatignon Patrice Matignon created issue -
          pmatignon Patrice Matignon made changes -
          Field Original Value New Value
          Attachment Pipelines-for-Multiple-Branches.png.jpg [ 25643 ]
          patbos Patrik Boström made changes -
          Assignee Patrik Boström [ patbos ]
          patbos Patrik Boström added a comment - - edited

          If stages with same name is used the views arrows will be incorrectly drawn between stages.
          Have done a fix in branch https://github.com/Diabol/delivery-pipeline-plugin/tree/JENKINS-22423-same-stage-names

          Is it possible for you to download the attached file and test the fix?

          patbos Patrik Boström added a comment - - edited If stages with same name is used the views arrows will be incorrectly drawn between stages. Have done a fix in branch https://github.com/Diabol/delivery-pipeline-plugin/tree/JENKINS-22423-same-stage-names Is it possible for you to download the attached file and test the fix?

          Here is a build with the fix

          patbos Patrik Boström added a comment - Here is a build with the fix
          patbos Patrik Boström made changes -
          Attachment delivery-pipeline-plugin.hpi [ 25648 ]

          Thanks much (that was fast!)
          I'll test it today.

          pmatignon Patrice Matignon added a comment - Thanks much (that was fast!) I'll test it today.

          Patrice, did the patch work for you?

          patbos Patrik Boström added a comment - Patrice, did the patch work for you?
          zihaoyuhbo Zihao Yu added a comment -

          FWIW I installed the attached .hpi and it worked perfectly.

          zihaoyuhbo Zihao Yu added a comment - FWIW I installed the attached .hpi and it worked perfectly.

          My apologies, I could restart my instance. Still trying to do this asap to get you feedback.

          pmatignon Patrice Matignon added a comment - My apologies, I could restart my instance. Still trying to do this asap to get you feedback.

          Thanks for your feedback Zihao Yu.

          patbos Patrik Boström added a comment - Thanks for your feedback Zihao Yu.

          Patrice, no problem, can wait a couple of days.

          patbos Patrik Boström added a comment - Patrice, no problem, can wait a couple of days.

          It works great for me as well. Thank you for the quick fix!

          pmatignon Patrice Matignon added a comment - It works great for me as well. Thank you for the quick fix!

          Thanks for testing!

          patbos Patrik Boström added a comment - Thanks for testing!

          Will go out in release 0.7.3

          patbos Patrik Boström added a comment - Will go out in release 0.7.3
          patbos Patrik Boström made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          Released

          patbos Patrik Boström added a comment - Released
          patbos Patrik Boström made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154524 ] JNJira + In-Review [ 207575 ]

          People

            patbos Patrik Boström
            pmatignon Patrice Matignon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: