moving Windows pipeline to use new branches
This commit is contained in:
parent
7023688d1b
commit
20e6680573
1 changed files with 12 additions and 24 deletions
36
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
36
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
|
@ -19,6 +19,7 @@ pipeline {
|
||||||
parameters {
|
parameters {
|
||||||
string(name: 'DIFF_ID')
|
string(name: 'DIFF_ID')
|
||||||
string(name: 'PHID')
|
string(name: 'PHID')
|
||||||
|
string(name: 'REV_ID')
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
CONDUIT_TOKEN = credentials('phabricator-conduit-token')
|
CONDUIT_TOKEN = credentials('phabricator-conduit-token')
|
||||||
|
@ -37,7 +38,11 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage("build info"){
|
stage("build info"){
|
||||||
steps {
|
steps {
|
||||||
echo "Building diff ${DIFF_ID} with PHID ${PHID}"
|
echo "Building diff ${DIFF_ID} with PHID ${PHID} for Revision ${REV_ID}"
|
||||||
|
script {
|
||||||
|
currentBuild.displayName += " D${REV_ID}"
|
||||||
|
currentBuild.description = "<a href='https://reviews.llvm.org/D${REV_ID}'>D${REV_ID}</a>"
|
||||||
|
}
|
||||||
script {
|
script {
|
||||||
success = true
|
success = true
|
||||||
failure_message = ""
|
failure_message = ""
|
||||||
|
@ -54,9 +59,9 @@ pipeline {
|
||||||
echo "getting llvm-project... "
|
echo "getting llvm-project... "
|
||||||
dir("llvm-project")
|
dir("llvm-project")
|
||||||
{
|
{
|
||||||
bat ""
|
git url: 'https://github.com/llvm-premerge-tests/llvm-project.git', branch: "phab-diff-${DIFF_ID}"
|
||||||
bat 'if exist "build" rd /s/q "build"'
|
powershell 'git clean -fdx'
|
||||||
git url: 'https://github.com/llvm/llvm-project.git'
|
powershell 'git show -s'
|
||||||
}
|
}
|
||||||
// create ${RESULT_DIR}
|
// create ${RESULT_DIR}
|
||||||
powershell """
|
powershell """
|
||||||
|
@ -65,27 +70,10 @@ pipeline {
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('arc patch'){
|
|
||||||
steps {
|
|
||||||
dir("${LLVM_DIR}"){
|
|
||||||
bat """
|
|
||||||
python ${SCRIPT_DIR}/phabtalk/apply_patch2.py --comment-file ${PHAB_LOG} --token ${CONDUIT_TOKEN} --url ${PHABRICATOR_HOST} ${DIFF_ID}
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
failure {
|
|
||||||
script {
|
|
||||||
success = false
|
|
||||||
failure_message = "Failed to apply patch"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('CMake') {
|
stage('CMake') {
|
||||||
steps {
|
steps {
|
||||||
dir("${LLVM_DIR}"){
|
dir("${LLVM_DIR}"){
|
||||||
powershell "${SCRIPT_DIR}/run_cmake.ps1 -projects detect"
|
powershell "${SCRIPT_DIR}/run_cmake.py detect"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
@ -100,7 +88,7 @@ pipeline {
|
||||||
stage('ninja all') {
|
stage('ninja all') {
|
||||||
steps {
|
steps {
|
||||||
dir("${LLVM_DIR}"){
|
dir("${LLVM_DIR}"){
|
||||||
powershell "${SCRIPT_DIR}/run_ninja.ps1 all"
|
powershell "${SCRIPT_DIR}/run_ninja.py all"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
@ -115,7 +103,7 @@ pipeline {
|
||||||
stage('ninja check-all') {
|
stage('ninja check-all') {
|
||||||
steps {
|
steps {
|
||||||
dir("${LLVM_DIR}"){
|
dir("${LLVM_DIR}"){
|
||||||
powershell "${SCRIPT_DIR}/run_ninja.ps1 check-all"
|
powershell "${SCRIPT_DIR}/run_ninja.py check-all"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|
Loading…
Reference in a new issue