Pass version in struct
This commit is contained in:
parent
3a5cbb4d4d
commit
fbfd765510
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user