Skip to content

Commit 0a519b2

Browse files
committed
ci: cancel previous build on PR update
This is an easy way to save CI resources; when a PR is updated, abort any previous build for that PR to focus on testing the latest push.
1 parent 0c12fc1 commit 0a519b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cci.jenkinsfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md
22

3+
properties([
4+
// abort previous runs when a PR is updated to save resources
5+
disableConcurrentBuilds(abortPrevious: true)
6+
])
7+
38
node {
49
checkout scm
510

0 commit comments

Comments
 (0)