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

Stage view UI loses history when stages are changed

      I'm using the Pipeline Plugin and Stage View plugin with a pipeline script loaded from SCM.
      Stages can change between builds, but when this happen, the Stage View is re-initialized and I lose the view history of builds.

      Is it possible to mantain old builds and their UI visualization ?

          [JENKINS-33430] Stage view UI loses history when stages are changed

          Marco Lijoi created issue -
          Marco Lijoi made changes -
          Summary Original: Stage view UI visualization New: Stage view UI loses history when stages are changed
          Antonio Muñiz made changes -
          Assignee Original: Antonio Muñiz [ amuniz ]

          Sam Van Oort added a comment -

          ligio I'm not sure what you mean - are you saying that only the current run is displaying when the number of stages changes? I've seen that happen intermittently, mostly with very large stages. Usually refreshing the page fixes the issue, though.

          I suspect it has to do with the way the JS code renders cached builds, possibly some sort of ordering bug. Worth looking into. Do you have a case that consistently replicates the issue? (I haven't been able to get it to do this consistently.)

          Sam Van Oort added a comment - ligio I'm not sure what you mean - are you saying that only the current run is displaying when the number of stages changes? I've seen that happen intermittently, mostly with very large stages. Usually refreshing the page fixes the issue, though. I suspect it has to do with the way the JS code renders cached builds, possibly some sort of ordering bug. Worth looking into. Do you have a case that consistently replicates the issue? (I haven't been able to get it to do this consistently.)

          Marco Lijoi added a comment - - edited

          Hi svanoort,
          I'm saying that only the current run is displayed if you change at least one stage name.

          Example:
          Try executing the first pipeline and then the second one.

          First pipeline
          node {
          stage 'Stage one'
          echo 'Hello World 1'

          stage 'Stage two'
          echo 'Hello World 2'
          }

          Second pipeline
          node {
          stage 'Stage one bis'
          echo 'Hello World 1'

          stage 'Stage two'
          echo 'Hello World 2'
          }

          I think that if I can load the pipeline from SCM, I can change stages/commands at every build, and it should be nice to have a visual history of all the builds in sequential order (or the Stage View also in the single Build View)

          thanks

          Marco Lijoi added a comment - - edited Hi svanoort , I'm saying that only the current run is displayed if you change at least one stage name. Example: Try executing the first pipeline and then the second one. First pipeline node { stage 'Stage one' echo 'Hello World 1' stage 'Stage two' echo 'Hello World 2' } Second pipeline node { stage 'Stage one bis' echo 'Hello World 1' stage 'Stage two' echo 'Hello World 2' } I think that if I can load the pipeline from SCM, I can change stages/commands at every build, and it should be nice to have a visual history of all the builds in sequential order (or the Stage View also in the single Build View) thanks

          Marco Lijoi added a comment -

          Possible desired UI for stage view plugin

          Marco Lijoi added a comment - Possible desired UI for stage view plugin
          Marco Lijoi made changes -
          Attachment New: stage_view_desired.png [ 32199 ]

          Agree with Marco, I think this would be a great improvement for this plugin.

          Mark Ottaviani added a comment - Agree with Marco, I think this would be a great improvement for this plugin.

          A little more fleshed out version of Marco's UI mockup

          Mark Ottaviani added a comment - A little more fleshed out version of Marco's UI mockup
          Mark Ottaviani made changes -
          Attachment New: staging-mockup..png [ 32309 ]

            Unassigned Unassigned
            ligio Marco Lijoi
            Votes:
            8 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: