diff options
author | Rémy Coutable <remy@rymai.me> | 2019-07-23 17:11:13 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-07-23 17:11:13 +0200 |
commit | dccf643c42f8887844ab6e88f21d161d66c893e0 (patch) | |
tree | 60c82c6624e81803ed523f292b4f2412d6f719cb /scripts | |
parent | d892e80bf0161b535389c91ccb53539e4f08d790 (diff) | |
download | gitlab-ce-dccf643c42f8887844ab6e88f21d161d66c893e0.tar.gz |
Fix Review App debugging64996-fix-review-app-debugging
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review_apps/review-apps.sh | 2 |
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}'" |