diff --git a/build/jenkins/pipelines/freeBSD.Jenkinsfile b/build/jenkins/pipelines/freeBSD.Jenkinsfile index 294855d240..76be15a175 100644 --- a/build/jenkins/pipelines/freeBSD.Jenkinsfile +++ b/build/jenkins/pipelines/freeBSD.Jenkinsfile @@ -19,6 +19,9 @@ // Due to a compilation bug with SpiderMonkey, the game is only built with the release configuration. pipeline { + // Stop previous build in pull requests, but not in branches + options { disableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null) } + agent { node { label 'FreeBSDAgent' diff --git a/build/jenkins/pipelines/linux.Jenkinsfile b/build/jenkins/pipelines/linux.Jenkinsfile index d63939dc51..2d601a0421 100644 --- a/build/jenkins/pipelines/linux.Jenkinsfile +++ b/build/jenkins/pipelines/linux.Jenkinsfile @@ -18,6 +18,9 @@ // This pipeline builds the game on Linux (with min and max supported versions of GCC and clang) and runs tests. pipeline { + // Stop previous build in pull requests, but not in branches + options { disableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null) } + agent none stages { stage("Setup") { diff --git a/build/jenkins/pipelines/macOS.Jenkinsfile b/build/jenkins/pipelines/macOS.Jenkinsfile index c2c79e8d02..17c868521b 100644 --- a/build/jenkins/pipelines/macOS.Jenkinsfile +++ b/build/jenkins/pipelines/macOS.Jenkinsfile @@ -18,6 +18,9 @@ // This pipeline builds the game on macOS (which uses the clang-10 compiler) and runs tests. pipeline { + // Stop previous build in pull requests, but not in branches + options { disableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null) } + agent { node { label 'macOSAgent' diff --git a/build/jenkins/pipelines/windows.Jenkinsfile b/build/jenkins/pipelines/windows.Jenkinsfile index 5fb447f6a4..a48859a1e7 100644 --- a/build/jenkins/pipelines/windows.Jenkinsfile +++ b/build/jenkins/pipelines/windows.Jenkinsfile @@ -21,6 +21,9 @@ def visualStudioPath = "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017 def buildOptions = "/p:PlatformToolset=v141_xp /p:XPDeprecationWarning=false /t:pyrogenesis /t:AtlasUI /t:test /m:2 /nologo -clp:NoSummary" pipeline { + // Stop previous build in pull requests, but not in branches + options { disableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null) } + agent { node { label 'WindowsAgent'