1
0
Fork 0

Fix refspec selection for the report step

This commit is contained in:
Mikhail Goncharov 2020-10-02 10:17:00 +02:00
parent 19974fd1cf
commit 9c383b2caf

View file

@ -169,10 +169,17 @@ if __name__ == '__main__':
'commands': [
'mkdir -p artifacts',
'buildkite-agent artifact download "*_result.json" .',
# Clone scripts.
'export SRC=${BUILDKITE_BUILD_PATH}/llvm-premerge-checks',
'rm -rf ${SRC}',
f'git clone --depth 1 --branch {scripts_refspec} https://github.com/google/llvm-premerge-checks.git '
'${SRC}',
'git clone --depth 1 https://github.com/google/llvm-premerge-checks.git "${SRC}"',
'cd ${SRC}',
f'git fetch origin "{scripts_refspec}":x',
'git checkout x',
'echo "llvm-premerge-checks commit"',
'git rev-parse HEAD',
'cd "$BUILDKITE_BUILD_CHECKOUT_PATH"',
'${SRC}/scripts/buildkite/summary.py',
],
'allow_dependency_failure': True,