fixed step order
This commit is contained in:
parent
e94ecbbd88
commit
aa7bdb4615
1 changed files with 15 additions and 12 deletions
19
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
19
Jenkins/Phabricator-windows-pipeline/Jenkinsfile
vendored
|
@ -93,8 +93,7 @@ pipeline {
|
||||||
always {
|
always {
|
||||||
echo "Uploading logs to ${RESULT_URL} ..."
|
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
|
||||||
// Google Cloud Storage
|
|
||||||
powershell """
|
powershell """
|
||||||
Write-Host "Getting the console log..."
|
Write-Host "Getting the console log..."
|
||||||
Invoke-WebRequest -OutFile console-log.txt -uri "http://jenkins.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText" -ErrorAction "Continue"
|
Invoke-WebRequest -OutFile console-log.txt -uri "http://jenkins.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText" -ErrorAction "Continue"
|
||||||
|
@ -103,11 +102,6 @@ pipeline {
|
||||||
Copy-Item "${LLVM_DIR}\\choose_projects.log" -ErrorAction Continue
|
Copy-Item "${LLVM_DIR}\\choose_projects.log" -ErrorAction Continue
|
||||||
Copy-Item "${LLVM_DIR}\\build\\CMakeCache.txt" -ErrorAction Continue
|
Copy-Item "${LLVM_DIR}\\build\\CMakeCache.txt" -ErrorAction Continue
|
||||||
Copy-Item "${LLVM_DIR}\\build\\test-results.xml" -ErrorAction Continue
|
Copy-Item "${LLVM_DIR}\\build\\test-results.xml" -ErrorAction Continue
|
||||||
|
|
||||||
Write-Host "Uploading results to GCS..."
|
|
||||||
\$ErrorActionPreference = 'Continue'
|
|
||||||
gsutil cp *.* gs://llvm-premerge-checks/results/${MY_BUILD_ID}/
|
|
||||||
Write-Host "Done."
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
/// send results to Phabricator
|
/// send results to Phabricator
|
||||||
|
@ -121,7 +115,16 @@ pipeline {
|
||||||
--results-url "${RESULT_URL}" \
|
--results-url "${RESULT_URL}" \
|
||||||
--failures "${failure_message}"
|
--failures "${failure_message}"
|
||||||
"""
|
"""
|
||||||
|
dir("${env.RESULT_DIR}") {
|
||||||
|
// upload results to
|
||||||
|
// Google Cloud Storage
|
||||||
|
powershell """
|
||||||
|
Write-Host "Uploading results to GCS..."
|
||||||
|
\$ErrorActionPreference = 'Continue'
|
||||||
|
gsutil cp *.* gs://llvm-premerge-checks/results/${MY_BUILD_ID}/
|
||||||
|
Write-Host "Done."
|
||||||
|
"""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue