代码拉取完成,页面将自动刷新
pipeline {
agent {
label 'master'
}
stages {
stage('Hello') {
steps {
script {
sh 'ls'
stash includes: 'book-xetex-UTF-8/**,*.sh', name: 'repo_stash'
timeout(activity: true, time: 600, unit: 'SECONDS') {
node(env.LABEL) {
unstash 'repo_stash'
sh 'ls -lat'
sh "bash -x build_and_runtest.sh"
try
{
sh 'ls -lat'
dir("book-xetex-UTF-8")
{
sh 'ls -lat'
// junit testResults:"report_gtest.xml", allowEmptyResults: false
archiveArtifacts artifacts: "*.pdf", fingerprint: true
}
}catch(exc)
{
echo 'no results in build dir'
}
}
}
}
}
}
}
post {
always{
cleanWs()
}
failure {
addGiteeMRComment comment: "+ CI build failure! [BUILD](" + env.RUN_DISPLAY_URL + ")"
}
aborted {
addGiteeMRComment comment: "+ CI build aborted! [BUILD](" + env.RUN_DISPLAY_URL + ")"
}
success{
addGiteeMRComment comment: "+ CI build success! [BUILD](" + env.RUN_DISPLAY_URL + ")"
// acceptGiteeMR("+auto merged with CI, CI build success! [BUILD](" + env.RUN_DISPLAY_URL + ")")
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。