ci: use jenkins environment to define current branch name for version generation
arcad/emissary/pipeline/head There was a failure building this commit Details

This commit is contained in:
wpetit 2023-08-25 10:36:18 -06:00
parent 777648ff44
commit b31900ae2f
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -19,7 +19,7 @@ pipeline {
} }
} }
} }
stage('Run unit tests') { stage('Run unit tests') {
steps { steps {
script { script {
@ -58,12 +58,13 @@ pipeline {
passwordVariable: 'GITEA_RELEASE_PASSWORD' passwordVariable: 'GITEA_RELEASE_PASSWORD'
]) ])
]) { ]) {
sh ''' sh """
export MKT_PROJECT_VERSION_BRANCH_NAME=${env.BRANCH_NAME}
make mktools make mktools
make gitea-release make gitea-release
''' """
} }
build( build(
job: "../emissary-firmware/${env.GIT_BRANCH}", job: "../emissary-firmware/${env.GIT_BRANCH}",
parameters: [ parameters: [