Skip to content

Commit

Permalink
Revert "Add guard against trying to upload non-existant artifacts to …
Browse files Browse the repository at this point in the history
…GCS" (#10758) (#18210)

[upstream:2de311d0c38caf06e329fa60e4629cb40755798f]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed May 21, 2024
1 parent 920a1a1 commit 6310cfc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .teamcity/components/builds/build_steps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ fun BuildSteps.saveArtifactsToGCS() {
#!/bin/bash
echo "Post-test step - storge artifacts(debug logs) to GCS"
export TEST_COUNT=${'$'}(./test-binary -test.list="%TEST_PREFIX%" | wc -l)
if test ${'$'}TEST_COUNT -le "0"; then
echo "Skipping upload to GCS; no tests were run, so no artifacts were generated"
exit 0
fi
# Authenticate gcloud CLI
echo "${'$'}{GOOGLE_CREDENTIALS_GCS}" > google-account.json
chmod 600 google-account.json
Expand Down

0 comments on commit 6310cfc

Please sign in to comment.