add phabtalk to windows build
This commit is contained in:
parent
a5f6516d71
commit
e94ecbbd88
1 changed files with 13 additions and 2 deletions
15
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
15
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
|
@ -25,7 +25,7 @@ pipeline {
|
||||||
PHABRICATOR_HOST = 'https://reviews.llvm.org'
|
PHABRICATOR_HOST = 'https://reviews.llvm.org'
|
||||||
PHAB_LOG = "${WORKSPACE}/build/.phabricator-comment"
|
PHAB_LOG = "${WORKSPACE}/build/.phabricator-comment"
|
||||||
MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
|
MY_BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
|
||||||
RESULT_URL = "http://results.llvm-merge-guard.org/${MY_BUILD_ID}"
|
RESULT_URL = "https://pantheon.corp.google.com/storage/browser/llvm-premerge-checks/results/${MY_BUILD_ID}"
|
||||||
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
|
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
|
||||||
// store all build results here, will be uploaded to GCS later
|
// store all build results here, will be uploaded to GCS later
|
||||||
RESULT_DIR = "${WORKSPACE}\\results"
|
RESULT_DIR = "${WORKSPACE}\\results"
|
||||||
|
@ -91,7 +91,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
echo "Logs uploaded to https://pantheon.corp.google.com/storage/browser/llvm-premerge-checks/results/${MY_BUILD_ID}."
|
echo "Uploading logs to ${RESULT_URL} ..."
|
||||||
dir("${env.RESULT_DIR}") {
|
dir("${env.RESULT_DIR}") {
|
||||||
// gather all result files in a folder, then upload everything to
|
// gather all result files in a folder, then upload everything to
|
||||||
// Google Cloud Storage
|
// Google Cloud Storage
|
||||||
|
@ -110,6 +110,17 @@ pipeline {
|
||||||
Write-Host "Done."
|
Write-Host "Done."
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
/// send results to Phabricator
|
||||||
|
bat """ python ${SCRIPT_DIR}/phabtalk/phabtalk.py "${PHID}" "${DIFF_ID}" \
|
||||||
|
--workspace "${LLVM_DIR}" \
|
||||||
|
--conduit-token "${CONDUIT_TOKEN}" \
|
||||||
|
--test-result-file "test-results.xml" \
|
||||||
|
--host "${PHABRICATOR_HOST}/api/" \
|
||||||
|
--buildresult ${currentBuild.result} \
|
||||||
|
--results-dir "${env.RESULT_DIR}" \
|
||||||
|
--results-url "${RESULT_URL}" \
|
||||||
|
--failures "${failure_message}"
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue