Compare commits

..

1 Commits

Author SHA1 Message Date
7ee4344adc fix(jenkins): do not trigger emissary-firmware with dirty tag
Some checks reported warnings
arcad/emissary/pipeline/head This commit is unstable
2023-04-06 10:40:05 +02:00

17
Jenkinsfile vendored
View File

@ -51,13 +51,16 @@ pipeline {
sh 'make gitea-release'
}
def currentVersion = sh(returnStdout: true, script: 'make full-version').trim()
sh 'git status'
// build(
// job: "../emissary-firmware/${env.GIT_BRANCH}",
// parameters: [
// [$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
// ]
// )
if (currentVersion.endsWith('-dirty')) {
unstable('Could not trigger emissary-firmware build, dirty version !')
} else {
build(
job: "../emissary-firmware/${env.GIT_BRANCH}",
parameters: [
[$class: 'StringParameterValue', name: 'emissaryRelease', value: currentVersion]
]
)
}
}
}
}