ExportXMLWordPrintable

      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.

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

              Created:
              Updated: