1
0
Fork 0

running arc patch with --force

This commit is contained in:
Christian Kühnel 2019-11-18 17:02:24 +01:00
parent d12c25cfba
commit 65a9b864d2
2 changed files with 8 additions and 4 deletions

View file

@ -27,7 +27,7 @@ pipeline {
TARGET_DIR = "/mnt/nfs/results/${MY_BUILD_ID}"
RESULT_URL = "http://results.llvm-merge-guard.org/${MY_BUILD_ID}"
TEST_REPORT = "${WORKSPACE}/build/test-results.xml"
DIFF_JSON = "${WORKSPACE}/diff.json"
DIFF_JSON = "${WORKSPACE}/build/diff.json"
}
stages {
stage("build info"){
@ -39,7 +39,6 @@ pipeline {
steps {
git url: 'https://github.com/llvm/llvm-project.git'
sh 'git clean -fdx'
sh "python3 ${SCRIPT_DIR}/phabtalk/apply_patch.py"
sh 'mkdir -p llvm-premerge-checks'
dir("llvm-premerge-checks")
{
@ -48,7 +47,12 @@ pipeline {
sh 'mkdir -p build'
}
}
stage('CMake') {
stage('arc patch'){
steps {
sh "python3 ${SCRIPT_DIR}/phabtalk/apply_patch.py"
}
}
stage('CMake') {
steps {
sh "${SCRIPT_DIR}/run_cmake.sh"
}

View file

@ -56,7 +56,7 @@ def _git_checkout(git_hash: str):
def _apply_patch(diff_id: str, conduit_token: str, host: str):
print('running arc patch...')
cmd = 'arc patch --nobranch --no-ansi --diff "{}" --nocommit '\
cmd = 'arc patch --force --nobranch --no-ansi --diff "{}" --nocommit '\
'--conduit-token "{}" --conduit-uri "{}"'.format(
diff_id, conduit_token, host )
result = subprocess.run(cmd, capture_output=True, shell=True, text=True)