From b31900ae2fec7936a0932b84eb674530ebd7befb Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 25 Aug 2023 10:36:18 -0600 Subject: [PATCH] ci: use jenkins environment to define current branch name for version generation --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f156b9a..7f97115 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { } } } - + stage('Run unit tests') { steps { script { @@ -58,12 +58,13 @@ pipeline { passwordVariable: 'GITEA_RELEASE_PASSWORD' ]) ]) { - sh ''' + sh """ + export MKT_PROJECT_VERSION_BRANCH_NAME=${env.BRANCH_NAME} make mktools make gitea-release - ''' + """ } - + build( job: "../emissary-firmware/${env.GIT_BRANCH}", parameters: [