Pass version in struct

This commit is contained in:
Jim Nicholson 2024-02-12 21:20:56 -08:00
parent 3a5cbb4d4d
commit fbfd765510

View File

@ -13,7 +13,7 @@ void call(Map config = [:], Closure body = { }) {
if (runConfig.saveArtifacts) {
assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!'
}
withEnv(["TAG=${runConfig.gitTag}", "HASH=${runConfig.gitHash}", "VERSION=${version}"]) {
withEnv(["TAG=${runConfig.gitTag}", "HASH=${runConfig.gitHash}", "VERSION=${runConfig.version}"]) {
if ( fileExists(runConfig.buildRequires)) {
sh """
${runConfig.buildCmd}