1
0
Fork 0

fixed line breaks

This commit is contained in:
Christian Kühnel 2020-02-17 15:29:35 +00:00
parent 1c53d6ee86
commit 649dfb2f35

View file

@ -92,30 +92,33 @@ pipeline {
post { post {
always { always {
echo "Uploading logs to ${RESULT_URL} ..." echo "Uploading logs to ${RESULT_URL} ..."
dir("${env.RESULT_DIR}") { dir("${RESULT_DIR}") {
// gather all result files in a folder // gather all result files in a folder
powershell """ powershell """
\$ErrorActionPreference = 'Continue'
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"
Write-Host "Copying build artefacts..." Write-Host "Copying build artefacts..."
Copy-Item "${LLVM_DIR}\\choose_projects.log" -ErrorAction Continue Copy-Item "${LLVM_DIR}\\choose_projects.log"
Copy-Item "${LLVM_DIR}\\build\\CMakeCache.txt" -ErrorAction Continue Copy-Item "${LLVM_DIR}\\build\\CMakeCache.txt"
Copy-Item "${LLVM_DIR}\\build\\test-results.xml" -ErrorAction Continue Copy-Item "${LLVM_DIR}\\build\\test-results.xml"
""" """
} }
/// send results to Phabricator /// send results to Phabricator
bat """python ${SCRIPT_DIR}/phabtalk/phabtalk.py "${PHID}" "${DIFF_ID}" \ echo "Sending build feedback to Phabricator..."
--workspace "${LLVM_DIR}" \ bat """
--conduit-token "${CONDUIT_TOKEN}" \ python ${SCRIPT_DIR}/phabtalk/phabtalk.py "${PHID}" "${DIFF_ID}" ^
--test-result-file "test-results.xml" \ --workspace "${LLVM_DIR}" ^
--host "${PHABRICATOR_HOST}/api/" \ --conduit-token "${CONDUIT_TOKEN}" ^
--buildresult ${currentBuild.result} \ --test-result-file "test-results.xml" ^
--results-dir "${env.RESULT_DIR}" \ --host "${PHABRICATOR_HOST}/api/" ^
--results-url "${RESULT_URL}" \ --buildresult ${currentBuild.result} ^
--results-dir "${RESULT_DIR}" ^
--results-url "${RESULT_URL}" ^
--failures "${failure_message}" --failures "${failure_message}"
""" """
dir("${env.RESULT_DIR}") { dir("${RESULT_DIR}") {
// upload results to // upload results to
// Google Cloud Storage // Google Cloud Storage
powershell """ powershell """
@ -125,6 +128,7 @@ pipeline {
Write-Host "Done." Write-Host "Done."
""" """
} }
echo "Done."
} }
} }
} }