mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
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.
This commit is contained in:
parent
de22914e23
commit
8002983d45
@ -1,5 +1,10 @@
|
|||||||
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md
|
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md
|
||||||
|
|
||||||
|
properties([
|
||||||
|
// abort previous runs when a PR is updated to save resources
|
||||||
|
disableConcurrentBuilds(abortPrevious: true)
|
||||||
|
])
|
||||||
|
|
||||||
stage("Build") {
|
stage("Build") {
|
||||||
def n = 5
|
def n = 5
|
||||||
buildPod(memory: "2Gi", cpu: "${n}") {
|
buildPod(memory: "2Gi", cpu: "${n}") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user