Use the right values

This commit is contained in:
Jim Nicholson 2024-02-13 02:53:16 -08:00
parent 258546d13c
commit 1b2b99c2ea

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=${runConfig.version}"]) {
withEnv(["TAG=${runConfig.tag}", "HASH=${runConfig.hash}", "VERSION=${runConfig.version}"]) {
if ( fileExists(runConfig.buildRequires)) {
sh """
${runConfig.buildCmd}