mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
artifactPrepareVersion: Add usage of gradle docker image if buildTool is gradle (#4226)
This commit is contained in:
parent
54d0c68feb
commit
7c7dcbf910
@ -515,6 +515,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
|||||||
},
|
},
|
||||||
Containers: []config.Container{
|
Containers: []config.Container{
|
||||||
{Image: "maven:3.6-jdk-8", Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "maven"}}}}},
|
{Image: "maven:3.6-jdk-8", Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "maven"}}}}},
|
||||||
|
{Image: "gradle:6-jdk11-alpine", Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "gradle"}}}}},
|
||||||
},
|
},
|
||||||
Outputs: config.StepOutputs{
|
Outputs: config.StepOutputs{
|
||||||
Resources: []config.StepResources{
|
Resources: []config.StepResources{
|
||||||
|
@ -357,3 +357,9 @@ spec:
|
|||||||
params:
|
params:
|
||||||
- name: buildTool
|
- name: buildTool
|
||||||
value: maven
|
value: maven
|
||||||
|
- image: gradle:6-jdk11-alpine
|
||||||
|
conditions:
|
||||||
|
- conditionRef: strings-equal
|
||||||
|
params:
|
||||||
|
- name: buildTool
|
||||||
|
value: gradle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user