change build package condition (#23431)

This commit is contained in:
Emmanuel Cazenave 2018-06-01 10:40:10 +02:00
parent 86457dba03
commit 5f2737919a
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -5,14 +5,13 @@ pipeline {
stages {
stage('Unit Tests') {
steps {
echo "Job name : ${env.JOB_NAME}"
sh 'tox -rv'
}
}
stage('Packaging') {
steps {
script {
if (env.BRANCH_NAME == 'master' && env.JOB_NAME == 'combo') {
if (env.JOB_NAME == 'combo' && env.GIT_BRANCH == 'origin/master') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder -d jessie,stretch combo'
}
}