File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -103,26 +103,8 @@ for file in **/requirements.txt; do
103103 # If this is a continuous build, send the test log to the Build Cop Bot.
104104 # See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop.
105105 if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = * " continuous" * ]]; then
106- XML=$( base64 -w 0 sponge_log.xml)
107-
108- # See https://github.com/apps/build-cop-bot/installations/5943459.
109- MESSAGE=$( cat << EOF
110- {
111- "Name": "buildcop",
112- "Type" : "function",
113- "Location": "us-central1",
114- "installation": {"id": "5943459"},
115- "repo": "GoogleCloudPlatform/python-docs-samples",
116- "buildID": "$KOKORO_GIT_COMMIT ",
117- "buildURL": "https://source.cloud.google.com/results/invocations/$KOKORO_BUILD_ID ",
118- "xunitXML": "$XML "
119- }
120- EOF
121- )
122-
123- # Use a service account with access to the repo-automation-bots project.
124- gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS
125- gcloud pubsub topics publish passthrough --project=repo-automation-bots --message=" $MESSAGE "
106+ chmod +x $KOKORO_GFILE_DIR /buildcop.sh
107+ $KOKORO_GFILE_DIR /buildcop.sh
126108 fi
127109
128110 if [[ $EXIT -ne 0 ]]; then
You can’t perform that action at this time.
0 commit comments