From f7408dbad8d70444f4ceacf47d16fa446c2f7ae2 Mon Sep 17 00:00:00 2001 From: Daniel Butler Date: Fri, 15 Nov 2024 11:18:20 +0000 Subject: [PATCH] fix: ensure pipeline is in a passing state before publishing (#1068) --- pipeline-assets/publish.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipeline-assets/publish.sh b/pipeline-assets/publish.sh index c462c1bd..800851c1 100755 --- a/pipeline-assets/publish.sh +++ b/pipeline-assets/publish.sh @@ -15,7 +15,9 @@ if [ -n "$1" ];then EXTRA_TAGS="${EXTRA_TAGS},${1}" fi -if "${ONE_PIPELINE_PATH}"/internal/pipeline/evaluator_ci; then +# ensure the pipeline is in a passing state before publishing +ONE_PIPELINE_STATUS=$(get_env one-pipeline-status 0) +if [ "$ONE_PIPELINE_STATUS" -eq 0 ]; then ibmcloud_api_key=$(get_env ciso-ibmcloud-api-key "") if [[ -z "$ibmcloud_api_key" ]]; then