rewrite of result action
This commit is contained in:
parent
18cc8b90b5
commit
c75b9fa3ff
1 changed files with 6 additions and 11 deletions
17
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
17
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
|
@ -77,17 +77,12 @@ pipeline {
|
||||||
// copy console log to result folder
|
// copy console log to result folder
|
||||||
sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText"
|
sh "wget -qO console-log.txt http://jenkins-ui.jenkins.svc.cluster.local:8080/job/${JOB_BASE_NAME}/${BUILD_NUMBER}/consoleText"
|
||||||
}
|
}
|
||||||
sh """
|
sh "echo Log files: [[${RESULT_URL}/console-log.txt | console-log.txt]], [[${RESULT_URL}/CMakeCache.txt | CMakeCache.txt]] > ${PHAB_LOG}"
|
||||||
cat > ${PHAB_LOG} << EOM
|
sh "${SCRIPT_DIR}/phabtalk/phabtalk.py ${PHID} ${DIFF_ID}
|
||||||
Log files: [[${RESULT_URL}/console-log.txt | console-log.txt]], [[${RESULT_URL}/CMakeCache.txt | CMakeCache.txt]]
|
--conduit-token ${CONDUIT_TOKEN} \
|
||||||
EOM
|
--test-result-file ${TEST_REPORT} \
|
||||||
|
--comment-file ${PHAB_LOG} \
|
||||||
${SCRIPT_DIR}/phabtalk/phabtalk.py "${PHID}" "${DIFF_ID}"
|
--host https://reviews.llvm.org/api/"
|
||||||
--conduit-token "${CONDUIT_TOKEN}" \
|
|
||||||
--test-result-file "${TEST_REPORT}" \
|
|
||||||
--comment-file "${PHAB_LOG}" \
|
|
||||||
--host "https://reviews.llvm.org/api/"
|
|
||||||
"""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue