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

Inconsistent Parallel Stage Order

XMLWordPrintable

      When running pipeline job with parallel stages, the order of stages returned by the endpoint '/job/<jobname>/wfapi/runs' is inconsistent with the way the stages are created and displayed when completed. The ui is designed to display  runs from the newest to the oldest with stages provided in the same order. Therefore when parallel stages are used, the ui will almost always only display the last run.

       

      Attached screenshots will show :

      • Before running the job (Consistent Before Run.png), the order of stages of the completed runs allow to display all previous runs.
      • When running the job (Inconsistent During Run.png), the different order of stages of the running job discontinue the display of the previous runs.
      • After running the job (Consistent After Run.png), the order of stages of the newly completed run follows its natural creation order and allow the ui to display the previous runs.

      The previous exemple was made with the script (parallelPipelineScriptTest.txt) attached and was tested on :

      • A Jenkins server version : 2.235.1 with the Pipeline plugin version 2.6 (containing plugin Pipeline: Stage View Plugin version 2.13)
      • A local development post with pipeline-stage-view-plugin, branch : master, current version : 2.14-SNAPSHOT. Some changes in pom.xml files had to be maid to create the pipeline, 'node' being not recognized in the goovy script with the vanilla dependencies provided by the poms, see changes in patchPoms.txt.

        1. Consistent After Run.png
          Consistent After Run.png
          330 kB
        2. Consistent Before Run.png
          Consistent Before Run.png
          306 kB
        3. Inconsistent During Run.png
          Inconsistent During Run.png
          220 kB
        4. parallelPipelineScriptTest.txt
          0.4 kB
        5. patchPoms.txt
          5 kB
        6. stages-order-on-blue-ocean.png
          stages-order-on-blue-ocean.png
          23 kB
        7. stages-order-on-console-log.png
          stages-order-on-console-log.png
          27 kB
        8. stages-order-on-stage-view.png
          stages-order-on-stage-view.png
          29 kB

            allan_burdajewicz Allan BURDAJEWICZ
            lsouchard Ludovic Souchard
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: