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

Completed runs using the milestone step will cancel previously running jobs that reached a later milestone

XMLWordPrintable

      If the pipeline below is run twice in succession, the first build will be superseded by the second even though it has passed milestone 1.

      milestone(0)
      if ((currentBuild.number % 2) == 0) {
          error("even")
      }
      milestone(1)
      sleep(5)
      milestone(2)
      

      Since the first build has already passed milestone 1 I would expect it to not be canceled.

            amuniz Antonio Muñiz
            stuartrowe Stuart Rowe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: