aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-11-06 17:22:13 +0100
committerSonarTech <sonartech@sonarsource.com>2018-11-07 20:21:01 +0100
commita99a45d00950139a735babffc2b203be0dce4266 (patch)
tree3c21909a3a0a676deef7e6543a953b1ac9752037
parent137d3156ea4f0acc739e58ae9e99651c8217f335 (diff)
downloadsonarqube-a99a45d00950139a735babffc2b203be0dce4266.tar.gz
sonarqube-a99a45d00950139a735babffc2b203be0dce4266.zip
Cirrus - Define auto_cancellation in the top level
-rw-r--r--.cirrus.yml7
1 files changed, 2 insertions, 5 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 23dffbcf293..0de17b9a25d 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -28,9 +28,10 @@ env:
# could be used in Artifactory statistics
CI_ENV: cirrus
+auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
+
build_task:
only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master"
- auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
timeout_in: 90m
gke_container:
image: gradle:4.10.1-jdk8
@@ -51,7 +52,6 @@ build_task:
deploy_docs_task:
depends_on: build
only_if: $CIRRUS_BRANCH == 'dogfood-on-next'
- auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
gke_container:
image: gcr.io/ci-cd-215716/sonar-enterprise-bash:0.0.1
cluster_name: cirrus-euw3a-cluster
@@ -67,7 +67,6 @@ deploy_docs_task:
validate_task:
depends_on: build
only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master"
- auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
timeout_in: 90m
gke_container:
image: gcr.io/ci-cd-215716/sonar-enterprise-build:0.0.3
@@ -97,7 +96,6 @@ validate_task:
qa_task:
depends_on: build
only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master"
- auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
gke_container:
image: gcr.io/ci-cd-215716/sonar-enterprise-qa:0.0.2
cluster_name: cirrus-euw3a-cluster
@@ -143,7 +141,6 @@ promote_task:
- validate
- qa
only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master"
- auto_cancellation: $CIRRUS_BRANCH != 'master' && $CIRRUS_BRANCH !=~ 'branch.*' && $CIRRUS_BRANCH != 'dogfood-on-next'
gke_container:
image: gcr.io/ci-cd-215716/sonar-enterprise-bash:0.0.1
cluster_name: cirrus-euw3a-cluster