]> source.dussan.org Git - sonarqube.git/commitdiff
Fix notifications of nightly builds
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 28 Aug 2019 15:25:25 +0000 (17:25 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 28 Aug 2019 18:21:01 +0000 (20:21 +0200)
The branch "nightly-build" is replaced by the branch "dogfood-on-next"
every night by the Jenkins job "trigger-nightly-sonar-enterprise".
That triggers the execution of integration tests on all databases.

Unfortunately the team is not notified when tests fail. Errors are not
visible from:
- wallboards
- the project default page on burgr
- slack channels

The root cause is that burgr does not consider the branch "nightly-build"
as being shared by the team. The workaround is to rename the branch by
prefixing it with "branch-". This is convention for long-living
maintenance branches.

.cirrus.yml

index 323e00d4dc2aa7baa00c73aa9e8bc512605cc50d..f30bfa1dd2965d4bb9eee029768ee75b6d8ff53a 100644 (file)
@@ -79,7 +79,7 @@ deploy_docs_task:
 
 validate_task:
   depends_on: build
-  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "nightly-build"
+  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "branch-nightly-build"
   timeout_in: 90m
   gke_container:
     dockerfile: private/docker/Dockerfile-build
@@ -114,7 +114,7 @@ validate_task:
 
 qa_task:
   depends_on: build
-  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "nightly-build"
+  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -171,7 +171,7 @@ promote_task:
     - build
     - validate
     - qa
-  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "nightly-build"
+  only_if: $CIRRUS_BRANCH !=~ "dogfood/.*" && $CIRRUS_BRANCH != "public_master" && $CIRRUS_BRANCH != "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -193,7 +193,7 @@ sql_mssql2017_task:
   depends_on: build
   # Comment the following line and commit with message "DO NOT MERGE" in order to run
   # this task on your branch
-  only_if: $CIRRUS_BRANCH == "nightly-build"
+  only_if: $CIRRUS_BRANCH == "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -231,7 +231,7 @@ sql_postgres93_task:
   depends_on: build
   # Comment the following line and commit with message "DO NOT MERGE" in order to run
   # this task on your branch
-  only_if: $CIRRUS_BRANCH == "nightly-build"
+  only_if: $CIRRUS_BRANCH == "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -267,7 +267,7 @@ sql_oracle12_task:
   depends_on: build
   # Comment the following line and commit with message "DO NOT MERGE" in order to run
   # this task on your branch
-  only_if: $CIRRUS_BRANCH == "nightly-build"
+  only_if: $CIRRUS_BRANCH == "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -302,7 +302,7 @@ upgd_mssql2017_task:
   depends_on: build
   # Comment the following line and commit with message "DO NOT MERGE" in order to run
   # this task on your branch
-  only_if: $CIRRUS_BRANCH == "nightly-build"
+  only_if: $CIRRUS_BRANCH == "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716
@@ -347,7 +347,7 @@ upgd_oracle12_task:
   depends_on: build
   # Comment the following line and commit with message "DO NOT MERGE" in order to run
   # this task on your branch
-  only_if: $CIRRUS_BRANCH == "nightly-build"
+  only_if: $CIRRUS_BRANCH == "branch-nightly-build"
   gke_container:
     dockerfile: private/docker/Dockerfile-build
     builder_image_project: ci-cd-215716