Abort previous builds in pull requests

This will save precious build time by stopping the build of obsolete
commits.
This commit is contained in:
Itms
2024-08-24 16:30:44 +02:00
parent f8ac0e4f68
commit 2a67c9a503
4 changed files with 12 additions and 0 deletions
@@ -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") {