代码拉取完成,页面将自动刷新
env.LABEL=env.LABEL?:'jenkins41'
pipeline {
agent {
label env.LABEL
}
stages {
stage('all_stages') {
steps {
script {
stage('code_pulling') {
sh 'pwd && ls -lat'
// stash includes: '*/**', name: 'repo_stash'
}
timeout(activity: true, time: 600, unit: 'SECONDS') {
// node(env.LABEL) {
// unstash 'repo_stash'
sh """
bash -x build_run.sh
"""
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/coverage.xml', conditionalCoverageTargets: '70, 0, 0', enableNewApi: true, failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
publishCppcheck allowNoReport: true, ignoreBlankFiles: true, pattern: 'build/cppcheck.xml'
try {
sh 'ls -lat'
sh 'ls -lat build'
junit testResults:"build/report_gtest.xml", allowEmptyResults: false
archiveArtifacts artifacts: "build/report_gtest.xml", fingerprint: true
} catch(exc) {
echo 'no results in build dir'
}
junit testResults:"report_pytest.xml", allowEmptyResults: false
archiveArtifacts artifacts: "report_pytest.xml", fingerprint: true
// }
}
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。