2019-05-06 13:15:52 -05:00
|
|
|
#
|
|
|
|
# Azure Pipelines job to publish toolstate. Only triggers on pushes to master.
|
|
|
|
#
|
|
|
|
|
|
|
|
pr: none
|
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: ubuntu-16.04
|
|
|
|
|
2019-05-13 02:55:12 -05:00
|
|
|
steps:
|
2019-05-06 13:15:52 -05:00
|
|
|
- checkout: self
|
|
|
|
fetchDepth: 2
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
export MESSAGE_FILE=$(mktemp -t msg.XXXXXX)
|
|
|
|
. src/ci/docker/x86_64-gnu-tools/repo.sh
|
2019-05-12 11:19:10 -05:00
|
|
|
# FIXME(pietro): committing is disabled until we switch to Azure Pipelines
|
|
|
|
# as the source of truth, or until we setup a separate test repo.
|
|
|
|
#commit_toolstate_change "$MESSAGE_FILE" "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "$MESSAGE_FILE" "$TOOLSTATE_REPO_ACCESS_TOKEN"
|
2019-05-13 02:55:12 -05:00
|
|
|
displayName: Publish toolstate
|
2019-05-06 13:15:52 -05:00
|
|
|
env:
|
|
|
|
TOOLSTATE_REPO_ACCESS_TOKEN: $(TOOLSTATE_REPO_ACCESS_TOKEN_SECRET)
|