1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

Store build tool in commonPipelineEnvironment (#1645)

This commit is contained in:
Daniel Kurzynski 2020-06-09 14:52:03 +02:00 committed by GitHub
parent 4295f7a24e
commit 1ee13b358b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,7 @@ void call(Map parameters = [:]) {
.mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS)
.mixin(parameters, PARAMETER_KEYS)
.addIfEmpty('dockerImageTag', script.commonPipelineEnvironment.getArtifactVersion())
.addIfEmpty('buildTool', script.commonPipelineEnvironment.getBuildTool())
.use()
// telemetry reporting

View File

@ -10,6 +10,9 @@ class commonPipelineEnvironment implements Serializable {
def artifactVersion
def originalArtifactVersion
//stores the build tools if it inferred automatically, e.g. in the SAP Cloud SDK pipeline
String buildTool
//Stores the current buildResult
String buildResult = 'SUCCESS'
@ -54,6 +57,8 @@ class commonPipelineEnvironment implements Serializable {
artifactVersion = null
originalArtifactVersion = null
buildTool = null
configuration = [:]
containerProperties = [:]