From b45af73da5a2d4272b325dee58dd0b7caf6ecc8b Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Thu, 2 Apr 2020 11:07:57 +0200 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee53fc4..42d9bc3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -@Library('eo-jenkins-lib@wip/mail-notify') import eo.Utils +@Library('eo-jenkins-lib@master') import eo.Utils pipeline { agent any @@ -8,11 +8,13 @@ pipeline { sh 'tox -r -- --junitxml=test_results.xml --cov-report xml --cov-report html --cov=bidon/ tests/' } } - stage('packaging') { + stage('Packaging') { steps { script { - if (env.BRANCH_NAME == 'master') { - sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d jessie bidon' + if (env.JOB_NAME == 'bidon' && env.GIT_BRANCH == 'origin/master') { + sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder bidon' + } else if (env.GIT_BRANCH.startsWith('hotfix/')) { + sh "sudo -H -u eobuilder /usr/local/bin/eobuilder -d stretch --branch ${env.GIT_BRANCH} --hotfix bidon" } } }