Enabled CI builds (added Jenkinsfiles)

This commit is contained in:
Matthias Koefferlein 2018-06-26 01:03:39 +02:00
parent 108f90e382
commit b08ccb20dc
3 changed files with 94 additions and 0 deletions

60
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,60 @@
@Library("osconfig") _
// from shared library
target = osconfig()
currentBuild.description = "Pipelined " + target
node("master") {
artefacts = pwd() + "/artefacts"
target_dir = artefacts + "/" + target
stage("Checkout sources") {
checkout scm
}
stage("Building target ${target}") {
withDockerContainer(image: "jenkins-${target}") {
// from shared library
build(target, target_dir)
}
}
stage("Publish and test") {
parallel(
"Publish": {
// from shared library
publish(BRANCH_NAME, target, target_dir)
},
"Unit testing": {
ut_result = "no-result"
withDockerContainer(image: "jenkins-${target}") {
ut_result = run_ut(target)
}
junit(testResults: ut_result)
},
"Installtest": {
withDockerContainer(image: "jenkins-${target}-basic") {
// from shared library
installtest(target, target_dir)
}
})
}
}

19
Jenkinsfile-publish-doc Normal file
View File

@ -0,0 +1,19 @@
@Library("osconfig") _
node("master") {
stage("Checkout sources") {
checkout scm
}
stage("Producing doc") {
sh "./scripts/extract_user_doc.sh -i " + BRANCH_NAME
}
stage("Publish doc") {
publish_doc(BRANCH_NAME)
}
}

View File

@ -0,0 +1,15 @@
@Library("osconfig") _
node("master") {
stage("Checkout sources") {
checkout scm
}
stage("Publish sources") {
publish_sources(BRANCH_NAME)
}
}