New Jenkinsfile (testing)

This commit is contained in:
Matthias Koefferlein 2018-06-24 10:36:19 +02:00
parent 01023dd291
commit 663ccf4ad7
1 changed files with 8 additions and 4 deletions

12
Jenkinsfile vendored
View File

@ -1,11 +1,9 @@
@Library("osconfig") _ @Library("osconfig") _
// from shared library
target = osconfig()
// a test ...
osconfig()
target = params.platform
currentBuild.description = "Pipelined "+target currentBuild.description = "Pipelined "+target
node("master") { node("master") {
@ -46,6 +44,12 @@ cp ${work_dir}/RPMS/*/*.rpm ${target_dir}
stage("Publish and test") stage("Publish and test")
parallel( parallel(
"Publish": {
// from shared library
publish(target)
},
"Unit testing": { "Unit testing": {
withDockerContainer(image: "jenkins-${target}") { withDockerContainer(image: "jenkins-${target}") {