fix(jenkins): do not trigger emissary-firmware with dirty tag
arcad/emissary/pipeline/head This commit is unstable Details

This commit is contained in:
wpetit 2023-04-06 10:30:40 +02:00
parent 06b1235707
commit 7ee4344adc
1 changed files with 16 additions and 12 deletions

4
Jenkinsfile vendored
View File

@ -51,6 +51,9 @@ pipeline {
sh 'make gitea-release' sh 'make gitea-release'
} }
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim() def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
if (currentVersion.endsWith('-dirty')) {
unstable('Could not trigger emissary-firmware build, dirty version !')
} else {
build( build(
job: "../emissary-firmware/${env.GIT_BRANCH}", job: "../emissary-firmware/${env.GIT_BRANCH}",
parameters: [ parameters: [
@ -61,6 +64,7 @@ pipeline {
} }
} }
} }
}
post { post {
always { always {