From 177d7753ac71ee9f5d33b7afca5bda84d655dce8 Mon Sep 17 00:00:00 2001 From: bcoe Date: Wed, 26 Aug 2020 11:27:29 -0700 Subject: [PATCH 1/2] build: adds new secrets used by releasetool --- synthtool/gcp/templates/node_library/.github/publish.yml | 0 .../gcp/templates/node_library/.kokoro/release/publish.cfg | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 synthtool/gcp/templates/node_library/.github/publish.yml diff --git a/synthtool/gcp/templates/node_library/.github/publish.yml b/synthtool/gcp/templates/node_library/.github/publish.yml deleted file mode 100644 index e69de29bb..000000000 diff --git a/synthtool/gcp/templates/node_library/.kokoro/release/publish.cfg b/synthtool/gcp/templates/node_library/.kokoro/release/publish.cfg index 54a248d6e..8f8dd6492 100644 --- a/synthtool/gcp/templates/node_library/.kokoro/release/publish.cfg +++ b/synthtool/gcp/templates/node_library/.kokoro/release/publish.cfg @@ -49,7 +49,7 @@ before_action { env_vars: { key: "SECRET_MANAGER_KEYS" - value: "npm_publish_token" + value: "npm_publish_token,releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" } # Download trampoline resources. From 0f17c79acd4ab6642d71fe67aa7210a3823d6b8f Mon Sep 17 00:00:00 2001 From: bcoe Date: Wed, 26 Aug 2020 14:04:20 -0700 Subject: [PATCH 2/2] chore: turn on build cop for nightly builds --- synthtool/gcp/templates/node_library/.kokoro/samples-test.sh | 2 +- synthtool/gcp/templates/node_library/.kokoro/system-test.sh | 2 +- synthtool/gcp/templates/node_library/.kokoro/test.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh b/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh index a0819989a..f54f08191 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/samples-test.sh @@ -41,7 +41,7 @@ if [ -f samples/package.json ]; then cd .. # If tests are running against master, configure Build Cop # to open issues on failures: - if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then + if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml export MOCHA_REPORTER=xunit cleanup() { diff --git a/synthtool/gcp/templates/node_library/.kokoro/system-test.sh b/synthtool/gcp/templates/node_library/.kokoro/system-test.sh index 7de09d067..123bbb4d1 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/system-test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/system-test.sh @@ -35,7 +35,7 @@ npm install # If tests are running against master, configure Build Cop # to open issues on failures: -if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml export MOCHA_REPORTER=xunit cleanup() { diff --git a/synthtool/gcp/templates/node_library/.kokoro/test.sh b/synthtool/gcp/templates/node_library/.kokoro/test.sh index 8d9c29545..47be59b98 100755 --- a/synthtool/gcp/templates/node_library/.kokoro/test.sh +++ b/synthtool/gcp/templates/node_library/.kokoro/test.sh @@ -23,7 +23,7 @@ cd $(dirname $0)/.. npm install # If tests are running against master, configure Build Cop # to open issues on failures: -if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml export MOCHA_REPORTER=xunit cleanup() {