1
0
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:
Vyacheslav Starostin 2023-02-13 19:49:26 +06:00 committed by GitHub
parent 54d0c68feb
commit 7c7dcbf910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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{

View File

@ -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