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:
parent
4295f7a24e
commit
1ee13b358b
@ -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
|
||||
|
@ -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 = [:]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user