summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-09-23 14:14:03 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-09-23 14:14:03 (GMT)
commitbbda910afc313a2a6fcf884757aafb2e1d57487e (patch)
tree89f40a37903fd41abebcee54b40d7add16332e9e
parent96dcd6f964b14c20075e169df0a49f73b80e7191 (diff)
downloadpublik-client-scripts-bbda910afc313a2a6fcf884757aafb2e1d57487e.zip
publik-client-scripts-bbda910afc313a2a6fcf884757aafb2e1d57487e.tar.gz
publik-client-scripts-bbda910afc313a2a6fcf884757aafb2e1d57487e.tar.bz2
add Jenkinfile
-rw-r--r--Jenkinsfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..d557ffa
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,29 @@
+@Library('eo-jenkins-lib@master') import eo.Utils
+
+pipeline {
+ agent any
+ stages {
+ stage('Packaging') {
+ steps {
+ script {
+ if (env.JOB_NAME == 'publik-client-scripts' && env.GIT_BRANCH == 'origin/master') {
+ sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch publik-client-scripts'
+ } else if (env.GIT_BRANCH.startsWith('hotfix/')) {
+ sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch --branch ${env.GIT_BRANCH} --hotfix publik-client-scripts"
+ }
+ }
+ }
+ }
+ }
+ post {
+ always {
+ script {
+ utils = new Utils()
+ utils.mail_notify(currentBuild, env, 'admin+jenkins-publik-client-scripts@entrouvert.com')
+ }
+ }
+ success {
+ cleanWs()
+ }
+ }
+}