Skip to content

Commit

Permalink
ci: make publish_toolstate.sh generic over the CI provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Dec 30, 2019
1 parent 580ac0b commit d9278f7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ci/publish_toolstate.sh
@@ -1,6 +1,9 @@
#!/bin/sh
#!/bin/bash

set -eu
set -euo pipefail
IFS=$'\n\t'

source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

# The following lines are also found in src/bootstrap/toolstate.rs,
# so if updating here, please also update that file.
Expand All @@ -21,7 +24,7 @@ cd rust-toolstate
FAILURE=1
for RETRY_COUNT in 1 2 3 4 5; do
# The purpose is to publish the new "current" toolstate in the toolstate repo.
"$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
"$(ciCheckoutPath)/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
"$GIT_COMMIT_MSG" \
"$MESSAGE_FILE" \
"$TOOLSTATE_REPO_ACCESS_TOKEN"
Expand Down

0 comments on commit d9278f7

Please sign in to comment.