Skip to content

Commit

Permalink
ci: ui integration test for release
Browse files Browse the repository at this point in the history
  • Loading branch information
vanshaj-bhatia committed Sep 27, 2024
1 parent f72a3c0 commit 5b58ffc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .cloudbuild/build_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ steps:
- package
- '-Dmaven.test.skip=true'
dir: '${_REPO}/java'
- id: stage-java-jar-to-temp-gcs-directory
- id: stage-java-jar-to-preprod-gcs-directory
name: gcr.io/cloud-builders/gsutil
entrypoint: 'bash'
args:
- '-c'
- |
gsutil cp ${_REPO}/java/target/dataproc-templates-1.0-SNAPSHOT.jar gs://${_PUBLIC_BUCKET}/tmp/$TAG_NAME/java/
gsutil cp ${_REPO}/java/target/dataproc-templates-1.0-SNAPSHOT.jar gs://${_PRE_PROD_BUCKET}/$TAG_NAME/java/
- id: run-integration-tests-for-ui-templates
name: gcr.io/cloud-builders/gcloud
entrypoint: 'bash'
Expand All @@ -78,7 +78,7 @@ steps:
apt-get update && apt-get install -y jq
JENKINS_URL="${_JENKINS_UI_INT_TEST_URL}&jarPath=gs://${_PUBLIC_BUCKET}/tmp/$TAG_NAME/java/dataproc-templates-1.0-SNAPSHOT.jar"
JENKINS_URL="${_JENKINS_UI_INT_TEST_URL}&jarPath=gs://${_PRE_PROD_BUCKET}/$TAG_NAME/java/dataproc-templates-1.0-SNAPSHOT.jar"
CREDS=$(gcloud beta secrets versions access --secret="jenkins-admin-credentials" latest)
echo $$JENKINS_URL
Expand Down Expand Up @@ -135,5 +135,5 @@ steps:
- >
gcloud builds triggers run promote-java-binaries
--project dataproc-templates
--substitutions _TMP_GCS_URI=gs://${_PUBLIC_BUCKET}/tmp/$TAG_NAME/java/dataproc-templates-1.0-SNAPSHOT.jar,_TARGET_GCS_URI_TAG=gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/java/,_TARGET_GCS_URI_LATEST=gs://${_PUBLIC_BUCKET}/latest/java/${_BINARY_PREFIX}.jar
--substitutions _TMP_GCS_URI=gs://${_PRE_PROD_BUCKET}/$TAG_NAME/java/dataproc-templates-1.0-SNAPSHOT.jar,_TARGET_GCS_URI_TAG=gs://${_PUBLIC_BUCKET}/$(date -u +%Y-%m-%d)_$TAG_NAME/java/,_TARGET_GCS_URI_LATEST=gs://${_PUBLIC_BUCKET}/latest/java/${_BINARY_PREFIX}.jar
entrypoint: bash

0 comments on commit 5b58ffc

Please sign in to comment.