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:
parent
6b5bf5232a
commit
72e257e83e
@ -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
|
||||
|
@ -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"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -302,4 +302,4 @@ spec:
|
||||
- name: commonPipelineEnvironment
|
||||
type: piperEnvironment
|
||||
params:
|
||||
- name: custom/remoteHelmChartPath
|
||||
- name: custom/helmChartUrl
|
||||
|
Loading…
x
Reference in New Issue
Block a user