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

Unable to modify the order between scripts loaded during replay

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: workflow-cps-plugin
    • Labels:
      None
    • Environment:
      Jenkins v2.32.1 on Windows with pipeline plugin v2.4
    • Similar Issues:

      Description

      Give an example directly. Main Script is like:
      node("slave01") {
      load "f1.groovy" // echo "1"
      load "f2.groovy" // echo "2"
      }
      Modify the main script in Replay site, not the contents of Script1 or Script2
      node("slave01") {
      load "f2.groovy" // echo "2"
      load "f1.groovy" // echo "1"
      }
      It actually run the loaded scripts' order - Script1 then Script2 ... so it still gets 1 and then 2 printed as result.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            A fix for JENKINS-31838 would probably tackle this too.

            Show
            jglick Jesse Glick added a comment - A fix for JENKINS-31838 would probably tackle this too.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              zhac WENJUN ZHA
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: