klayout/Jenkinsfile-msvc2017

60 lines
999 B
Plaintext
Raw Permalink Normal View History

2022-12-17 20:34:41 +01:00
@Library("osconfig") _
properties([disableConcurrentBuilds()])
// from shared library
target = osconfig()
currentBuild.description = "Pipelined " + target
node("master") {
artefacts = pwd() + "/artefacts"
target_dir = artefacts + "/" + target
stage("Checkout sources") {
checkout scm
checkout_private()
}
stage("Building target ${target}") {
2022-12-17 23:59:19 +01:00
// from shared library
build(target, target_dir)
2022-12-17 20:34:41 +01:00
}
stage("Publish and test") {
parallel(
"Publish": {
// from shared library - only publish for normal branch, not for PR
if (! BRANCH_NAME.startsWith('PR')) {
publish(BRANCH_NAME, target, target_dir)
}
},
"Unit testing": {
ut_result = "no-result"
2022-12-17 23:59:19 +01:00
ut_result = run_ut(target)
2022-12-17 20:34:41 +01:00
junit(testResults: ut_result)
},
"Installtest": {
2022-12-17 23:59:19 +01:00
// from shared library
2022-12-18 01:13:08 +01:00
installtest_nopython(target, target_dir)
2022-12-17 20:34:41 +01:00
})
}
}