diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-12-03 09:16:06 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-03 09:22:27 +1300 |
commit | e194d7b4aa4ab23141f008b9a52d1a017e2692ea (patch) | |
tree | 067fe9b66a600f2caa462a76f051431d27b93bb4 | |
parent | 0d5cbd16ee3b8eac49d134af063b1827748f2b6d (diff) | |
download | gitlab-ce-e194d7b4aa4ab23141f008b9a52d1a017e2692ea.tar.gz |
Add echo so that we know which branch was taken
This should help debug issues like
https://gitlab.com/gitlab-org/gitlab-ce/issues/54760
-rw-r--r-- | changelogs/unreleased/improve_auto_devops_migration_debug.yml | 6 | ||||
-rw-r--r-- | lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/changelogs/unreleased/improve_auto_devops_migration_debug.yml b/changelogs/unreleased/improve_auto_devops_migration_debug.yml new file mode 100644 index 00000000000..96a78808361 --- /dev/null +++ b/changelogs/unreleased/improve_auto_devops_migration_debug.yml @@ -0,0 +1,6 @@ +--- +title: 'Auto DevOps: Add echo for each branch of the deploy() function where we run + helm upgrade' +merge_request: 23499 +author: +type: changed diff --git a/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml b/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml index c90976b2040..49f03d2ae19 100644 --- a/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml +++ b/lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml @@ -658,6 +658,7 @@ rollout 100%: fi if [[ -n "$DB_INITIALIZE" && -z "$(helm ls -q "^$name$")" ]]; then + echo "Deploying first release with database initialization..." helm upgrade --install \ --wait \ --set service.enabled="$service_enabled" \ @@ -680,6 +681,7 @@ rollout 100%: "$name" \ chart/ + echo "Deploying second release..." helm upgrade --reuse-values \ --wait \ --set application.initializeCommand="" \ @@ -688,6 +690,7 @@ rollout 100%: "$name" \ chart/ else + echo "Deploying new release..." helm upgrade --install \ --wait \ --set service.enabled="$service_enabled" \ |