1 Star 2 Fork 1

liq07lzucn/ac_learning_note

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Jenkinsfile 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
liq07lzucn 提交于 2024-03-10 11:57 . fix stash unstash
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
// }
}
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qiangge_666/ac_learning_note.git
git@gitee.com:qiangge_666/ac_learning_note.git
qiangge_666
ac_learning_note
ac_learning_note
master

搜索帮助