build: update to use origin/main

This commit is contained in:
Frédéric Péters 2020-12-26 15:21:15 +01:00
parent e826eed313
commit 715b7555f2
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -1,4 +1,4 @@
@Library('eo-jenkins-lib@master') import eo.Utils @Library('eo-jenkins-lib@main') import eo.Utils
pipeline { pipeline {
agent any agent any
@ -21,7 +21,7 @@ pipeline {
stage('Packaging') { stage('Packaging') {
steps { steps {
script { script {
if (env.JOB_NAME == 'eopayment' && env.GIT_BRANCH == 'origin/master') { if (env.JOB_NAME == 'eopayment' && env.GIT_BRANCH == 'origin/main') {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder eopayment' sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder eopayment'
} else if (env.GIT_BRANCH.startsWith('hotfix/')) { } else if (env.GIT_BRANCH.startsWith('hotfix/')) {
sh "sudo -H -u eobuilder /usr/local/bin/eobuilder --branch ${env.GIT_BRANCH} --hotfix eopayment" sh "sudo -H -u eobuilder /usr/local/bin/eobuilder --branch ${env.GIT_BRANCH} --hotfix eopayment"