Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-07-24 12:03:11 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-07-24 12:03:11 +0300
commitaef27e6acce996c4d5c47d10ff0dad6d9b9095e6 (patch)
tree38abbf5060ce1fbaf8cb6126f79807cd3fc5344a /scripts
parent76d793dc0175e3cfd63e7c599182756290dae240 (diff)
parentdccf643c42f8887844ab6e88f21d161d66c893e0 (diff)
Merge branch '64996-fix-review-app-debugging' into 'master'
Resolve "Review App debugging sometimes fail because multiple Unicorn pods exist" Closes #64996 See merge request gitlab-org/gitlab-ce!31058
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/review_apps/review-apps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review_apps/review-apps.sh b/scripts/review_apps/review-apps.sh
index bc47884ee45..363ab2c6540 100755
--- a/scripts/review_apps/review-apps.sh
+++ b/scripts/review_apps/review-apps.sh
@@ -52,7 +52,7 @@ function delete() {
function get_pod() {
local app_name="${1}"
local status="${2-Running}"
- get_pod_cmd="kubectl get pods -n ${KUBE_NAMESPACE} --field-selector=status.phase=${status} -lapp=${app_name},release=${CI_ENVIRONMENT_SLUG} --no-headers -o=custom-columns=NAME:.metadata.name"
+ get_pod_cmd="kubectl get pods -n ${KUBE_NAMESPACE} --field-selector=status.phase=${status} -lapp=${app_name},release=${CI_ENVIRONMENT_SLUG} --no-headers -o=custom-columns=NAME:.metadata.name | tail -n 1"
echoinfo "Waiting till '${app_name}' pod is ready" true
echoinfo "Running '${get_pod_cmd}'"