summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-09-23 14:01:27 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-09-23 14:01:27 (GMT)
commit9bfabe132fd9da0d31f69b1687e541ded10aeb49 (patch)
treefeadbf5754b5e93e269f706df9a28bbd00c04201
parent3e452e6a89b164b15f0fe16d3e3fcc50165488a4 (diff)
downloadpasserelle-imio-extra-fees-9bfabe132fd9da0d31f69b1687e541ded10aeb49.zip
passerelle-imio-extra-fees-9bfabe132fd9da0d31f69b1687e541ded10aeb49.tar.gz
passerelle-imio-extra-fees-9bfabe132fd9da0d31f69b1687e541ded10aeb49.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..cdb0684
--- /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 == 'passerelle-imio-extra-fees' && env.GIT_BRANCH == 'origin/master') {
+ sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch passerelle-imio-extra-fees'
+ } else if (env.GIT_BRANCH.startsWith('hotfix/')) {
+ sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch --branch ${env.GIT_BRANCH} --hotfix passerelle-imio-extra-fees"
+ }
+ }
+ }
+ }
+ }
+ post {
+ always {
+ script {
+ utils = new Utils()
+ utils.mail_notify(currentBuild, env, 'admin+jenkins-passerelle-imio-extra-fees@entrouvert.com')
+ }
+ }
+ success {
+ cleanWs()
+ }
+ }
+}