diff --git a/helloworld-shell/tests.cloudbuild.yaml b/helloworld-shell/tests.cloudbuild.yaml index 3ca82969..6ddcdde3 100644 --- a/helloworld-shell/tests.cloudbuild.yaml +++ b/helloworld-shell/tests.cloudbuild.yaml @@ -24,7 +24,7 @@ steps: - id: 'Get Cloud Run URL' name: 'gcr.io/cloud-builders/gcloud:$_CLOUDSDK_VERSION' - entrypoint: /bin/bashhhh + entrypoint: /bin/bash args: - '-c' - | @@ -44,6 +44,7 @@ steps: - '-c' - | echo "Add integration tests!" + exit 1 - id: 'Teardown' name: 'gcr.io/cloud-builders/gcloud:$_CLOUDSDK_VERSION' diff --git a/testing/buildcop-function/buildcop b/testing/buildcop-function/buildcop deleted file mode 100755 index 1d5d397f..00000000 Binary files a/testing/buildcop-function/buildcop and /dev/null differ diff --git a/testing/buildcop-function/deploy_function.sh b/testing/buildcop-function/deploy_function.sh index 08ed815d..4a21c3de 100644 --- a/testing/buildcop-function/deploy_function.sh +++ b/testing/buildcop-function/deploy_function.sh @@ -22,4 +22,8 @@ cp $(go env GOPATH)/bin/linux_amd64/buildcop buildcop # Deploy function gcloud functions deploy buildcop-worker --region=us-central1 \ ---trigger-topic=cloud-builds --runtime=python37 --entry-point=send_to_buildcop \ No newline at end of file +--trigger-topic=cloud-builds --runtime=python37 --entry-point=send_to_buildcop \ +--no-allow-unauthenticated + +# Remove binary from current directory +rm buildcop \ No newline at end of file diff --git a/testing/buildcop-function/main.py b/testing/buildcop-function/main.py index 196ca138..d30d4608 100644 --- a/testing/buildcop-function/main.py +++ b/testing/buildcop-function/main.py @@ -93,7 +93,7 @@ def send_to_buildcop(event, context): out = subprocess.run( ["./buildcop", "-repo=GoogleCloudPlatform/cloud-run-samples", f"-commit_hash={commit_sha}", "-logs_dir=/tmp", - f"buildURL={build_url}"], + f"-build_url={build_url}"], stdout=subprocess.PIPE).stdout except Exception as e: print(e)