running arc patch with --force
This commit is contained in:
parent
d12c25cfba
commit
65a9b864d2
2 changed files with 8 additions and 4 deletions
10
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
10
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
|
@ -27,7 +27,7 @@ pipeline {
|
||||||
TARGET_DIR = "/mnt/nfs/results/${MY_BUILD_ID}"
|
TARGET_DIR = "/mnt/nfs/results/${MY_BUILD_ID}"
|
||||||
RESULT_URL = "http://results.llvm-merge-guard.org/${MY_BUILD_ID}"
|
RESULT_URL = "http://results.llvm-merge-guard.org/${MY_BUILD_ID}"
|
||||||
TEST_REPORT = "${WORKSPACE}/build/test-results.xml"
|
TEST_REPORT = "${WORKSPACE}/build/test-results.xml"
|
||||||
DIFF_JSON = "${WORKSPACE}/diff.json"
|
DIFF_JSON = "${WORKSPACE}/build/diff.json"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage("build info"){
|
stage("build info"){
|
||||||
|
@ -39,7 +39,6 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
git url: 'https://github.com/llvm/llvm-project.git'
|
git url: 'https://github.com/llvm/llvm-project.git'
|
||||||
sh 'git clean -fdx'
|
sh 'git clean -fdx'
|
||||||
sh "python3 ${SCRIPT_DIR}/phabtalk/apply_patch.py"
|
|
||||||
sh 'mkdir -p llvm-premerge-checks'
|
sh 'mkdir -p llvm-premerge-checks'
|
||||||
dir("llvm-premerge-checks")
|
dir("llvm-premerge-checks")
|
||||||
{
|
{
|
||||||
|
@ -48,7 +47,12 @@ pipeline {
|
||||||
sh 'mkdir -p build'
|
sh 'mkdir -p build'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('CMake') {
|
stage('arc patch'){
|
||||||
|
steps {
|
||||||
|
sh "python3 ${SCRIPT_DIR}/phabtalk/apply_patch.py"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('CMake') {
|
||||||
steps {
|
steps {
|
||||||
sh "${SCRIPT_DIR}/run_cmake.sh"
|
sh "${SCRIPT_DIR}/run_cmake.sh"
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ def _git_checkout(git_hash: str):
|
||||||
|
|
||||||
def _apply_patch(diff_id: str, conduit_token: str, host: str):
|
def _apply_patch(diff_id: str, conduit_token: str, host: str):
|
||||||
print('running arc patch...')
|
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(
|
'--conduit-token "{}" --conduit-uri "{}"'.format(
|
||||||
diff_id, conduit_token, host )
|
diff_id, conduit_token, host )
|
||||||
result = subprocess.run(cmd, capture_output=True, shell=True, text=True)
|
result = subprocess.run(cmd, capture_output=True, shell=True, text=True)
|
||||||
|
|
Loading…
Reference in a new issue