From 3761a9f68aec3980ef61469d2c656cbdb5b5d3d1 Mon Sep 17 00:00:00 2001 From: Vyacheslav Starostin <32613074+vstarostin@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:56:59 +0600 Subject: [PATCH] artifactPrepareVersion: support conditions for customTLSCertificateLinks parameter (#4631) * Add conditions for customTlsCertificateLinks * go generate --- cmd/artifactPrepareVersion_generated.go | 1 + resources/metadata/artifactPrepareVersion.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/cmd/artifactPrepareVersion_generated.go b/cmd/artifactPrepareVersion_generated.go index bb745b16f..759dc41bb 100644 --- a/cmd/artifactPrepareVersion_generated.go +++ b/cmd/artifactPrepareVersion_generated.go @@ -527,6 +527,7 @@ func artifactPrepareVersionMetadata() config.StepData { Mandatory: false, Aliases: []config.Alias{}, Default: []string{}, + Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "maven"}, {Name: "buildTool", Value: "gradle"}}}}, }, }, }, diff --git a/resources/metadata/artifactPrepareVersion.yaml b/resources/metadata/artifactPrepareVersion.yaml index eb20fdf2b..44abf0577 100644 --- a/resources/metadata/artifactPrepareVersion.yaml +++ b/resources/metadata/artifactPrepareVersion.yaml @@ -345,6 +345,13 @@ spec: - PARAMETERS - STAGES - STEPS + conditions: + - conditionRef: strings-equal + params: + - name: buildTool + value: maven + - name: buildTool + value: gradle outputs: resources: - name: commonPipelineEnvironment