throttle-concurrent-builds not work on scripted pipeline

XMLWordPrintable

      I have setĀ Throttle Concurrent BuildsĀ like below:

      and my pipeline scripts like below:

      //ä»£ē å ä½ē¬¦
      node("m1||travis") {
        stage("Prepage"){
          //some task like git checkout
        }
        stage("Build") {
          //some code like xcodebuild
        }
      }

      as the code shows, I'm using scripted pipeline. And I found that event though I have set the number of Maximum Concurrent Builds Per Node to 1, Jenkins still build 2 jobs on same node concurrently.

            Assignee:
            Unassigned
            Reporter:
            star zhu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: