publik-common/Jenkinsfile

33 lines
793 B
Plaintext
Raw Normal View History

2018-09-04 18:23:19 +02:00
@Library('eo-jenkins-lib@master') import eo.Utils
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh 'echo "no test implemented"'
}
}
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'publik-common' && env.GIT_BRANCH == 'origin/master') {
2018-09-05 11:47:04 +02:00
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder publik-common'
2018-09-04 18:23:19 +02:00
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+adminsys@entrouvert.com')
}
}
success {
cleanWs()
}
}
}