1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-07-09 01:15:52 +02:00

feat(getConfig): retrieve metadata by stepName (#2736)

* refactored getConfig to allow stepName param for metadata fetching

* extended step generator

* go generate

* Update cmd/getConfig.go

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Update cmd/getConfig.go

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Update cmd/getConfig.go

* update generated files

* update golden files to care for generator update

* update and add tests

* update generated files

* Update cmd/getConfig.go

* Update cmd/getConfig.go

* update/fix formatting

Co-authored-by: Leander Schulz <leander.schulz01@sap.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: OliverNocon <oliver.nocon@sap.com>
This commit is contained in:
lndrschlz
2021-06-14 08:58:41 +02:00
committed by GitHub
parent 6c7814e4d5
commit ae4a24c594
79 changed files with 1007 additions and 14 deletions

View File

@ -129,6 +129,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "bool",
Mandatory: false,
Default: true,
Aliases: []config.Alias{},
},
{
@ -137,6 +138,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "[]string",
Mandatory: false,
Default: []string{},
Aliases: []config.Alias{},
},
{
@ -145,6 +147,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
Type: "string",
Mandatory: false,
Default: os.Getenv("PIPER_defaultNpmRegistry"),
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
},
{
@ -153,6 +156,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "bool",
Mandatory: false,
Default: false,
Aliases: []config.Alias{},
},
{
@ -161,6 +165,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "[]string",
Mandatory: false,
Default: []string{},
Aliases: []config.Alias{},
},
{
@ -169,6 +174,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "[]string",
Mandatory: false,
Default: []string{`deployment/**`},
Aliases: []config.Alias{},
},
{
@ -177,6 +183,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
Type: "[]string",
Mandatory: false,
Default: []string{},
Aliases: []config.Alias{},
},
{
@ -185,6 +192,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
Type: "bool",
Mandatory: false,
Default: false,
Aliases: []config.Alias{},
},
},