1
0
forked from 0ad/0ad

Abort previous builds in pull requests

This will save precious build time by stopping the build of obsolete
commits.
This commit is contained in:
Nicolas Auvray 2024-08-24 16:30:44 +02:00
parent f8ac0e4f68
commit 2a67c9a503
Signed by untrusted user: Itms
GPG Key ID: C7E52BD14CE14E09
4 changed files with 12 additions and 0 deletions

View File

@ -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'

View File

@ -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") {

View File

@ -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'

View File

@ -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'