Skip to content

Commit

Permalink
Testing - Fixed the postsubmit tests (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Apr 25, 2019
1 parent ae2795a commit c9d3d39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/postsubmit-tests-with-pipeline-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ usage()
PLATFORM=gcp
PROJECT=ml-pipeline-test
TEST_RESULT_BUCKET=ml-pipeline-test
CLOUDBUILD_PROJECT=ml-pipeline-staging
GCR_IMAGE_BASE_DIR=gcr.io/ml-pipeline-staging/
TARGET_IMAGE_BASE_DIR=gcr.io/ml-pipeline-test/${PULL_BASE_SHA}
TIMEOUT_SECONDS=1800
Expand Down Expand Up @@ -81,7 +82,7 @@ CLOUDBUILD_STARTED=TIMEOUT

for i in $(seq 1 ${PULL_CLOUDBUILD_STATUS_MAX_ATTEMPT})
do
output=`gcloud builds list --filter="sourceProvenance.resolvedRepoSource.commitSha:${PULL_BASE_SHA}"`
output=`gcloud builds list --project="$CLOUDBUILD_PROJECT" --filter="sourceProvenance.resolvedRepoSource.commitSha:${PULL_BASE_SHA}"`
if [[ ${output} != "" ]]; then
CLOUDBUILD_STARTED=True
break
Expand All @@ -98,7 +99,7 @@ fi
CLOUDBUILD_FINISHED=TIMEOUT
for i in $(seq 1 ${PULL_CLOUDBUILD_STATUS_MAX_ATTEMPT})
do
output=`gcloud builds list --filter="sourceProvenance.resolvedRepoSource.commitSha:${PULL_BASE_SHA}"`
output=`gcloud builds list --project="$CLOUDBUILD_PROJECT" --filter="sourceProvenance.resolvedRepoSource.commitSha:${PULL_BASE_SHA}"`
if [[ ${output} == *"SUCCESS"* ]]; then
CLOUDBUILD_FINISHED=SUCCESS
break
Expand Down

0 comments on commit c9d3d39

Please sign in to comment.