Skip to content

Commit 41d4f44

Browse files
ci: nightly cleanup cleanup (googleapis#886)
* ci: nightly cleanup cleanup * missing credentials * nit * Update run_samples_resource_cleanup.sh * Update run_samples_resource_cleanup.sh * Update run_samples_resource_cleanup.sh * Update run_samples_resource_cleanup.sh * try again * try again * nit
1 parent ea4f45e commit 41d4f44

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.kokoro/nightly/samples.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Format: //devtools/kokoro/config/proto/build.proto
22

3+
# Download secrets from Cloud Storage.
4+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples"
5+
36
# Configure the docker image for kokoro-trampoline.
47
env_vars: {
58
key: "TRAMPOLINE_IMAGE"

.kokoro/run_samples_resource_cleanup.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ source ${scriptDir}/common.sh
3232
source ${KOKORO_GFILE_DIR}/secret_manager/java-bigquery-samples-secrets
3333
echo "********** Successfully Set All Environment Variables **********"
3434

35-
# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
36-
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
37-
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/secret_manager/${GOOGLE_APPLICATION_CREDENTIALS})
38-
fi
39-
40-
# Activate service account
41-
gcloud auth activate-service-account \
42-
--key-file="$GOOGLE_APPLICATION_CREDENTIALS" \
43-
--project="$GOOGLE_CLOUD_PROJECT"
44-
45-
mvn clean install -DskipTests=true
46-
4735
# Move into the samples directory
4836
cd samples/snippets
4937

0 commit comments

Comments
 (0)