added TODOs
This commit is contained in:
parent
f900aa44f2
commit
1a9f952f5e
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,8 @@ pipeline {
|
||||||
PHAB_LOG = "${WORKSPACE}/build/.phabricator-comment"
|
PHAB_LOG = "${WORKSPACE}/build/.phabricator-comment"
|
||||||
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
|
SCRIPT_DIR = "${WORKSPACE}/llvm-premerge-checks/scripts"
|
||||||
BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
|
BUILD_ID = "${JOB_BASE_NAME}-${BUILD_NUMBER}"
|
||||||
|
// TODO: replace result dir with Google Cloud Storage,
|
||||||
|
// TODO: create local result folder that is uploaded to GCS later, as on Windows
|
||||||
TARGET_DIR = "/mnt/nfs/results/${BUILD_ID}"
|
TARGET_DIR = "/mnt/nfs/results/${BUILD_ID}"
|
||||||
RESULT_URL = "http://results.llvm-merge-guard.org/${BUILD_ID}"
|
RESULT_URL = "http://results.llvm-merge-guard.org/${BUILD_ID}"
|
||||||
DIFF_JSON = "${WORKSPACE}/build/diff.json"
|
DIFF_JSON = "${WORKSPACE}/build/diff.json"
|
||||||
|
@ -35,6 +37,7 @@ pipeline {
|
||||||
stage("build info"){
|
stage("build info"){
|
||||||
steps {
|
steps {
|
||||||
echo "Building diff ${DIFF_ID} with PHID ${PHID}"
|
echo "Building diff ${DIFF_ID} with PHID ${PHID}"
|
||||||
|
// TODO: replace this scripting by submitting the Revision from Phabricator as additional Parameter
|
||||||
script {
|
script {
|
||||||
def revision_phid = sh(script:
|
def revision_phid = sh(script:
|
||||||
'echo \'{"constraints":{"ids":[' + DIFF_ID + ']}}\' | '+
|
'echo \'{"constraints":{"ids":[' + DIFF_ID + ']}}\' | '+
|
||||||
|
@ -73,6 +76,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('arc patch'){
|
stage('arc patch'){
|
||||||
steps {
|
steps {
|
||||||
|
//TODO: Why are we using pre/post variables and not try/catch as in `ninja all`?
|
||||||
script {
|
script {
|
||||||
success = false
|
success = false
|
||||||
failure_message = "Failed to apply patch"
|
failure_message = "Failed to apply patch"
|
||||||
|
@ -93,6 +97,8 @@ pipeline {
|
||||||
sh 'rm -rf build || true'
|
sh 'rm -rf build || true'
|
||||||
sh 'mkdir -p build'
|
sh 'mkdir -p build'
|
||||||
sh 'mkdir -p "${TARGET_DIR}"'
|
sh 'mkdir -p "${TARGET_DIR}"'
|
||||||
|
// TODO: replace with Pyhton script for CMake that works on Linux and Windows
|
||||||
|
// TODO: Limit to projects affected by the change
|
||||||
sh "${SCRIPT_DIR}/run_cmake.sh"
|
sh "${SCRIPT_DIR}/run_cmake.sh"
|
||||||
script {
|
script {
|
||||||
success = true
|
success = true
|
||||||
|
@ -104,6 +110,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
|
// TODO: replace with Python script that works on Linux and Windows
|
||||||
sh(script: "${SCRIPT_DIR}/run_ninja.sh all")
|
sh(script: "${SCRIPT_DIR}/run_ninja.sh all")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
success = false;
|
success = false;
|
||||||
|
@ -114,6 +121,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('ninja check-all') {
|
stage('ninja check-all') {
|
||||||
|
// TODO: do not trigger `ninja check-all` after `ninja all` has failed!
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue