diff --git a/Jenkinsfile b/Jenkinsfile index 809e548..d9f9f21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,6 +66,9 @@ spec: sh "gcloud config set compute/zone ${env.ZONE}" sh "gcloud config set core/project ${env.PROJECT_ID}" sh "gcloud config set compute/region ${env.REGION}" + + // Set auth for bq so we don't get prompted + sh 'echo "credential_file=${GOOGLE_APPLICATION_CREDENTIALS}" > /home/jenkins/.bigqueryrc' } } stage('Lint') { diff --git a/scripts/teardown.sh b/scripts/teardown.sh index eed4c4f..df9e077 100755 --- a/scripts/teardown.sh +++ b/scripts/teardown.sh @@ -30,9 +30,6 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" # shellcheck source=scripts/common.sh source "$ROOT"/scripts/common.sh -# Set auth for bq so we don't get prompted -echo "credential_file = ${GOOGLE_APPLICATION_CREDENTIALS}" > /home/jenkins/.bigqueryrc - # We have to delete the dataset before the Terraform # Otherwise we will run into the following error # "google_bigquery_dataset.gke-bigquery-dataset: googleapi: