1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-21 19:48:53 +02:00

helmExecute: rename remoteHelmChartPath to helmChartUrl (#3999)

This commit is contained in:
Vyacheslav Starostin 2022-09-02 15:55:30 +06:00 committed by GitHub
parent 6b5bf5232a
commit 72e257e83e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -100,7 +100,7 @@ func runHelmExecute(config helmExecuteOptions, helmExecutor kubernetes.HelmExecu
if err != nil {
return fmt.Errorf("failed to execute helm publish: %v", err)
}
commonPipelineEnvironment.custom.remoteHelmChartPath = targetURL
commonPipelineEnvironment.custom.helmChartURL = targetURL
default:
if err := runHelmExecuteDefault(config, helmExecutor, commonPipelineEnvironment); err != nil {
return err
@ -126,7 +126,7 @@ func runHelmExecuteDefault(config helmExecuteOptions, helmExecutor kubernetes.He
if err != nil {
return fmt.Errorf("failed to execute helm publish: %v", err)
}
commonPipelineEnvironment.custom.remoteHelmChartPath = targetURL
commonPipelineEnvironment.custom.helmChartURL = targetURL
}
return nil

View File

@ -45,7 +45,7 @@ type helmExecuteOptions struct {
type helmExecuteCommonPipelineEnvironment struct {
custom struct {
remoteHelmChartPath string
helmChartURL string
}
}
@ -55,7 +55,7 @@ func (p *helmExecuteCommonPipelineEnvironment) persist(path, resourceName string
name string
value interface{}
}{
{category: "custom", name: "remoteHelmChartPath", value: p.custom.remoteHelmChartPath},
{category: "custom", name: "helmChartUrl", value: p.custom.helmChartURL},
}
errCount := 0
@ -536,7 +536,7 @@ func helmExecuteMetadata() config.StepData {
Name: "commonPipelineEnvironment",
Type: "piperEnvironment",
Parameters: []map[string]interface{}{
{"name": "custom/remoteHelmChartPath"},
{"name": "custom/helmChartUrl"},
},
},
},

View File

@ -302,4 +302,4 @@ spec:
- name: commonPipelineEnvironment
type: piperEnvironment
params:
- name: custom/remoteHelmChartPath
- name: custom/helmChartUrl