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

Sleep function causes premature exit of loop in some cases

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • pipeline
    • None
    • Workflow: 1.13
      Jenkins: 1.642.1

      In this use case the for loop is prematurely exited directly after the sleep function. See gist URL for code snippets and output. They were run under the same conditions. The only difference the inclusion of the sleep statement.

          [JENKINS-32863] Sleep function causes premature exit of loop in some cases

          Jesse Glick added a comment -

          You may not use Pipeline steps inside a @NonCPS method.

          Jesse Glick added a comment - You may not use Pipeline steps inside a @NonCPS method.

            jglick Jesse Glick
            znorris Zach Norris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: