New Jenkinsfile (testing)

This commit is contained in:
Matthias Koefferlein 2018-06-24 10:45:08 +02:00
parent 663ccf4ad7
commit 7e5ab4dddf
1 changed files with 26 additions and 16 deletions

16
Jenkinsfile vendored
View File

@ -15,7 +15,13 @@ node("master") {
target_dir = artefacts + "/" + target
work_dir = pwd() + "/" + target
stage("Building target ${target}")
stage("Checkout sources") {
checkout scm
}
stage("Building target ${target}") {
sh("rm -rf ${target_dir}")
sh("mkdir -p ${target_dir}")
@ -41,13 +47,15 @@ cp ${work_dir}/RPMS/*/*.rpm ${target_dir}
}
stage("Publish and test")
}
stage("Publish and test") {
parallel(
"Publish": {
// from shared library
publish(target)
publish(BRANCH_NAME, target, target_dir)
},
"Unit testing": {
@ -83,5 +91,7 @@ klayout -b -h
})
}
}