mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Fix bug in step generator (#964)
When using step generator outside of the current package the `PrepareConfig` call was not done using the prefix.
This commit is contained in:
parent
dca4a079b7
commit
d7efd33a5b
@ -56,7 +56,7 @@ func {{.CobraCmdFuncName}}() *cobra.Command {
|
|||||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||||
log.SetStepName("{{ .StepName }}")
|
log.SetStepName("{{ .StepName }}")
|
||||||
log.SetVerbose({{if .ExportPrefix}}{{ .ExportPrefix }}.{{end}}GeneralConfig.Verbose)
|
log.SetVerbose({{if .ExportPrefix}}{{ .ExportPrefix }}.{{end}}GeneralConfig.Verbose)
|
||||||
return PrepareConfig(cmd, &metadata, "{{ .StepName }}", &my{{ .StepName | title}}Options, {{if .ExportPrefix}}{{ .ExportPrefix }}.{{end}}OpenPiperFile)
|
return {{if .ExportPrefix}}{{ .ExportPrefix }}.{{end}}PrepareConfig(cmd, &metadata, "{{ .StepName }}", &my{{ .StepName | title}}Options, {{if .ExportPrefix}}{{ .ExportPrefix }}.{{end}}OpenPiperFile)
|
||||||
},
|
},
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
return {{.StepName}}(my{{ .StepName | title }}Options)
|
return {{.StepName}}(my{{ .StepName | title }}Options)
|
||||||
|
Loading…
Reference in New Issue
Block a user