Fix refspec selection for the report step
This commit is contained in:
parent
19974fd1cf
commit
9c383b2caf
1 changed files with 9 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue