wcs-olap/Jenkinsfile

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-01-17 17:46:55 +01:00
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh 'tox -rv'
}
2019-02-22 14:13:27 +01:00
post {
always {
script {
utils = new Utils()
utils.publish_coverage('coverage.xml')
utils.publish_coverage_native()
}
2019-02-22 14:48:45 +01:00
junit 'junit.xml'
2019-02-22 14:13:27 +01:00
}
}
2019-01-17 17:46:55 +01:00
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'wcs-olap' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder wcs-olap'
2019-01-17 17:46:55 +01:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'ci+jenkins-wcs-olap@entrouvert.org')
2019-01-17 17:46:55 +01:00
}
}
success {
cleanWs()
}
}
}