publik-infra/Jenkinsfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
787 B
Plaintext
Raw Permalink Normal View History

2020-12-26 15:22:16 +01:00
@Library('eo-jenkins-lib@main') import eo.Utils
2020-10-27 10:17:58 +01:00
pipeline {
agent any
stages {
stage('Unit Tests') {
steps {
sh 'echo "no test implemented"'
}
}
stage('Packaging') {
steps {
script {
2020-12-26 15:22:16 +01:00
if (env.JOB_NAME == 'publik-infra' && env.GIT_BRANCH == 'origin/main') {
2020-10-27 10:17:58 +01:00
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder publik-infra'
}
}
}
}
}
post {
always {
script {
utils = new Utils()
utils.mail_notify(currentBuild, env, 'admin+adminsys@entrouvert.com')
}
}
success {
cleanWs()
}
}
}