1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

feat: retrieve metadata by stepName - corrected (#2892)

* 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

* feat: retrieve metadata by stepName - corrected

* update generation

* update condition logic for defaults

* update generation & tests

* support multiple conditions

* update generation

* Add generated

Co-authored-by: Leander Schulz <leander.schulz01@sap.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
Co-authored-by: Sven Merk <s.merk@sap.com>
This commit is contained in:
Oliver Nocon
2021-06-16 08:43:30 +02:00
committed by GitHub
parent 07b90dc10b
commit 0b48bfcc73
83 changed files with 1101 additions and 23 deletions

View File

@@ -152,6 +152,9 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptorFileName", Name: "addonDescriptorFileName",
@@ -184,6 +190,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `addon.yml`,
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -197,6 +204,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -152,6 +152,9 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptorFileName", Name: "addonDescriptorFileName",
@@ -184,6 +190,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `addon.yml`,
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -197,6 +204,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -151,6 +151,9 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -159,6 +162,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -167,6 +171,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -175,6 +180,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -188,6 +194,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -120,6 +120,9 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -128,6 +131,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -136,6 +140,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -144,6 +149,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "targetVectorScope", Name: "targetVectorScope",
@@ -152,6 +158,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_targetVectorScope"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -165,6 +172,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -152,6 +152,9 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -189,6 +195,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -149,6 +149,9 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -157,6 +160,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -165,6 +169,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -173,6 +178,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -186,6 +192,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -154,6 +154,9 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapAddonAssemblyKitCredentialsId", Description: "Credential stored in Jenkins for the Addon Assembly Kit as a Service (AAKaaS) system", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "abapAddonAssemblyKitEndpoint", Name: "abapAddonAssemblyKitEndpoint",
@@ -162,6 +165,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://apps.support.sap.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -170,6 +174,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -178,6 +183,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -191,6 +197,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
}, },
}, },

View File

@@ -161,6 +161,9 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}, {Name: "credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -169,6 +172,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -177,6 +181,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -185,6 +190,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -193,6 +199,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -201,6 +208,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
{ {
Name: "host", Name: "host",
@@ -209,6 +217,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "username", Name: "username",
@@ -217,6 +226,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -225,6 +235,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -238,6 +249,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
{ {
Name: "maxRuntimeInMinutes", Name: "maxRuntimeInMinutes",
@@ -246,6 +258,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 360,
}, },
}, },
}, },

View File

@@ -165,6 +165,9 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}, {Name: "credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -173,6 +176,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -181,6 +185,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -189,6 +194,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -197,6 +203,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -205,6 +212,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
{ {
Name: "host", Name: "host",
@@ -213,6 +221,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "username", Name: "username",
@@ -221,6 +230,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -229,6 +239,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "addonDescriptor", Name: "addonDescriptor",
@@ -242,6 +253,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptor"),
}, },
{ {
Name: "maxRuntimeInMinutes", Name: "maxRuntimeInMinutes",
@@ -250,6 +262,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 360,
}, },
{ {
Name: "pollIntervalsInMilliseconds", Name: "pollIntervalsInMilliseconds",
@@ -258,6 +271,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 60000,
}, },
}, },
}, },

View File

@@ -134,6 +134,9 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}, {Name: "credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -148,6 +151,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -162,6 +166,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repositoryName", Name: "repositoryName",
@@ -170,6 +175,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repositoryName"),
}, },
{ {
Name: "branchName", Name: "branchName",
@@ -178,6 +184,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_branchName"),
}, },
{ {
Name: "host", Name: "host",
@@ -186,6 +193,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "repositories", Name: "repositories",
@@ -194,6 +202,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repositories"),
}, },
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -202,6 +211,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -210,6 +220,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -218,6 +229,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -226,6 +238,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -234,6 +247,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKeyName"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKeyName"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
}, },
}, },

View File

@@ -134,6 +134,9 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}, {Name: "credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -148,6 +151,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -162,6 +166,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repositories", Name: "repositories",
@@ -170,6 +175,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repositories"),
}, },
{ {
Name: "repositoryName", Name: "repositoryName",
@@ -178,6 +184,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repositoryName"),
}, },
{ {
Name: "branchName", Name: "branchName",
@@ -186,6 +193,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_branchName"),
}, },
{ {
Name: "host", Name: "host",
@@ -194,6 +202,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -202,6 +211,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -210,6 +220,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -218,6 +229,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -226,6 +238,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -234,6 +247,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
}, },
}, },

View File

@@ -144,6 +144,9 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Cloud Foundry API.", Type: "jenkins", Aliases: []config.Alias{{Name: "cloudFoundry/credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -152,6 +155,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: `https://api.cf.eu10.hana.ondemand.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -172,6 +176,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -192,6 +197,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -200,6 +206,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -208,6 +215,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfService", Name: "cfService",
@@ -216,6 +224,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/service"}}, Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
Default: os.Getenv("PIPER_cfService"),
}, },
{ {
Name: "cfServicePlan", Name: "cfServicePlan",
@@ -224,6 +233,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}}, Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
Default: os.Getenv("PIPER_cfServicePlan"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -232,6 +242,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "serviceManifest", Name: "serviceManifest",
@@ -240,6 +251,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
Default: os.Getenv("PIPER_serviceManifest"),
}, },
{ {
Name: "abapSystemAdminEmail", Name: "abapSystemAdminEmail",
@@ -248,6 +260,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_abapSystemAdminEmail"),
}, },
{ {
Name: "abapSystemDescription", Name: "abapSystemDescription",
@@ -256,6 +269,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `Test system created by an automated pipeline`,
}, },
{ {
Name: "abapSystemIsDevelopmentAllowed", Name: "abapSystemIsDevelopmentAllowed",
@@ -264,6 +278,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "abapSystemID", Name: "abapSystemID",
@@ -272,6 +287,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `H02`,
}, },
{ {
Name: "abapSystemSizeOfPersistence", Name: "abapSystemSizeOfPersistence",
@@ -280,6 +296,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 0,
}, },
{ {
Name: "abapSystemSizeOfRuntime", Name: "abapSystemSizeOfRuntime",
@@ -288,6 +305,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 0,
}, },
{ {
Name: "addonDescriptorFileName", Name: "addonDescriptorFileName",
@@ -296,6 +314,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_addonDescriptorFileName"),
}, },
{ {
Name: "includeAddon", Name: "includeAddon",
@@ -304,6 +323,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -134,6 +134,9 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}, {Name: "credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -148,6 +151,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -162,6 +166,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repositoryNames", Name: "repositoryNames",
@@ -170,6 +175,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "repositories", Name: "repositories",
@@ -178,6 +184,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repositories"),
}, },
{ {
Name: "host", Name: "host",
@@ -186,6 +193,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -194,6 +202,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -202,6 +211,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -210,6 +220,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -218,6 +229,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -226,6 +238,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
{ {
Name: "ignoreCommit", Name: "ignoreCommit",
@@ -234,6 +247,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -137,6 +137,9 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Platform ABAP Environment system or the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cfCredentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "atcConfig", Name: "atcConfig",
@@ -145,6 +148,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_atcConfig"),
}, },
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -153,6 +157,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -161,6 +166,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -169,6 +175,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -177,6 +184,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -185,6 +193,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "username", Name: "username",
@@ -199,6 +208,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -213,6 +223,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "host", Name: "host",
@@ -221,6 +232,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "atcResultsFileName", Name: "atcResultsFileName",
@@ -229,6 +241,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `ATCResults.xml`,
}, },
{ {
Name: "generateHTML", Name: "generateHTML",
@@ -237,6 +250,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -252,6 +252,10 @@ func artifactPrepareVersionMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "gitHttpsCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing username/password for http access to your git repository.", Type: "jenkins"},
{Name: "gitSshKeyCredentialsId", Description: "Jenkins 'SSH Username with private key' credentials ID ssh key for accessing your git repository. You can find details about how to generate an ssh key in the [GitHub documentation](https://docs.github.com/en/enterprise/2.15/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).", Type: "jenkins", Aliases: []config.Alias{{Name: "gitCredentialsId", Deprecated: true}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "buildTool", Name: "buildTool",
@@ -260,6 +264,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_buildTool"),
}, },
{ {
Name: "commitUserName", Name: "commitUserName",
@@ -268,6 +273,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "gitUserName"}}, Aliases: []config.Alias{{Name: "gitUserName"}},
Default: `Project Piper`,
}, },
{ {
Name: "customVersionField", Name: "customVersionField",
@@ -276,6 +282,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customVersionField"),
}, },
{ {
Name: "customVersionSection", Name: "customVersionSection",
@@ -284,6 +291,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customVersionSection"),
}, },
{ {
Name: "customVersioningScheme", Name: "customVersioningScheme",
@@ -292,6 +300,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customVersioningScheme"),
}, },
{ {
Name: "dockerVersionSource", Name: "dockerVersionSource",
@@ -300,6 +309,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerVersionSource"),
}, },
{ {
Name: "fetchCoordinates", Name: "fetchCoordinates",
@@ -308,6 +318,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -316,6 +327,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -324,6 +336,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "includeCommitId", Name: "includeCommitId",
@@ -332,6 +345,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -340,6 +354,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "password", Name: "password",
@@ -360,6 +375,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -368,6 +384,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "shortCommitId", Name: "shortCommitId",
@@ -376,6 +393,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "tagPrefix", Name: "tagPrefix",
@@ -384,6 +402,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `build_`,
}, },
{ {
Name: "unixTimestamp", Name: "unixTimestamp",
@@ -392,6 +411,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "username", Name: "username",
@@ -412,6 +432,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "versioningTemplate", Name: "versioningTemplate",
@@ -420,6 +441,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_versioningTemplate"),
}, },
{ {
Name: "versioningType", Name: "versioningType",
@@ -428,6 +450,7 @@ func artifactPrepareVersionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `cloud`,
}, },
}, },
}, },

View File

@@ -161,6 +161,7 @@ func batsExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `junit`,
}, },
{ {
Name: "repository", Name: "repository",
@@ -169,6 +170,7 @@ func batsExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://github.com/bats-core/bats-core.git`,
}, },
{ {
Name: "testPackage", Name: "testPackage",
@@ -177,6 +179,7 @@ func batsExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `piper-bats`,
}, },
{ {
Name: "testPath", Name: "testPath",
@@ -185,6 +188,7 @@ func batsExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `src/test`,
}, },
{ {
Name: "envVars", Name: "envVars",
@@ -193,6 +197,7 @@ func batsExecuteTestsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -129,6 +129,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}}, Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
Default: os.Getenv("PIPER_endpoint"),
}, },
{ {
Name: "username", Name: "username",
@@ -137,6 +138,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -145,6 +147,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "changeDocumentId", Name: "changeDocumentId",
@@ -153,6 +156,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_changeDocumentId"),
}, },
{ {
Name: "failIfStatusIsNotInDevelopment", Name: "failIfStatusIsNotInDevelopment",
@@ -161,6 +165,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "clientOpts", Name: "clientOpts",
@@ -169,6 +174,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -296,6 +296,9 @@ func checkmarxExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "checkmarxCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing username and password to communicate with the Checkmarx backend.", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "checkmarx", Type: "stash"}, {Name: "checkmarx", Type: "stash"},
}, },
@@ -307,6 +310,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "filterPattern", Name: "filterPattern",
@@ -315,6 +319,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `!**/node_modules/**, !**/.xmake/**, !**/*_test.go, !**/vendor/**/*.go, **/*.html, **/*.xml, **/*.go, **/*.py, **/*.js, **/*.scala, **/*.ts`,
}, },
{ {
Name: "fullScanCycle", Name: "fullScanCycle",
@@ -323,6 +328,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `5`,
}, },
{ {
Name: "fullScansScheduled", Name: "fullScansScheduled",
@@ -331,6 +337,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "generatePdfReport", Name: "generatePdfReport",
@@ -339,6 +346,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "incremental", Name: "incremental",
@@ -347,6 +355,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "maxRetries", Name: "maxRetries",
@@ -355,6 +364,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 3,
}, },
{ {
Name: "password", Name: "password",
@@ -375,6 +385,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "preset", Name: "preset",
@@ -383,6 +394,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_preset"),
}, },
{ {
Name: "projectName", Name: "projectName",
@@ -391,6 +403,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "checkmarxProject"}, {Name: "checkMarxProjectName"}}, Aliases: []config.Alias{{Name: "checkmarxProject"}, {Name: "checkMarxProjectName"}},
Default: os.Getenv("PIPER_projectName"),
}, },
{ {
Name: "pullRequestName", Name: "pullRequestName",
@@ -399,6 +412,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pullRequestName"),
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -407,6 +421,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "checkmarxServerUrl"}}, Aliases: []config.Alias{{Name: "checkmarxServerUrl"}},
Default: os.Getenv("PIPER_serverUrl"),
}, },
{ {
Name: "sourceEncoding", Name: "sourceEncoding",
@@ -415,6 +430,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `1`,
}, },
{ {
Name: "teamId", Name: "teamId",
@@ -423,6 +439,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "checkmarxGroupId"}, {Name: "groupId"}}, Aliases: []config.Alias{{Name: "checkmarxGroupId"}, {Name: "groupId"}},
Default: os.Getenv("PIPER_teamId"),
}, },
{ {
Name: "teamName", Name: "teamName",
@@ -431,6 +448,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_teamName"),
}, },
{ {
Name: "username", Name: "username",
@@ -451,6 +469,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "verifyOnly", Name: "verifyOnly",
@@ -459,6 +478,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "vulnerabilityThresholdEnabled", Name: "vulnerabilityThresholdEnabled",
@@ -467,6 +487,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "vulnerabilityThresholdHigh", Name: "vulnerabilityThresholdHigh",
@@ -475,6 +496,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 100,
}, },
{ {
Name: "vulnerabilityThresholdLow", Name: "vulnerabilityThresholdLow",
@@ -483,6 +505,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 10,
}, },
{ {
Name: "vulnerabilityThresholdMedium", Name: "vulnerabilityThresholdMedium",
@@ -491,6 +514,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 100,
}, },
{ {
Name: "vulnerabilityThresholdResult", Name: "vulnerabilityThresholdResult",
@@ -499,6 +523,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `FAILURE`,
}, },
{ {
Name: "vulnerabilityThresholdUnit", Name: "vulnerabilityThresholdUnit",
@@ -507,6 +532,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `percentage`,
}, },
}, },
}, },

View File

@@ -128,6 +128,9 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Cloud Foundry API.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -136,6 +139,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "username", Name: "username",
@@ -156,6 +160,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -176,6 +181,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -184,6 +190,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -192,6 +199,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -200,6 +208,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfServiceKeyName", Name: "cfServiceKeyName",
@@ -208,6 +217,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
Default: os.Getenv("PIPER_cfServiceKeyName"),
}, },
{ {
Name: "cfServiceKeyConfig", Name: "cfServiceKeyConfig",
@@ -216,6 +226,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKeyConfig"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceKeyConfig"}},
Default: os.Getenv("PIPER_cfServiceKeyConfig"),
}, },
}, },
}, },

View File

@@ -144,6 +144,9 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Cloud Foundry API.", Type: "jenkins", Aliases: []config.Alias{{Name: "cloudFoundry/credentialsId", Deprecated: false}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "deployDescriptor", Type: "stash"}, {Name: "deployDescriptor", Type: "stash"},
}, },
@@ -155,6 +158,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: `https://api.cf.eu10.hana.ondemand.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -175,6 +179,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -195,6 +200,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -203,6 +209,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -211,6 +218,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfService", Name: "cfService",
@@ -219,6 +227,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/service"}}, Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
Default: os.Getenv("PIPER_cfService"),
}, },
{ {
Name: "cfServicePlan", Name: "cfServicePlan",
@@ -227,6 +236,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}}, Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
Default: os.Getenv("PIPER_cfServicePlan"),
}, },
{ {
Name: "cfServiceInstanceName", Name: "cfServiceInstanceName",
@@ -235,6 +245,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstanceName"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstanceName"}},
Default: os.Getenv("PIPER_cfServiceInstanceName"),
}, },
{ {
Name: "cfServiceBroker", Name: "cfServiceBroker",
@@ -243,6 +254,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceBroker"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceBroker"}},
Default: os.Getenv("PIPER_cfServiceBroker"),
}, },
{ {
Name: "cfCreateServiceConfig", Name: "cfCreateServiceConfig",
@@ -251,6 +263,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/createServiceConfig"}}, Aliases: []config.Alias{{Name: "cloudFoundry/createServiceConfig"}},
Default: os.Getenv("PIPER_cfCreateServiceConfig"),
}, },
{ {
Name: "cfServiceTags", Name: "cfServiceTags",
@@ -259,6 +272,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceTags"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceTags"}},
Default: os.Getenv("PIPER_cfServiceTags"),
}, },
{ {
Name: "serviceManifest", Name: "serviceManifest",
@@ -267,6 +281,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
Default: `service-manifest.yml`,
}, },
{ {
Name: "manifestVariables", Name: "manifestVariables",
@@ -275,6 +290,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariables"}, {Name: "cfManifestVariables"}}, Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariables"}, {Name: "cfManifestVariables"}},
Default: []string{},
}, },
{ {
Name: "manifestVariablesFiles", Name: "manifestVariablesFiles",
@@ -283,6 +299,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariablesFiles"}, {Name: "cfManifestVariablesFiles"}}, Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariablesFiles"}, {Name: "cfManifestVariablesFiles"}},
Default: []string{},
}, },
}, },
}, },

View File

@@ -122,6 +122,9 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cloudFoundry/credentialsId", Deprecated: false}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "deployDescriptor", Type: "stash"}, {Name: "deployDescriptor", Type: "stash"},
}, },
@@ -133,6 +136,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: `https://api.cf.eu10.hana.ondemand.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -147,6 +151,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -161,6 +166,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -169,6 +175,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -177,6 +184,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
}, },
}, },

View File

@@ -125,6 +125,9 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Cloud Foundry API.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "cfApiEndpoint", Name: "cfApiEndpoint",
@@ -133,6 +136,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: os.Getenv("PIPER_cfApiEndpoint"),
}, },
{ {
Name: "username", Name: "username",
@@ -153,6 +157,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -173,6 +178,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -181,6 +187,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -189,6 +196,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
{ {
Name: "cfServiceInstance", Name: "cfServiceInstance",
@@ -197,6 +205,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}}, Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
Default: os.Getenv("PIPER_cfServiceInstance"),
}, },
{ {
Name: "cfDeleteServiceKeys", Name: "cfDeleteServiceKeys",
@@ -205,6 +214,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/cfDeleteServiceKeys"}}, Aliases: []config.Alias{{Name: "cloudFoundry/cfDeleteServiceKeys"}},
Default: false,
}, },
}, },
}, },

View File

@@ -122,6 +122,9 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins credentials ID containing user and password to authenticate to the Cloud Foundry API", Type: "jenkins", Aliases: []config.Alias{{Name: "cloudFoundry/credentialsId", Deprecated: false}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "deployDescriptor", Type: "stash"}, {Name: "deployDescriptor", Type: "stash"},
}, },
@@ -133,6 +136,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
Default: `https://api.cf.eu10.hana.ondemand.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -147,6 +151,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -161,6 +166,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "cfOrg", Name: "cfOrg",
@@ -169,6 +175,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_cfOrg"),
}, },
{ {
Name: "cfSpace", Name: "cfSpace",
@@ -177,6 +184,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_cfSpace"),
}, },
}, },
}, },

View File

@@ -219,6 +219,10 @@ func cloudFoundryDeployMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cfCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Cloud Foundry API.", Type: "jenkins", Aliases: []config.Alias{{Name: "cloudFoundry/credentialsId", Deprecated: false}}},
{Name: "dockerCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate to the Docker registry.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "apiEndpoint", Name: "apiEndpoint",
@@ -227,6 +231,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cfApiEndpoint"}, {Name: "cloudFoundry/apiEndpoint"}}, Aliases: []config.Alias{{Name: "cfApiEndpoint"}, {Name: "cloudFoundry/apiEndpoint"}},
Default: `https://api.cf.eu10.hana.ondemand.com`,
}, },
{ {
Name: "appName", Name: "appName",
@@ -235,6 +240,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cfAppName"}, {Name: "cloudFoundry/appName"}}, Aliases: []config.Alias{{Name: "cfAppName"}, {Name: "cloudFoundry/appName"}},
Default: os.Getenv("PIPER_appName"),
}, },
{ {
Name: "artifactVersion", Name: "artifactVersion",
@@ -248,6 +254,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_artifactVersion"),
}, },
{ {
Name: "cfHome", Name: "cfHome",
@@ -256,6 +263,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_cfHome"),
}, },
{ {
Name: "cfNativeDeployParameters", Name: "cfNativeDeployParameters",
@@ -264,6 +272,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_cfNativeDeployParameters"),
}, },
{ {
Name: "cfPluginHome", Name: "cfPluginHome",
@@ -272,6 +281,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_cfPluginHome"),
}, },
{ {
Name: "deployDockerImage", Name: "deployDockerImage",
@@ -280,6 +290,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_deployDockerImage"),
}, },
{ {
Name: "deployTool", Name: "deployTool",
@@ -288,6 +299,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_deployTool"),
}, },
{ {
Name: "buildTool", Name: "buildTool",
@@ -301,6 +313,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_buildTool"),
}, },
{ {
Name: "deployType", Name: "deployType",
@@ -309,6 +322,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `standard`,
}, },
{ {
Name: "dockerPassword", Name: "dockerPassword",
@@ -323,6 +337,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerPassword"),
}, },
{ {
Name: "dockerUsername", Name: "dockerUsername",
@@ -337,6 +352,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerUsername"),
}, },
{ {
Name: "keepOldInstance", Name: "keepOldInstance",
@@ -345,6 +361,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "loginParameters", Name: "loginParameters",
@@ -353,6 +370,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_loginParameters"),
}, },
{ {
Name: "manifest", Name: "manifest",
@@ -361,6 +379,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cfManifest"}, {Name: "cloudFoundry/manifest"}}, Aliases: []config.Alias{{Name: "cfManifest"}, {Name: "cloudFoundry/manifest"}},
Default: os.Getenv("PIPER_manifest"),
}, },
{ {
Name: "manifestVariables", Name: "manifestVariables",
@@ -369,6 +388,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cfManifestVariables"}, {Name: "cloudFoundry/manifestVariables"}}, Aliases: []config.Alias{{Name: "cfManifestVariables"}, {Name: "cloudFoundry/manifestVariables"}},
Default: []string{},
}, },
{ {
Name: "manifestVariablesFiles", Name: "manifestVariablesFiles",
@@ -377,6 +397,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cfManifestVariablesFiles"}, {Name: "cloudFoundry/manifestVariablesFiles"}}, Aliases: []config.Alias{{Name: "cfManifestVariablesFiles"}, {Name: "cloudFoundry/manifestVariablesFiles"}},
Default: []string{`manifest-variables.yml`},
}, },
{ {
Name: "mtaDeployParameters", Name: "mtaDeployParameters",
@@ -385,6 +406,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `-f`,
}, },
{ {
Name: "mtaExtensionDescriptor", Name: "mtaExtensionDescriptor",
@@ -393,6 +415,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "cloudFoundry/mtaExtensionDescriptor"}}, Aliases: []config.Alias{{Name: "cloudFoundry/mtaExtensionDescriptor"}},
Default: os.Getenv("PIPER_mtaExtensionDescriptor"),
}, },
{ {
Name: "mtaExtensionCredentials", Name: "mtaExtensionCredentials",
@@ -414,6 +437,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_mtaPath"),
}, },
{ {
Name: "org", Name: "org",
@@ -422,6 +446,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cfOrg"}, {Name: "cloudFoundry/org"}}, Aliases: []config.Alias{{Name: "cfOrg"}, {Name: "cloudFoundry/org"}},
Default: os.Getenv("PIPER_org"),
}, },
{ {
Name: "password", Name: "password",
@@ -442,6 +467,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "smokeTestScript", Name: "smokeTestScript",
@@ -450,6 +476,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `blueGreenCheckScript.sh`,
}, },
{ {
Name: "smokeTestStatusCode", Name: "smokeTestStatusCode",
@@ -458,6 +485,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 200,
}, },
{ {
Name: "space", Name: "space",
@@ -466,6 +494,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "cfSpace"}, {Name: "cloudFoundry/space"}}, Aliases: []config.Alias{{Name: "cfSpace"}, {Name: "cloudFoundry/space"}},
Default: os.Getenv("PIPER_space"),
}, },
{ {
Name: "username", Name: "username",
@@ -486,6 +515,7 @@ func cloudFoundryDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
}, },
}, },

View File

@@ -127,6 +127,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "testConfiguration", Name: "testConfiguration",
@@ -135,6 +136,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testConfiguration"),
}, },
{ {
Name: "testDriver", Name: "testDriver",
@@ -143,6 +145,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testDriver"),
}, },
{ {
Name: "testImage", Name: "testImage",
@@ -151,6 +154,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testImage"),
}, },
{ {
Name: "testReportFilePath", Name: "testReportFilePath",
@@ -159,6 +163,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `cst-report.json`,
}, },
}, },
}, },

View File

@@ -128,6 +128,7 @@ func containerSaveImageMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}}, Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
Default: os.Getenv("PIPER_containerRegistryUrl"),
}, },
{ {
Name: "containerImage", Name: "containerImage",
@@ -141,6 +142,7 @@ func containerSaveImageMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "dockerImage"}, {Name: "scanImage"}}, Aliases: []config.Alias{{Name: "dockerImage"}, {Name: "scanImage"}},
Default: os.Getenv("PIPER_containerImage"),
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -149,6 +151,7 @@ func containerSaveImageMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
{ {
Name: "includeLayers", Name: "includeLayers",
@@ -157,6 +160,7 @@ func containerSaveImageMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -157,6 +157,9 @@ func detectExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "detectTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing the API token used to authenticate with the Synopsis Detect (formerly BlackDuck) Server.", Type: "jenkins", Aliases: []config.Alias{{Name: "apiTokenCredentialsId", Deprecated: false}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
{Name: "checkmarx", Type: "stash"}, {Name: "checkmarx", Type: "stash"},
@@ -180,6 +183,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "blackduckToken"}, {Name: "detectToken"}, {Name: "apiToken"}, {Name: "detect/apiToken"}}, Aliases: []config.Alias{{Name: "blackduckToken"}, {Name: "detectToken"}, {Name: "apiToken"}, {Name: "detect/apiToken"}},
Default: os.Getenv("PIPER_token"),
}, },
{ {
Name: "codeLocation", Name: "codeLocation",
@@ -188,6 +192,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_codeLocation"),
}, },
{ {
Name: "projectName", Name: "projectName",
@@ -196,6 +201,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "detect/projectName"}}, Aliases: []config.Alias{{Name: "detect/projectName"}},
Default: os.Getenv("PIPER_projectName"),
}, },
{ {
Name: "scanners", Name: "scanners",
@@ -204,6 +210,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/scanners"}}, Aliases: []config.Alias{{Name: "detect/scanners"}},
Default: []string{`signature`},
}, },
{ {
Name: "scanPaths", Name: "scanPaths",
@@ -212,6 +219,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/scanPaths"}}, Aliases: []config.Alias{{Name: "detect/scanPaths"}},
Default: []string{`.`},
}, },
{ {
Name: "dependencyPath", Name: "dependencyPath",
@@ -220,6 +228,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/dependencyPath"}}, Aliases: []config.Alias{{Name: "detect/dependencyPath"}},
Default: `.`,
}, },
{ {
Name: "unmap", Name: "unmap",
@@ -228,6 +237,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/unmap"}}, Aliases: []config.Alias{{Name: "detect/unmap"}},
Default: false,
}, },
{ {
Name: "scanProperties", Name: "scanProperties",
@@ -236,6 +246,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/scanProperties"}}, Aliases: []config.Alias{{Name: "detect/scanProperties"}},
Default: []string{`--blackduck.signature.scanner.memory=4096`, `--detect.timeout=6000`, `--blackduck.trust.cert=true`, `--logging.level.com.synopsys.integration=DEBUG`, `--detect.maven.excluded.scopes=test`},
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -244,6 +255,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "detect/serverUrl"}}, Aliases: []config.Alias{{Name: "detect/serverUrl"}},
Default: os.Getenv("PIPER_serverUrl"),
}, },
{ {
Name: "groups", Name: "groups",
@@ -252,6 +264,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/groups"}}, Aliases: []config.Alias{{Name: "detect/groups"}},
Default: []string{},
}, },
{ {
Name: "failOn", Name: "failOn",
@@ -260,6 +273,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/failOn"}}, Aliases: []config.Alias{{Name: "detect/failOn"}},
Default: []string{`BLOCKER`},
}, },
{ {
Name: "versioningModel", Name: "versioningModel",
@@ -268,6 +282,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `major`,
}, },
{ {
Name: "version", Name: "version",
@@ -281,6 +296,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "projectVersion"}, {Name: "detect/projectVersion"}}, Aliases: []config.Alias{{Name: "projectVersion"}, {Name: "detect/projectVersion"}},
Default: os.Getenv("PIPER_version"),
}, },
{ {
Name: "customScanVersion", Name: "customScanVersion",
@@ -289,6 +305,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customScanVersion"),
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -297,6 +314,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -305,6 +323,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -313,6 +332,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -321,6 +341,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "includedPackageManagers", Name: "includedPackageManagers",
@@ -329,6 +350,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/includedPackageManagers"}}, Aliases: []config.Alias{{Name: "detect/includedPackageManagers"}},
Default: []string{},
}, },
{ {
Name: "excludedPackageManagers", Name: "excludedPackageManagers",
@@ -337,6 +359,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/excludedPackageManagers"}}, Aliases: []config.Alias{{Name: "detect/excludedPackageManagers"}},
Default: []string{},
}, },
{ {
Name: "mavenExcludedScopes", Name: "mavenExcludedScopes",
@@ -345,6 +368,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/mavenExcludedScopes"}}, Aliases: []config.Alias{{Name: "detect/mavenExcludedScopes"}},
Default: []string{},
}, },
{ {
Name: "detectTools", Name: "detectTools",
@@ -353,6 +377,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "detect/detectTools"}}, Aliases: []config.Alias{{Name: "detect/detectTools"}},
Default: []string{},
}, },
{ {
Name: "scanOnChanges", Name: "scanOnChanges",
@@ -361,6 +386,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "customEnvironmentVariables", Name: "customEnvironmentVariables",
@@ -369,6 +395,7 @@ func detectExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -287,6 +287,10 @@ func fortifyExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "fortifyCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to Fortify SSC.", Type: "jenkins"},
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "commonPipelineEnvironment"}, {Name: "commonPipelineEnvironment"},
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
@@ -302,6 +306,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "authToken", Name: "authToken",
@@ -321,6 +326,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_authToken"),
}, },
{ {
Name: "customScanVersion", Name: "customScanVersion",
@@ -329,6 +335,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customScanVersion"),
}, },
{ {
Name: "githubToken", Name: "githubToken",
@@ -348,6 +355,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "access_token"}}, Aliases: []config.Alias{{Name: "access_token"}},
Default: os.Getenv("PIPER_githubToken"),
}, },
{ {
Name: "autoCreate", Name: "autoCreate",
@@ -356,6 +364,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "modulePath", Name: "modulePath",
@@ -364,6 +373,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./`,
}, },
{ {
Name: "pythonRequirementsFile", Name: "pythonRequirementsFile",
@@ -372,6 +382,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pythonRequirementsFile"),
}, },
{ {
Name: "autodetectClasspath", Name: "autodetectClasspath",
@@ -380,6 +391,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "mustAuditIssueGroups", Name: "mustAuditIssueGroups",
@@ -388,6 +400,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `Corporate Security Requirements, Audit All`,
}, },
{ {
Name: "spotAuditIssueGroups", Name: "spotAuditIssueGroups",
@@ -396,6 +409,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `Spot Checks of Each Category`,
}, },
{ {
Name: "pythonRequirementsInstallSuffix", Name: "pythonRequirementsInstallSuffix",
@@ -404,6 +418,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pythonRequirementsInstallSuffix"),
}, },
{ {
Name: "pythonVersion", Name: "pythonVersion",
@@ -412,6 +427,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `python3`,
}, },
{ {
Name: "uploadResults", Name: "uploadResults",
@@ -420,6 +436,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "version", Name: "version",
@@ -433,6 +450,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyProjectVersion"}}, Aliases: []config.Alias{{Name: "fortifyProjectVersion"}},
Default: os.Getenv("PIPER_version"),
}, },
{ {
Name: "buildDescriptorFile", Name: "buildDescriptorFile",
@@ -441,6 +459,8 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./pom.xml`,
Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "maven"}}}},
}, },
{ {
Name: "buildDescriptorFile", Name: "buildDescriptorFile",
@@ -449,6 +469,8 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./setup.py`,
Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "pip"}}}},
}, },
{ {
Name: "commitId", Name: "commitId",
@@ -462,6 +484,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commitId"),
}, },
{ {
Name: "commitMessage", Name: "commitMessage",
@@ -475,6 +498,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commitMessage"),
}, },
{ {
Name: "githubApiUrl", Name: "githubApiUrl",
@@ -483,6 +507,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://api.github.com`,
}, },
{ {
Name: "owner", Name: "owner",
@@ -496,6 +521,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -509,6 +535,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "memory", Name: "memory",
@@ -517,6 +544,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `-Xmx4G -Xms512M`,
}, },
{ {
Name: "updateRulePack", Name: "updateRulePack",
@@ -525,6 +553,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "reportDownloadEndpoint", Name: "reportDownloadEndpoint",
@@ -533,6 +562,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyReportDownloadEndpoint"}}, Aliases: []config.Alias{{Name: "fortifyReportDownloadEndpoint"}},
Default: `/transfer/reportDownload.html`,
}, },
{ {
Name: "pollingMinutes", Name: "pollingMinutes",
@@ -541,6 +571,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 30,
}, },
{ {
Name: "quickScan", Name: "quickScan",
@@ -549,6 +580,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "translate", Name: "translate",
@@ -557,6 +589,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_translate"),
}, },
{ {
Name: "src", Name: "src",
@@ -565,6 +598,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "exclude", Name: "exclude",
@@ -573,6 +607,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "apiEndpoint", Name: "apiEndpoint",
@@ -581,6 +616,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyApiEndpoint"}}, Aliases: []config.Alias{{Name: "fortifyApiEndpoint"}},
Default: `/api/v1`,
}, },
{ {
Name: "reportType", Name: "reportType",
@@ -589,6 +625,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `PDF`,
}, },
{ {
Name: "pythonAdditionalPath", Name: "pythonAdditionalPath",
@@ -597,6 +634,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`./lib`, `.`},
}, },
{ {
Name: "artifactUrl", Name: "artifactUrl",
@@ -605,6 +643,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_artifactUrl"),
}, },
{ {
Name: "considerSuspicious", Name: "considerSuspicious",
@@ -613,6 +652,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "fprUploadEndpoint", Name: "fprUploadEndpoint",
@@ -621,6 +661,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyFprUploadEndpoint"}}, Aliases: []config.Alias{{Name: "fortifyFprUploadEndpoint"}},
Default: `/upload/resultFileUpload.html`,
}, },
{ {
Name: "projectName", Name: "projectName",
@@ -629,6 +670,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyProjectName"}}, Aliases: []config.Alias{{Name: "fortifyProjectName"}},
Default: `{{list .GroupID .ArtifactID | join "-" | trimAll "-"}}`,
}, },
{ {
Name: "reporting", Name: "reporting",
@@ -637,6 +679,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -645,6 +688,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "fortifyServerUrl"}, {Name: "sscUrl"}}, Aliases: []config.Alias{{Name: "fortifyServerUrl"}, {Name: "sscUrl"}},
Default: os.Getenv("PIPER_serverUrl"),
}, },
{ {
Name: "pullRequestMessageRegexGroup", Name: "pullRequestMessageRegexGroup",
@@ -653,6 +697,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 1,
}, },
{ {
Name: "deltaMinutes", Name: "deltaMinutes",
@@ -661,6 +706,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 5,
}, },
{ {
Name: "spotCheckMinimum", Name: "spotCheckMinimum",
@@ -669,6 +715,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 1,
}, },
{ {
Name: "fprDownloadEndpoint", Name: "fprDownloadEndpoint",
@@ -677,6 +724,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "fortifyFprDownloadEndpoint"}}, Aliases: []config.Alias{{Name: "fortifyFprDownloadEndpoint"}},
Default: `/download/currentStateFprDownload.html`,
}, },
{ {
Name: "versioningModel", Name: "versioningModel",
@@ -685,6 +733,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "defaultVersioningModel"}}, Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
Default: `major`,
}, },
{ {
Name: "pythonInstallCommand", Name: "pythonInstallCommand",
@@ -693,6 +742,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `{{.Pip}} install --user .`,
}, },
{ {
Name: "reportTemplateId", Name: "reportTemplateId",
@@ -701,6 +751,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 18,
}, },
{ {
Name: "filterSetTitle", Name: "filterSetTitle",
@@ -709,6 +760,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `SAP`,
}, },
{ {
Name: "pullRequestName", Name: "pullRequestName",
@@ -717,6 +769,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pullRequestName"),
}, },
{ {
Name: "pullRequestMessageRegex", Name: "pullRequestMessageRegex",
@@ -725,6 +778,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `.*Merge pull request #(\\d+) from.*`,
}, },
{ {
Name: "buildTool", Name: "buildTool",
@@ -733,6 +787,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `maven`,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -741,6 +796,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -749,6 +805,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -757,6 +814,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "verifyOnly", Name: "verifyOnly",
@@ -765,6 +823,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -773,6 +832,7 @@ func fortifyExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -159,6 +159,9 @@ func gaugeExecuteTestsMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "seleniumHubCredentialsId", Description: "Defines the id of the user/password credentials to be used to connect to a Selenium Hub. The credentials are provided in the environment variables `PIPER_SELENIUM_HUB_USER` and `PIPER_SELENIUM_HUB_PASSWORD`.", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
{Name: "tests", Type: "stash"}, {Name: "tests", Type: "stash"},
@@ -171,6 +174,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_installCommand"),
}, },
{ {
Name: "languageRunner", Name: "languageRunner",
@@ -179,6 +183,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_languageRunner"),
}, },
{ {
Name: "runCommand", Name: "runCommand",
@@ -187,6 +192,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_runCommand"),
}, },
{ {
Name: "testOptions", Name: "testOptions",
@@ -195,6 +201,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testOptions"),
}, },
}, },
}, },

View File

@@ -120,6 +120,9 @@ func gctsCloneRepositoryMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the ABAP system on which you want to clone the repository", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -134,6 +137,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -148,6 +152,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -156,6 +161,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "host", Name: "host",
@@ -164,6 +170,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "client", Name: "client",
@@ -172,6 +179,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_client"),
}, },
}, },
}, },

View File

@@ -128,6 +128,9 @@ func gctsCreateRepositoryMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the ABAP system on which you want to create the repository", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -142,6 +145,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -156,6 +160,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -164,6 +169,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "host", Name: "host",
@@ -172,6 +178,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "client", Name: "client",
@@ -180,6 +187,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_client"),
}, },
{ {
Name: "remoteRepositoryURL", Name: "remoteRepositoryURL",
@@ -188,6 +196,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_remoteRepositoryURL"),
}, },
{ {
Name: "role", Name: "role",
@@ -196,6 +205,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_role"),
}, },
{ {
Name: "vSID", Name: "vSID",
@@ -204,6 +214,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_vSID"),
}, },
{ {
Name: "type", Name: "type",
@@ -212,6 +223,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `GIT`,
}, },
}, },
}, },

View File

@@ -139,6 +139,9 @@ func gctsDeployMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the ABAP system on which you want to deploy a commit", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -153,6 +156,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -167,6 +171,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -175,6 +180,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "host", Name: "host",
@@ -183,6 +189,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "client", Name: "client",
@@ -191,6 +198,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_client"),
}, },
{ {
Name: "commit", Name: "commit",
@@ -199,6 +207,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commit"),
}, },
{ {
Name: "remoteRepositoryURL", Name: "remoteRepositoryURL",
@@ -207,6 +216,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_remoteRepositoryURL"),
}, },
{ {
Name: "role", Name: "role",
@@ -215,6 +225,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_role"),
}, },
{ {
Name: "vSID", Name: "vSID",
@@ -223,6 +234,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_vSID"),
}, },
{ {
Name: "type", Name: "type",
@@ -231,6 +243,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `GIT`,
}, },
{ {
Name: "branch", Name: "branch",
@@ -239,6 +252,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_branch"),
}, },
{ {
Name: "scope", Name: "scope",
@@ -247,6 +261,7 @@ func gctsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_scope"),
}, },
{ {
Name: "rollback", Name: "rollback",
@@ -255,6 +270,7 @@ func gctsDeployMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "configuration", Name: "configuration",

View File

@@ -120,6 +120,9 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the ABAP system on which you want to perform the unit tests", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -134,6 +137,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -148,6 +152,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -156,6 +161,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "host", Name: "host",
@@ -164,6 +170,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "client", Name: "client",
@@ -172,6 +179,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_client"),
}, },
}, },
}, },

View File

@@ -127,6 +127,10 @@ func gctsRollbackMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "abapCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the ABAP system on which you want to perform the rollback", Type: "jenkins"},
{Name: "githubPersonalAccessTokenId", Description: "GitHub personal access token with at least read permissions for the remote repository", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -141,6 +145,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -155,6 +160,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -163,6 +169,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "host", Name: "host",
@@ -171,6 +178,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "client", Name: "client",
@@ -179,6 +187,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_client"),
}, },
{ {
Name: "commit", Name: "commit",
@@ -187,6 +196,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commit"),
}, },
{ {
Name: "githubPersonalAccessToken", Name: "githubPersonalAccessToken",
@@ -200,6 +210,7 @@ func gctsRollbackMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_githubPersonalAccessToken"),
}, },
}, },
}, },

View File

@@ -57,15 +57,9 @@ func generateConfig() error {
var myConfig config.Config var myConfig config.Config
var stepConfig config.StepConfig var stepConfig config.StepConfig
var metadata config.StepData metadata, err := resolveMetadata()
metadataFile, err := configOptions.openFile(configOptions.stepMetadata)
if err != nil { if err != nil {
return errors.Wrap(err, "metadata: open failed") return errors.Wrapf(err, "failed to resolve metadata")
}
err = metadata.ReadPipelineStepData(metadataFile)
if err != nil {
return errors.Wrap(err, "metadata: read failed")
} }
// prepare output resource directories: // prepare output resource directories:
@@ -133,10 +127,9 @@ func addConfigFlags(cmd *cobra.Command) {
cmd.Flags().StringVar(&configOptions.parametersJSON, "parametersJSON", os.Getenv("PIPER_parametersJSON"), "Parameters to be considered in JSON format") cmd.Flags().StringVar(&configOptions.parametersJSON, "parametersJSON", os.Getenv("PIPER_parametersJSON"), "Parameters to be considered in JSON format")
cmd.Flags().StringVar(&configOptions.stepMetadata, "stepMetadata", "", "Step metadata, passed as path to yaml") cmd.Flags().StringVar(&configOptions.stepMetadata, "stepMetadata", "", "Step metadata, passed as path to yaml")
cmd.Flags().StringVar(&configOptions.stepName, "stepName", "", "Step name, used to get step metadata if yaml path is not set")
cmd.Flags().BoolVar(&configOptions.contextConfig, "contextConfig", false, "Defines if step context configuration should be loaded instead of step config") cmd.Flags().BoolVar(&configOptions.contextConfig, "contextConfig", false, "Defines if step context configuration should be loaded instead of step config")
_ = cmd.MarkFlagRequired("stepMetadata")
} }
func defaultsAndFilters(metadata *config.StepData, stepName string) ([]io.ReadCloser, config.StepFilters, error) { func defaultsAndFilters(metadata *config.StepData, stepName string) ([]io.ReadCloser, config.StepFilters, error) {
@@ -196,3 +189,30 @@ func prepareOutputEnvironment(outputResources []config.StepResources, envRootPat
} }
} }
} }
func resolveMetadata() (config.StepData, error) {
var metadata config.StepData
if configOptions.stepMetadata != "" {
metadataFile, err := configOptions.openFile(configOptions.stepMetadata)
if err != nil {
return metadata, errors.Wrap(err, "open failed")
}
err = metadata.ReadPipelineStepData(metadataFile)
if err != nil {
return metadata, errors.Wrap(err, "read failed")
}
} else {
if configOptions.stepName != "" {
metadataMap := GetAllStepMetadata()
var ok bool
metadata, ok = metadataMap[configOptions.stepName]
if !ok {
return metadata, errors.Errorf("could not retrieve by stepName %v", configOptions.stepName)
}
} else {
return metadata, errors.Errorf("either one of stepMetadata or stepName parameter has to be passed")
}
}
return metadata, nil
}

View File

@@ -45,18 +45,19 @@ func TestConfigCommand(t *testing.T) {
}) })
t.Run("Required flags", func(t *testing.T) { t.Run("Required flags", func(t *testing.T) {
exp := []string{"stepMetadata"} exp := []string{}
assert.Equal(t, exp, gotReq, "required flags incorrect") assert.Equal(t, exp, gotReq, "required flags incorrect")
}) })
t.Run("Optional flags", func(t *testing.T) { t.Run("Optional flags", func(t *testing.T) {
exp := []string{"contextConfig", "output", "parametersJSON"} exp := []string{"contextConfig", "output", "parametersJSON", "stepMetadata", "stepName"}
assert.Equal(t, exp, gotOpt, "optional flags incorrect") assert.Equal(t, exp, gotOpt, "optional flags incorrect")
}) })
t.Run("Run", func(t *testing.T) { t.Run("Run", func(t *testing.T) {
t.Run("Success case", func(t *testing.T) { t.Run("Success case", func(t *testing.T) {
configOptions.openFile = configOpenFileMock configOptions.openFile = configOpenFileMock
configOptions.stepName = "githubCreateIssue"
cmd.Run(cmd, []string{}) cmd.Run(cmd, []string{})
}) })
}) })
@@ -310,3 +311,25 @@ func TestPrepareOutputEnvironment(t *testing.T) {
assert.NoDirExists(t, filepath.Join(dir, "influx", "measurement0", "influx0_0")) assert.NoDirExists(t, filepath.Join(dir, "influx", "measurement0", "influx0_0"))
assert.NoDirExists(t, filepath.Join(dir, "influx", "measurement1", "influx0_1")) assert.NoDirExists(t, filepath.Join(dir, "influx", "measurement1", "influx0_1"))
} }
func TestResolveMetadata(t *testing.T) {
t.Run("Succes - stepName", func(t *testing.T) {
configOptions.stepName = "githubCreateIssue"
stepData, err := resolveMetadata()
assert.NoError(t, err)
assert.Equal(t, "githubCreateIssue", stepData.Metadata.Name)
})
t.Run("Error - wrong stepName", func(t *testing.T) {
configOptions.stepName = "notExisting"
_, err := resolveMetadata()
assert.EqualError(t, err, "could not retrieve by stepName notExisting")
})
t.Run("Error - missing input", func(t *testing.T) {
configOptions.stepName = ""
_, err := resolveMetadata()
assert.EqualError(t, err, "either one of stepMetadata or stepName parameter has to be passed")
})
}

View File

@@ -127,6 +127,9 @@ func githubCheckBranchProtectionMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -135,6 +138,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "branch", Name: "branch",
@@ -143,6 +147,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `master`,
}, },
{ {
Name: "owner", Name: "owner",
@@ -156,6 +161,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -169,6 +175,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "requiredChecks", Name: "requiredChecks",
@@ -177,6 +184,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "requireEnforceAdmins", Name: "requireEnforceAdmins",
@@ -185,6 +193,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "requiredApprovingReviewCount", Name: "requiredApprovingReviewCount",
@@ -193,6 +202,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 0,
}, },
{ {
Name: "token", Name: "token",
@@ -212,6 +222,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
}, },
}, },

View File

@@ -125,6 +125,9 @@ func githubCommentIssueMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -133,6 +136,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "body", Name: "body",
@@ -141,6 +145,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_body"),
}, },
{ {
Name: "number", Name: "number",
@@ -149,6 +154,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 0,
}, },
{ {
Name: "owner", Name: "owner",
@@ -162,6 +168,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -175,6 +182,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "token", Name: "token",
@@ -194,6 +202,7 @@ func githubCommentIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
}, },
}, },

View File

@@ -125,6 +125,9 @@ func githubCreateIssueMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -133,6 +136,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "body", Name: "body",
@@ -141,6 +145,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_body"),
}, },
{ {
Name: "bodyFilePath", Name: "bodyFilePath",
@@ -149,6 +154,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_bodyFilePath"),
}, },
{ {
Name: "owner", Name: "owner",
@@ -162,6 +168,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -175,6 +182,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "title", Name: "title",
@@ -183,6 +191,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_title"),
}, },
{ {
Name: "token", Name: "token",
@@ -202,6 +211,7 @@ func githubCreateIssueMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
}, },
}, },

View File

@@ -137,6 +137,9 @@ func githubCreatePullRequestMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "assignees", Name: "assignees",
@@ -145,6 +148,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "base", Name: "base",
@@ -153,6 +157,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_base"),
}, },
{ {
Name: "body", Name: "body",
@@ -161,6 +166,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_body"),
}, },
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -169,6 +175,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "head", Name: "head",
@@ -177,6 +184,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_head"),
}, },
{ {
Name: "owner", Name: "owner",
@@ -190,6 +198,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -203,6 +212,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -211,6 +221,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubServerUrl"}}, Aliases: []config.Alias{{Name: "githubServerUrl"}},
Default: `https://github.com`,
}, },
{ {
Name: "title", Name: "title",
@@ -219,6 +230,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_title"),
}, },
{ {
Name: "token", Name: "token",
@@ -238,6 +250,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
{ {
Name: "labels", Name: "labels",
@@ -246,6 +259,7 @@ func githubCreatePullRequestMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -150,6 +150,9 @@ func githubPublishReleaseMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "addClosedIssues", Name: "addClosedIssues",
@@ -158,6 +161,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "addDeltaToLastRelease", Name: "addDeltaToLastRelease",
@@ -166,6 +170,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -174,6 +179,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "assetPath", Name: "assetPath",
@@ -182,6 +188,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_assetPath"),
}, },
{ {
Name: "commitish", Name: "commitish",
@@ -190,6 +197,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `master`,
}, },
{ {
Name: "excludeLabels", Name: "excludeLabels",
@@ -198,6 +206,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "labels", Name: "labels",
@@ -206,6 +215,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "owner", Name: "owner",
@@ -219,6 +229,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "preRelease", Name: "preRelease",
@@ -227,6 +238,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "releaseBodyHeader", Name: "releaseBodyHeader",
@@ -235,6 +247,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_releaseBodyHeader"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -248,6 +261,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -256,6 +270,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubServerUrl"}}, Aliases: []config.Alias{{Name: "githubServerUrl"}},
Default: `https://github.com`,
}, },
{ {
Name: "token", Name: "token",
@@ -275,6 +290,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
{ {
Name: "uploadUrl", Name: "uploadUrl",
@@ -283,6 +299,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubUploadUrl"}}, Aliases: []config.Alias{{Name: "githubUploadUrl"}},
Default: `https://uploads.github.com`,
}, },
{ {
Name: "version", Name: "version",
@@ -296,6 +313,7 @@ func githubPublishReleaseMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_version"),
}, },
}, },
}, },

View File

@@ -138,6 +138,9 @@ func githubSetCommitStatusMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to GitHub.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -146,6 +149,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubApiUrl"}}, Aliases: []config.Alias{{Name: "githubApiUrl"}},
Default: `https://api.github.com`,
}, },
{ {
Name: "commitId", Name: "commitId",
@@ -159,6 +163,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commitId"),
}, },
{ {
Name: "context", Name: "context",
@@ -167,6 +172,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_context"),
}, },
{ {
Name: "description", Name: "description",
@@ -175,6 +181,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_description"),
}, },
{ {
Name: "owner", Name: "owner",
@@ -188,6 +195,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -201,6 +209,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "status", Name: "status",
@@ -209,6 +218,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_status"),
}, },
{ {
Name: "targetUrl", Name: "targetUrl",
@@ -217,6 +227,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_targetUrl"),
}, },
{ {
Name: "token", Name: "token",
@@ -236,6 +247,7 @@ func githubSetCommitStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}}, Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
Default: os.Getenv("PIPER_token"),
}, },
}, },
}, },

View File

@@ -145,6 +145,9 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "gitHttpsCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing username/password for http access to your git repository.", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "deployDescriptor", Type: "stash"}, {Name: "deployDescriptor", Type: "stash"},
}, },
@@ -156,6 +159,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `master`,
}, },
{ {
Name: "commitMessage", Name: "commitMessage",
@@ -164,6 +168,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_commitMessage"),
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -172,6 +177,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "githubServerUrl"}}, Aliases: []config.Alias{{Name: "githubServerUrl"}},
Default: `https://github.com`,
}, },
{ {
Name: "username", Name: "username",
@@ -186,6 +192,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -200,6 +207,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -208,6 +216,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
{ {
Name: "containerName", Name: "containerName",
@@ -216,6 +225,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_containerName"),
}, },
{ {
Name: "containerRegistryUrl", Name: "containerRegistryUrl",
@@ -229,6 +239,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}}, Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
Default: os.Getenv("PIPER_containerRegistryUrl"),
}, },
{ {
Name: "containerImageNameTag", Name: "containerImageNameTag",
@@ -242,6 +253,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "image"}, {Name: "containerImage"}}, Aliases: []config.Alias{{Name: "image"}, {Name: "containerImage"}},
Default: os.Getenv("PIPER_containerImageNameTag"),
}, },
{ {
Name: "chartPath", Name: "chartPath",
@@ -250,6 +262,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmChartPath"}}, Aliases: []config.Alias{{Name: "helmChartPath"}},
Default: os.Getenv("PIPER_chartPath"),
}, },
{ {
Name: "helmValues", Name: "helmValues",
@@ -258,6 +271,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "deploymentName", Name: "deploymentName",
@@ -266,6 +280,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmDeploymentName"}}, Aliases: []config.Alias{{Name: "helmDeploymentName"}},
Default: os.Getenv("PIPER_deploymentName"),
}, },
{ {
Name: "tool", Name: "tool",
@@ -274,6 +289,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `kubectl`,
}, },
}, },
}, },

View File

@@ -118,6 +118,9 @@ func hadolintExecuteMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "configurationCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing username/password for access to your remote configuration file.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "configurationUrl", Name: "configurationUrl",
@@ -126,6 +129,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_configurationUrl"),
}, },
{ {
Name: "configurationUsername", Name: "configurationUsername",
@@ -140,6 +144,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_configurationUsername"),
}, },
{ {
Name: "configurationPassword", Name: "configurationPassword",
@@ -154,6 +159,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_configurationPassword"),
}, },
{ {
Name: "dockerFile", Name: "dockerFile",
@@ -162,6 +168,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "dockerfile"}}, Aliases: []config.Alias{{Name: "dockerfile"}},
Default: `./Dockerfile`,
}, },
{ {
Name: "configurationFile", Name: "configurationFile",
@@ -170,6 +177,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `.hadolint.yaml`,
}, },
{ {
Name: "reportFile", Name: "reportFile",
@@ -178,6 +186,7 @@ func hadolintExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `hadolint.xml`,
}, },
}, },
}, },

View File

@@ -125,6 +125,9 @@ func integrationArtifactDeployMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -139,6 +142,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -153,6 +157,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -161,6 +166,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "integrationFlowVersion", Name: "integrationFlowVersion",
@@ -169,6 +175,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowVersion"),
}, },
{ {
Name: "platform", Name: "platform",
@@ -177,6 +184,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_platform"),
}, },
{ {
Name: "host", Name: "host",
@@ -185,6 +193,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -193,6 +202,7 @@ func integrationArtifactDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
}, },
}, },

View File

@@ -126,6 +126,9 @@ func integrationArtifactDownloadMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -140,6 +143,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -154,6 +158,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -162,6 +167,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "integrationFlowVersion", Name: "integrationFlowVersion",
@@ -170,6 +176,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowVersion"),
}, },
{ {
Name: "host", Name: "host",
@@ -178,6 +185,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -186,6 +194,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
{ {
Name: "downloadPath", Name: "downloadPath",
@@ -194,6 +203,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_downloadPath"),
}, },
}, },
}, },

View File

@@ -154,6 +154,9 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -168,6 +171,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -182,6 +186,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -190,6 +195,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "platform", Name: "platform",
@@ -198,6 +204,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_platform"),
}, },
{ {
Name: "host", Name: "host",
@@ -206,6 +213,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -214,6 +222,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
}, },
}, },

View File

@@ -154,6 +154,9 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -168,6 +171,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -182,6 +186,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -190,6 +195,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "platform", Name: "platform",
@@ -198,6 +204,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_platform"),
}, },
{ {
Name: "host", Name: "host",
@@ -206,6 +213,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -214,6 +222,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
}, },
}, },

View File

@@ -131,6 +131,9 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -145,6 +148,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -159,6 +163,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -167,6 +172,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "integrationFlowVersion", Name: "integrationFlowVersion",
@@ -175,6 +181,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowVersion"),
}, },
{ {
Name: "platform", Name: "platform",
@@ -183,6 +190,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_platform"),
}, },
{ {
Name: "host", Name: "host",
@@ -191,6 +199,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -199,6 +208,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
{ {
Name: "parameterKey", Name: "parameterKey",
@@ -207,6 +217,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_parameterKey"),
}, },
{ {
Name: "parameterValue", Name: "parameterValue",
@@ -215,6 +226,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_parameterValue"),
}, },
}, },
}, },

View File

@@ -132,6 +132,9 @@ func integrationArtifactUploadMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "cpiCredentialsId", Description: "Jenkins credentials ID containing username and password for authentication to the SAP Cloud Platform Integration API's", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "username", Name: "username",
@@ -146,6 +149,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -160,6 +164,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "integrationFlowId", Name: "integrationFlowId",
@@ -168,6 +173,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowId"),
}, },
{ {
Name: "integrationFlowVersion", Name: "integrationFlowVersion",
@@ -176,6 +182,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowVersion"),
}, },
{ {
Name: "integrationFlowName", Name: "integrationFlowName",
@@ -184,6 +191,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_integrationFlowName"),
}, },
{ {
Name: "packageId", Name: "packageId",
@@ -192,6 +200,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_packageId"),
}, },
{ {
Name: "host", Name: "host",
@@ -200,6 +209,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "oAuthTokenProviderUrl", Name: "oAuthTokenProviderUrl",
@@ -208,6 +218,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -216,6 +227,7 @@ func integrationArtifactUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
}, },
}, },

View File

@@ -121,6 +121,7 @@ func jsonApplyPatchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_input"),
}, },
{ {
Name: "patch", Name: "patch",
@@ -129,6 +130,7 @@ func jsonApplyPatchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_patch"),
}, },
{ {
Name: "output", Name: "output",
@@ -137,6 +139,7 @@ func jsonApplyPatchMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_output"),
}, },
}, },
}, },

View File

@@ -158,6 +158,9 @@ func kanikoExecuteMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "dockerConfigJsonCredentialsId", Description: "Jenkins 'Secret file' credentials ID containing Docker config.json (with registry credential(s)). You can create it like explained in the Docker Success Center in the article about [how to generate a new auth in the config.json file](https://success.docker.com/article/generate-new-auth-in-config-json-file).", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "buildOptions", Name: "buildOptions",
@@ -166,6 +169,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`--skip-tls-verify-pull`},
}, },
{ {
Name: "containerBuildOptions", Name: "containerBuildOptions",
@@ -174,6 +178,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_containerBuildOptions"),
}, },
{ {
Name: "containerImage", Name: "containerImage",
@@ -182,6 +187,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "containerImageNameAndTag"}}, Aliases: []config.Alias{{Name: "containerImageNameAndTag"}},
Default: os.Getenv("PIPER_containerImage"),
}, },
{ {
Name: "containerImageName", Name: "containerImageName",
@@ -190,6 +196,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "dockerImageName"}}, Aliases: []config.Alias{{Name: "dockerImageName"}},
Default: os.Getenv("PIPER_containerImageName"),
}, },
{ {
Name: "containerImageTag", Name: "containerImageTag",
@@ -203,6 +210,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "artifactVersion"}}, Aliases: []config.Alias{{Name: "artifactVersion"}},
Default: os.Getenv("PIPER_containerImageTag"),
}, },
{ {
Name: "containerPreparationCommand", Name: "containerPreparationCommand",
@@ -211,6 +219,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `rm -f /kaniko/.docker/config.json`,
}, },
{ {
Name: "containerRegistryUrl", Name: "containerRegistryUrl",
@@ -224,6 +233,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}}, Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
Default: os.Getenv("PIPER_containerRegistryUrl"),
}, },
{ {
Name: "customTlsCertificateLinks", Name: "customTlsCertificateLinks",
@@ -232,6 +242,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "dockerConfigJSON", Name: "dockerConfigJSON",
@@ -256,6 +267,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerConfigJSON"),
}, },
{ {
Name: "dockerfilePath", Name: "dockerfilePath",
@@ -264,6 +276,7 @@ func kanikoExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "dockerfile"}}, Aliases: []config.Alias{{Name: "dockerfile"}},
Default: `Dockerfile`,
}, },
}, },
}, },

View File

@@ -122,6 +122,9 @@ func karmaExecuteTestsMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "seleniumHubCredentialsId", Description: "Defines the id of the user/password credentials to be used to connect to a Selenium Hub. The credentials are provided in the environment variables `PIPER_SELENIUM_HUB_USER` and `PIPER_SELENIUM_HUB_PASSWORD`.", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
{Name: "tests", Type: "stash"}, {Name: "tests", Type: "stash"},
@@ -134,6 +137,7 @@ func karmaExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `npm install --quiet`,
}, },
{ {
Name: "modules", Name: "modules",
@@ -142,6 +146,7 @@ func karmaExecuteTestsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`.`},
}, },
{ {
Name: "runCommand", Name: "runCommand",
@@ -150,6 +155,7 @@ func karmaExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `npm run karma`,
}, },
}, },
}, },

View File

@@ -174,6 +174,12 @@ func kubernetesDeployMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "kubeConfigFileCredentialsId", Description: "Jenkins 'Secret file' credentials ID containing kubeconfig file. Details can be found in the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/).", Type: "jenkins", Aliases: []config.Alias{{Name: "kubeCredentialsId", Deprecated: true}}},
{Name: "kubeTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing token to authenticate to Kubernetes. This is an alternative way to using a kubeconfig file. Details can be found in the [Kubernetes documentation](https://kubernetes.io/docs/reference/access-authn-authz/authentication/).", Type: "jenkins", Aliases: []config.Alias{{Name: "k8sTokenCredentialsId", Deprecated: true}}},
{Name: "dockerCredentialsId", Type: "jenkins"},
{Name: "dockerConfigJsonCredentialsId", Description: "Jenkins 'Secret file' credentials ID containing Docker config.json (with registry credential(s)).", Type: "jenkins"},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "deployDescriptor", Type: "stash"}, {Name: "deployDescriptor", Type: "stash"},
}, },
@@ -185,6 +191,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmDeploymentParameters"}}, Aliases: []config.Alias{{Name: "helmDeploymentParameters"}},
Default: []string{},
}, },
{ {
Name: "apiServer", Name: "apiServer",
@@ -193,6 +200,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "k8sAPIServer"}}, Aliases: []config.Alias{{Name: "k8sAPIServer"}},
Default: os.Getenv("PIPER_apiServer"),
}, },
{ {
Name: "appTemplate", Name: "appTemplate",
@@ -201,6 +209,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "k8sAppTemplate"}}, Aliases: []config.Alias{{Name: "k8sAppTemplate"}},
Default: os.Getenv("PIPER_appTemplate"),
}, },
{ {
Name: "chartPath", Name: "chartPath",
@@ -209,6 +218,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmChartPath"}}, Aliases: []config.Alias{{Name: "helmChartPath"}},
Default: os.Getenv("PIPER_chartPath"),
}, },
{ {
Name: "containerRegistryPassword", Name: "containerRegistryPassword",
@@ -223,6 +233,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_containerRegistryPassword"),
}, },
{ {
Name: "containerRegistryUrl", Name: "containerRegistryUrl",
@@ -236,6 +247,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}}, Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
Default: os.Getenv("PIPER_containerRegistryUrl"),
}, },
{ {
Name: "containerRegistryUser", Name: "containerRegistryUser",
@@ -250,6 +262,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_containerRegistryUser"),
}, },
{ {
Name: "containerRegistrySecret", Name: "containerRegistrySecret",
@@ -258,6 +271,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `regsecret`,
}, },
{ {
Name: "createDockerRegistrySecret", Name: "createDockerRegistrySecret",
@@ -266,6 +280,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "deploymentName", Name: "deploymentName",
@@ -274,6 +289,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmDeploymentName"}}, Aliases: []config.Alias{{Name: "helmDeploymentName"}},
Default: os.Getenv("PIPER_deploymentName"),
}, },
{ {
Name: "deployTool", Name: "deployTool",
@@ -282,6 +298,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `kubectl`,
}, },
{ {
Name: "forceUpdates", Name: "forceUpdates",
@@ -290,6 +307,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "helmDeployWaitSeconds", Name: "helmDeployWaitSeconds",
@@ -298,6 +316,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 300,
}, },
{ {
Name: "helmValues", Name: "helmValues",
@@ -306,6 +325,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "image", Name: "image",
@@ -319,6 +339,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "deployImage"}}, Aliases: []config.Alias{{Name: "deployImage"}},
Default: os.Getenv("PIPER_image"),
}, },
{ {
Name: "ingressHosts", Name: "ingressHosts",
@@ -327,6 +348,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "keepFailedDeployments", Name: "keepFailedDeployments",
@@ -335,6 +357,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "kubeConfig", Name: "kubeConfig",
@@ -354,6 +377,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_kubeConfig"),
}, },
{ {
Name: "kubeContext", Name: "kubeContext",
@@ -362,6 +386,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_kubeContext"),
}, },
{ {
Name: "kubeToken", Name: "kubeToken",
@@ -375,6 +400,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_kubeToken"),
}, },
{ {
Name: "namespace", Name: "namespace",
@@ -383,6 +409,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmDeploymentNamespace"}, {Name: "k8sDeploymentNamespace"}}, Aliases: []config.Alias{{Name: "helmDeploymentNamespace"}, {Name: "k8sDeploymentNamespace"}},
Default: `default`,
}, },
{ {
Name: "tillerNamespace", Name: "tillerNamespace",
@@ -391,6 +418,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "helmTillerNamespace"}}, Aliases: []config.Alias{{Name: "helmTillerNamespace"}},
Default: os.Getenv("PIPER_tillerNamespace"),
}, },
{ {
Name: "dockerConfigJSON", Name: "dockerConfigJSON",
@@ -415,6 +443,7 @@ func kubernetesDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerConfigJSON"),
}, },
}, },
}, },

View File

@@ -119,6 +119,9 @@ func malwareExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "malwareScanCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing the technical user/password credential used to communicate with the malwarescanning service.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "host", Name: "host",
@@ -127,6 +130,7 @@ func malwareExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_host"),
}, },
{ {
Name: "username", Name: "username",
@@ -141,6 +145,7 @@ func malwareExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -155,6 +160,7 @@ func malwareExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "file", Name: "file",
@@ -163,6 +169,7 @@ func malwareExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_file"),
}, },
{ {
Name: "timeout", Name: "timeout",
@@ -171,6 +178,7 @@ func malwareExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `600`,
}, },
}, },
}, },

View File

@@ -134,6 +134,9 @@ func mavenBuildMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "altDeploymentRepositoryPasswordId", Description: "Jenkins credentials ID containing the artifact deployment repository password.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "pomPath", Name: "pomPath",
@@ -142,6 +145,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `pom.xml`,
}, },
{ {
Name: "flatten", Name: "flatten",
@@ -150,6 +154,7 @@ func mavenBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "verify", Name: "verify",
@@ -158,6 +163,7 @@ func mavenBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -166,6 +172,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -179,6 +186,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -187,6 +195,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "logSuccessfulMavenTransfers", Name: "logSuccessfulMavenTransfers",
@@ -195,6 +204,7 @@ func mavenBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}}, Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
Default: false,
}, },
{ {
Name: "createBOM", Name: "createBOM",
@@ -203,6 +213,7 @@ func mavenBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/createBOM"}}, Aliases: []config.Alias{{Name: "maven/createBOM"}},
Default: false,
}, },
{ {
Name: "altDeploymentRepositoryPassword", Name: "altDeploymentRepositoryPassword",
@@ -227,6 +238,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_altDeploymentRepositoryPassword"),
}, },
{ {
Name: "altDeploymentRepositoryUser", Name: "altDeploymentRepositoryUser",
@@ -240,6 +252,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_altDeploymentRepositoryUser"),
}, },
{ {
Name: "altDeploymentRepositoryUrl", Name: "altDeploymentRepositoryUrl",
@@ -253,6 +266,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_altDeploymentRepositoryUrl"),
}, },
{ {
Name: "altDeploymentRepositoryID", Name: "altDeploymentRepositoryID",
@@ -266,6 +280,7 @@ func mavenBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_altDeploymentRepositoryID"),
}, },
{ {
Name: "customTlsCertificateLinks", Name: "customTlsCertificateLinks",
@@ -274,6 +289,7 @@ func mavenBuildMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "publish", Name: "publish",
@@ -282,6 +298,7 @@ func mavenBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/publish"}}, Aliases: []config.Alias{{Name: "maven/publish"}},
Default: false,
}, },
}, },
}, },

View File

@@ -126,6 +126,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 1,
}, },
{ {
Name: "forkCount", Name: "forkCount",
@@ -134,6 +135,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `1C`,
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -142,6 +144,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -150,6 +153,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -158,6 +162,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -166,6 +171,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "logSuccessfulMavenTransfers", Name: "logSuccessfulMavenTransfers",
@@ -174,6 +180,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}}, Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
Default: false,
}, },
}, },
}, },

View File

@@ -144,6 +144,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "pmd", Name: "pmd",
@@ -152,6 +153,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "mavenModulesExcludes", Name: "mavenModulesExcludes",
@@ -160,6 +162,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "spotBugsExcludeFilterFile", Name: "spotBugsExcludeFilterFile",
@@ -168,6 +171,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "spotBugs/excludeFilterFile"}}, Aliases: []config.Alias{{Name: "spotBugs/excludeFilterFile"}},
Default: os.Getenv("PIPER_spotBugsExcludeFilterFile"),
}, },
{ {
Name: "spotBugsIncludeFilterFile", Name: "spotBugsIncludeFilterFile",
@@ -176,6 +180,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "spotBugs/includeFilterFile"}}, Aliases: []config.Alias{{Name: "spotBugs/includeFilterFile"}},
Default: os.Getenv("PIPER_spotBugsIncludeFilterFile"),
}, },
{ {
Name: "spotBugsMaxAllowedViolations", Name: "spotBugsMaxAllowedViolations",
@@ -184,6 +189,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "spotBugs/maxAllowedViolations"}}, Aliases: []config.Alias{{Name: "spotBugs/maxAllowedViolations"}},
Default: 0,
}, },
{ {
Name: "pmdFailurePriority", Name: "pmdFailurePriority",
@@ -192,6 +198,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "pmd/failurePriority"}}, Aliases: []config.Alias{{Name: "pmd/failurePriority"}},
Default: 0,
}, },
{ {
Name: "pmdMaxAllowedViolations", Name: "pmdMaxAllowedViolations",
@@ -200,6 +207,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "pmd/maxAllowedViolations"}}, Aliases: []config.Alias{{Name: "pmd/maxAllowedViolations"}},
Default: 0,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -208,6 +216,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -216,6 +225,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -224,6 +234,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "logSuccessfulMavenTransfers", Name: "logSuccessfulMavenTransfers",
@@ -232,6 +243,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}}, Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
Default: false,
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -240,6 +252,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -130,6 +130,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pomPath"),
}, },
{ {
Name: "goals", Name: "goals",
@@ -138,6 +139,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "defines", Name: "defines",
@@ -146,6 +148,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "flags", Name: "flags",
@@ -154,6 +157,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "returnStdout", Name: "returnStdout",
@@ -162,6 +166,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -170,6 +175,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -178,6 +184,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -186,6 +193,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "logSuccessfulMavenTransfers", Name: "logSuccessfulMavenTransfers",
@@ -194,6 +202,7 @@ func mavenExecuteMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}}, Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
Default: false,
}, },
}, },
}, },

View File

@@ -163,6 +163,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_mtarName"),
}, },
{ {
Name: "extensions", Name: "extensions",
@@ -171,6 +172,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "extension"}}, Aliases: []config.Alias{{Name: "extension"}},
Default: os.Getenv("PIPER_extensions"),
}, },
{ {
Name: "platform", Name: "platform",
@@ -179,6 +181,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `CF`,
}, },
{ {
Name: "applicationName", Name: "applicationName",
@@ -187,6 +190,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationName"),
}, },
{ {
Name: "source", Name: "source",
@@ -195,6 +199,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./`,
}, },
{ {
Name: "target", Name: "target",
@@ -203,6 +208,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./`,
}, },
{ {
Name: "defaultNpmRegistry", Name: "defaultNpmRegistry",
@@ -211,6 +217,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}}, Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
Default: os.Getenv("PIPER_defaultNpmRegistry"),
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -219,6 +226,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -227,6 +235,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -235,6 +244,7 @@ func mtaBuildMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -243,6 +253,7 @@ func mtaBuildMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -167,6 +167,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `**/*.postman_collection.json`,
}, },
{ {
Name: "newmanRunCommand", Name: "newmanRunCommand",
@@ -175,6 +176,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_newmanRunCommand"),
}, },
{ {
Name: "runOptions", Name: "runOptions",
@@ -183,6 +185,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`run`, `{{.NewmanCollection}}`, `--reporters`, `cli,junit,html`, `--reporter-junit-export`, `target/newman/TEST-{{.CollectionDisplayName}}.xml`, `--reporter-html-export`, `target/newman/TEST-{{.CollectionDisplayName}}.html`},
}, },
{ {
Name: "newmanInstallCommand", Name: "newmanInstallCommand",
@@ -191,6 +194,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `npm install newman newman-reporter-html --global --quiet`,
}, },
{ {
Name: "newmanEnvironment", Name: "newmanEnvironment",
@@ -199,6 +203,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_newmanEnvironment"),
}, },
{ {
Name: "newmanGlobals", Name: "newmanGlobals",
@@ -207,6 +212,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_newmanGlobals"),
}, },
{ {
Name: "failOnError", Name: "failOnError",
@@ -215,6 +221,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "cfAppsWithSecrets", Name: "cfAppsWithSecrets",
@@ -223,6 +230,7 @@ func newmanExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -147,6 +147,9 @@ func nexusUploadMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "nexusCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing the technical username/password credential for accessing the nexus endpoint.", Type: "jenkins", Aliases: []config.Alias{{Name: "nexus/credentialsId", Deprecated: false}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
{Name: "buildResult", Type: "stash"}, {Name: "buildResult", Type: "stash"},
@@ -159,6 +162,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "nexus/version"}}, Aliases: []config.Alias{{Name: "nexus/version"}},
Default: `nexus3`,
}, },
{ {
Name: "format", Name: "format",
@@ -172,6 +176,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_format"),
}, },
{ {
Name: "url", Name: "url",
@@ -185,6 +190,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "nexus/url"}}, Aliases: []config.Alias{{Name: "nexus/url"}},
Default: os.Getenv("PIPER_url"),
}, },
{ {
Name: "mavenRepository", Name: "mavenRepository",
@@ -193,6 +199,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "nexus/mavenRepository"}, {Name: "nexus/repository"}}, Aliases: []config.Alias{{Name: "nexus/mavenRepository"}, {Name: "nexus/repository"}},
Default: os.Getenv("PIPER_mavenRepository"),
}, },
{ {
Name: "npmRepository", Name: "npmRepository",
@@ -201,6 +208,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "nexus/npmRepository"}}, Aliases: []config.Alias{{Name: "nexus/npmRepository"}},
Default: os.Getenv("PIPER_npmRepository"),
}, },
{ {
Name: "groupId", Name: "groupId",
@@ -209,6 +217,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "nexus/groupId"}}, Aliases: []config.Alias{{Name: "nexus/groupId"}},
Default: os.Getenv("PIPER_groupId"),
}, },
{ {
Name: "artifactId", Name: "artifactId",
@@ -217,6 +226,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_artifactId"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -225,6 +235,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -233,6 +244,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "username", Name: "username",
@@ -252,6 +264,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -271,6 +284,7 @@ func nexusUploadMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
}, },
}, },

View File

@@ -116,6 +116,7 @@ func npmExecuteLintMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "defaultNpmRegistry", Name: "defaultNpmRegistry",
@@ -124,6 +125,7 @@ func npmExecuteLintMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}}, Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
Default: os.Getenv("PIPER_defaultNpmRegistry"),
}, },
}, },
}, },

View File

@@ -130,6 +130,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "runScripts", Name: "runScripts",
@@ -138,6 +139,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "defaultNpmRegistry", Name: "defaultNpmRegistry",
@@ -146,6 +148,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}}, Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
Default: os.Getenv("PIPER_defaultNpmRegistry"),
}, },
{ {
Name: "virtualFrameBuffer", Name: "virtualFrameBuffer",
@@ -154,6 +157,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "scriptOptions", Name: "scriptOptions",
@@ -162,6 +166,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "buildDescriptorExcludeList", Name: "buildDescriptorExcludeList",
@@ -170,6 +175,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`deployment/**`},
}, },
{ {
Name: "buildDescriptorList", Name: "buildDescriptorList",
@@ -178,6 +184,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "createBOM", Name: "createBOM",
@@ -186,6 +193,7 @@ func npmExecuteScriptsMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
}, },
}, },

View File

@@ -119,6 +119,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "outputFilePath", Name: "outputFilePath",
@@ -127,6 +128,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `scanSummary.md`,
}, },
{ {
Name: "pipelineLink", Name: "pipelineLink",
@@ -135,6 +137,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pipelineLink"),
}, },
}, },
}, },

View File

@@ -204,6 +204,10 @@ func protecodeExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "protecodeCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing username and password to authenticate to the Protecode system.", Type: "jenkins"},
{Name: "dockerConfigJsonCredentialsId", Description: "Jenkins 'Secret file' credentials ID containing Docker config.json (with registry credential(s)). You can create it like explained in the Docker Success Center in the article about [how to generate a new auth in the config.json file](https://success.docker.com/article/generate-new-auth-in-config-json-file).", Type: "jenkins", Aliases: []config.Alias{{Name: "dockerCredentialsId", Deprecated: true}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "excludeCVEs", Name: "excludeCVEs",
@@ -212,6 +216,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "protecodeExcludeCVEs"}}, Aliases: []config.Alias{{Name: "protecodeExcludeCVEs"}},
Default: ``,
}, },
{ {
Name: "failOnSevereVulnerabilities", Name: "failOnSevereVulnerabilities",
@@ -220,6 +225,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "protecodeFailOnSevereVulnerabilities"}}, Aliases: []config.Alias{{Name: "protecodeFailOnSevereVulnerabilities"}},
Default: true,
}, },
{ {
Name: "scanImage", Name: "scanImage",
@@ -233,6 +239,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "dockerImage"}}, Aliases: []config.Alias{{Name: "dockerImage"}},
Default: os.Getenv("PIPER_scanImage"),
}, },
{ {
Name: "dockerRegistryUrl", Name: "dockerRegistryUrl",
@@ -246,6 +253,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerRegistryUrl"),
}, },
{ {
Name: "dockerConfigJSON", Name: "dockerConfigJSON",
@@ -265,6 +273,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_dockerConfigJSON"),
}, },
{ {
Name: "cleanupMode", Name: "cleanupMode",
@@ -273,6 +282,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `binary`,
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -281,6 +291,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
{ {
Name: "includeLayers", Name: "includeLayers",
@@ -289,6 +300,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "timeoutMinutes", Name: "timeoutMinutes",
@@ -297,6 +309,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "protecodeTimeoutMinutes"}}, Aliases: []config.Alias{{Name: "protecodeTimeoutMinutes"}},
Default: `60`,
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -305,6 +318,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "protecodeServerUrl"}}, Aliases: []config.Alias{{Name: "protecodeServerUrl"}},
Default: os.Getenv("PIPER_serverUrl"),
}, },
{ {
Name: "reportFileName", Name: "reportFileName",
@@ -313,6 +327,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `protecode_report.pdf`,
}, },
{ {
Name: "fetchUrl", Name: "fetchUrl",
@@ -321,6 +336,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_fetchUrl"),
}, },
{ {
Name: "group", Name: "group",
@@ -329,6 +345,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "protecodeGroup"}}, Aliases: []config.Alias{{Name: "protecodeGroup"}},
Default: os.Getenv("PIPER_group"),
}, },
{ {
Name: "verifyOnly", Name: "verifyOnly",
@@ -337,6 +354,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "reuseExisting"}}, Aliases: []config.Alias{{Name: "reuseExisting"}},
Default: false,
}, },
{ {
Name: "username", Name: "username",
@@ -357,6 +375,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "user"}}, Aliases: []config.Alias{{Name: "user"}},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -377,6 +396,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "version", Name: "version",
@@ -390,6 +410,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "artifactVersion"}}, Aliases: []config.Alias{{Name: "artifactVersion"}},
Default: os.Getenv("PIPER_version"),
}, },
{ {
Name: "pullRequestName", Name: "pullRequestName",
@@ -398,6 +419,7 @@ func protecodeExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_pullRequestName"),
}, },
}, },
}, },

View File

@@ -212,6 +212,10 @@ func sonarExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "sonarTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing the token used to authenticate with the Sonar Server.", Type: "jenkins"},
{Name: "githubTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing the token used to authenticate with the Github Server.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "instance", Name: "instance",
@@ -220,6 +224,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `SonarCloud`,
}, },
{ {
Name: "serverUrl", Name: "serverUrl",
@@ -228,6 +233,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "host"}, {Name: "sonarServerUrl"}}, Aliases: []config.Alias{{Name: "host"}, {Name: "sonarServerUrl"}},
Default: os.Getenv("PIPER_serverUrl"),
}, },
{ {
Name: "token", Name: "token",
@@ -247,6 +253,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "sonarToken"}}, Aliases: []config.Alias{{Name: "sonarToken"}},
Default: os.Getenv("PIPER_token"),
}, },
{ {
Name: "organization", Name: "organization",
@@ -255,6 +262,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_organization"),
}, },
{ {
Name: "customTlsCertificateLinks", Name: "customTlsCertificateLinks",
@@ -263,6 +271,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "sonarScannerDownloadUrl", Name: "sonarScannerDownloadUrl",
@@ -271,6 +280,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip`,
}, },
{ {
Name: "versioningModel", Name: "versioningModel",
@@ -279,6 +289,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `major`,
}, },
{ {
Name: "version", Name: "version",
@@ -292,6 +303,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "projectVersion"}}, Aliases: []config.Alias{{Name: "projectVersion"}},
Default: os.Getenv("PIPER_version"),
}, },
{ {
Name: "customScanVersion", Name: "customScanVersion",
@@ -300,6 +312,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customScanVersion"),
}, },
{ {
Name: "projectKey", Name: "projectKey",
@@ -308,6 +321,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_projectKey"),
}, },
{ {
Name: "coverageExclusions", Name: "coverageExclusions",
@@ -316,6 +330,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "inferJavaBinaries", Name: "inferJavaBinaries",
@@ -324,6 +339,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "inferJavaLibraries", Name: "inferJavaLibraries",
@@ -332,6 +348,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "options", Name: "options",
@@ -340,6 +357,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "sonarProperties"}}, Aliases: []config.Alias{{Name: "sonarProperties"}},
Default: []string{},
}, },
{ {
Name: "branchName", Name: "branchName",
@@ -348,6 +366,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_branchName"),
}, },
{ {
Name: "inferBranchName", Name: "inferBranchName",
@@ -356,6 +375,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "changeId", Name: "changeId",
@@ -364,6 +384,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_changeId"),
}, },
{ {
Name: "changeBranch", Name: "changeBranch",
@@ -372,6 +393,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_changeBranch"),
}, },
{ {
Name: "changeTarget", Name: "changeTarget",
@@ -380,6 +402,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_changeTarget"),
}, },
{ {
Name: "pullRequestProvider", Name: "pullRequestProvider",
@@ -388,6 +411,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `GitHub`,
}, },
{ {
Name: "owner", Name: "owner",
@@ -401,6 +425,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "githubOrg"}}, Aliases: []config.Alias{{Name: "githubOrg"}},
Default: os.Getenv("PIPER_owner"),
}, },
{ {
Name: "repository", Name: "repository",
@@ -414,6 +439,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "githubRepo"}}, Aliases: []config.Alias{{Name: "githubRepo"}},
Default: os.Getenv("PIPER_repository"),
}, },
{ {
Name: "githubToken", Name: "githubToken",
@@ -433,6 +459,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "access_token"}}, Aliases: []config.Alias{{Name: "access_token"}},
Default: os.Getenv("PIPER_githubToken"),
}, },
{ {
Name: "disableInlineComments", Name: "disableInlineComments",
@@ -441,6 +468,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "legacyPRHandling", Name: "legacyPRHandling",
@@ -449,6 +477,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "githubApiUrl", Name: "githubApiUrl",
@@ -457,6 +486,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://api.github.com`,
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -465,6 +495,7 @@ func sonarExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
}, },
}, },

View File

@@ -117,6 +117,7 @@ func terraformExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `plan`,
}, },
{ {
Name: "terraformSecrets", Name: "terraformSecrets",
@@ -131,6 +132,7 @@ func terraformExecuteMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_terraformSecrets"),
}, },
{ {
Name: "additionalArgs", Name: "additionalArgs",
@@ -139,6 +141,7 @@ func terraformExecuteMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
}, },
}, },

View File

@@ -150,6 +150,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/git/from"}}, Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
Default: `origin/master`,
}, },
{ {
Name: "gitTo", Name: "gitTo",
@@ -158,6 +159,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/git/to"}}, Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
Default: `HEAD`,
}, },
{ {
Name: "changeDocumentLabel", Name: "changeDocumentLabel",
@@ -166,6 +168,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/changeDocumentLabel"}}, Aliases: []config.Alias{{Name: "changeManagement/changeDocumentLabel"}},
Default: `ChangeDocument`,
}, },
}, },
}, },

View File

@@ -150,6 +150,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/git/from"}}, Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
Default: `origin/master`,
}, },
{ {
Name: "gitTo", Name: "gitTo",
@@ -158,6 +159,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/git/to"}}, Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
Default: `HEAD`,
}, },
{ {
Name: "transportRequestLabel", Name: "transportRequestLabel",
@@ -166,6 +168,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/transportRequestLabel"}}, Aliases: []config.Alias{{Name: "changeManagement/transportRequestLabel"}},
Default: `TransportRequest`,
}, },
}, },
}, },

View File

@@ -134,6 +134,9 @@ func transportRequestUploadCTSMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "uploadCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate against the ABAP backend.", Type: "jenkins", Aliases: []config.Alias{{Name: "changeManagement/credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "description", Name: "description",
@@ -142,6 +145,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `Deployed with Piper based on SAP Fiori tools`,
}, },
{ {
Name: "endpoint", Name: "endpoint",
@@ -150,6 +154,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}}, Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
Default: os.Getenv("PIPER_endpoint"),
}, },
{ {
Name: "client", Name: "client",
@@ -158,6 +163,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/client"}}, Aliases: []config.Alias{{Name: "changeManagement/client"}},
Default: os.Getenv("PIPER_client"),
}, },
{ {
Name: "username", Name: "username",
@@ -166,6 +172,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -174,6 +181,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "applicationName", Name: "applicationName",
@@ -182,6 +190,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationName"),
}, },
{ {
Name: "abapPackage", Name: "abapPackage",
@@ -190,6 +199,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_abapPackage"),
}, },
{ {
Name: "osDeployUser", Name: "osDeployUser",
@@ -198,6 +208,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/cts/osDeployUser"}}, Aliases: []config.Alias{{Name: "changeManagement/cts/osDeployUser"}},
Default: `node`,
}, },
{ {
Name: "deployConfigFile", Name: "deployConfigFile",
@@ -206,6 +217,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/cts/deployConfigFile"}, {Name: "cts/deployConfigFile"}}, Aliases: []config.Alias{{Name: "changeManagement/cts/deployConfigFile"}, {Name: "cts/deployConfigFile"}},
Default: `ui5-deploy.yaml`,
}, },
{ {
Name: "transportRequestId", Name: "transportRequestId",
@@ -214,6 +226,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_transportRequestId"),
}, },
{ {
Name: "deployToolDependencies", Name: "deployToolDependencies",
@@ -222,6 +235,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}}, Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
Default: []string{},
}, },
{ {
Name: "npmInstallOpts", Name: "npmInstallOpts",
@@ -230,6 +244,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}}, Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
Default: []string{},
}, },
}, },
}, },

View File

@@ -139,6 +139,9 @@ func transportRequestUploadRFCMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "uploadCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate against the ABAP backend.", Type: "jenkins", Aliases: []config.Alias{{Name: "changeManagement/credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "endpoint", Name: "endpoint",
@@ -147,6 +150,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}}, Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
Default: os.Getenv("PIPER_endpoint"),
}, },
{ {
Name: "client", Name: "client",
@@ -155,6 +159,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentClient"}}, Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentClient"}},
Default: os.Getenv("PIPER_client"),
}, },
{ {
Name: "instance", Name: "instance",
@@ -163,6 +168,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentInstance"}}, Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentInstance"}},
Default: os.Getenv("PIPER_instance"),
}, },
{ {
Name: "username", Name: "username",
@@ -171,6 +177,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -179,6 +186,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "applicationName", Name: "applicationName",
@@ -187,6 +195,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationName"),
}, },
{ {
Name: "applicationDescription", Name: "applicationDescription",
@@ -195,6 +204,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationDescription"),
}, },
{ {
Name: "abapPackage", Name: "abapPackage",
@@ -203,6 +213,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_abapPackage"),
}, },
{ {
Name: "applicationUrl", Name: "applicationUrl",
@@ -211,6 +222,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationUrl"),
}, },
{ {
Name: "abapPackage", Name: "abapPackage",
@@ -219,6 +231,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_abapPackage"),
}, },
{ {
Name: "codePage", Name: "codePage",
@@ -227,6 +240,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `UTF-8`,
}, },
{ {
Name: "acceptUnixStyleLineEndings", Name: "acceptUnixStyleLineEndings",
@@ -235,6 +249,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "failUploadOnWarning", Name: "failUploadOnWarning",
@@ -243,6 +258,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "failOnWarning"}}, Aliases: []config.Alias{{Name: "failOnWarning"}},
Default: true,
}, },
{ {
Name: "transportRequestId", Name: "transportRequestId",
@@ -251,6 +267,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_transportRequestId"),
}, },
}, },
}, },

View File

@@ -165,6 +165,9 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "uploadCredentialsId", Description: "Jenkins 'Username with password' credentials ID containing user and password to authenticate against the ABAP backend", Type: "jenkins", Aliases: []config.Alias{{Name: "changeManagement/credentialsId", Deprecated: false}}},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "endpoint", Name: "endpoint",
@@ -173,6 +176,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}}, Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
Default: os.Getenv("PIPER_endpoint"),
}, },
{ {
Name: "username", Name: "username",
@@ -187,6 +191,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -201,6 +206,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "applicationId", Name: "applicationId",
@@ -209,6 +215,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_applicationId"),
}, },
{ {
Name: "changeDocumentId", Name: "changeDocumentId",
@@ -222,6 +229,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_changeDocumentId"),
}, },
{ {
Name: "transportRequestId", Name: "transportRequestId",
@@ -235,6 +243,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_transportRequestId"),
}, },
{ {
Name: "filePath", Name: "filePath",
@@ -248,6 +257,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_filePath"),
}, },
{ {
Name: "cmClientOpts", Name: "cmClientOpts",
@@ -256,6 +266,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "clientOpts"}, {Name: "changeManagement/clientOpts"}}, Aliases: []config.Alias{{Name: "clientOpts"}, {Name: "changeManagement/clientOpts"}},
Default: []string{},
}, },
}, },
}, },

View File

@@ -128,6 +128,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `npm install @ui5/uiveri5 --global --quiet`,
}, },
{ {
Name: "runCommand", Name: "runCommand",
@@ -136,6 +137,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `/home/node/.npm-global/bin/uiveri5`,
}, },
{ {
Name: "runOptions", Name: "runOptions",
@@ -144,6 +146,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`--seleniumAddress=http://localhost:4444/wd/hub`},
}, },
{ {
Name: "testOptions", Name: "testOptions",
@@ -152,6 +155,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testOptions"),
}, },
{ {
Name: "testServerUrl", Name: "testServerUrl",
@@ -160,6 +164,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_testServerUrl"),
}, },
}, },
}, },

View File

@@ -134,6 +134,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `jenkins`,
}, },
{ {
Name: "jenkinsUrl", Name: "jenkinsUrl",
@@ -148,6 +149,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "url"}}, Aliases: []config.Alias{{Name: "url"}},
Default: os.Getenv("PIPER_jenkinsUrl"),
}, },
{ {
Name: "jenkinsCredentialDomain", Name: "jenkinsCredentialDomain",
@@ -156,6 +158,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `_`,
}, },
{ {
Name: "jenkinsUsername", Name: "jenkinsUsername",
@@ -170,6 +173,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "userId"}}, Aliases: []config.Alias{{Name: "userId"}},
Default: os.Getenv("PIPER_jenkinsUsername"),
}, },
{ {
Name: "jenkinsToken", Name: "jenkinsToken",
@@ -184,6 +188,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "token"}}, Aliases: []config.Alias{{Name: "token"}},
Default: os.Getenv("PIPER_jenkinsToken"),
}, },
{ {
Name: "vaultAppRoleSecretTokenCredentialsId", Name: "vaultAppRoleSecretTokenCredentialsId",
@@ -192,6 +197,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_vaultAppRoleSecretTokenCredentialsId"),
}, },
{ {
Name: "vaultServerUrl", Name: "vaultServerUrl",
@@ -200,6 +206,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_vaultServerUrl"),
}, },
{ {
Name: "vaultNamespace", Name: "vaultNamespace",
@@ -208,6 +215,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_vaultNamespace"),
}, },
{ {
Name: "daysBeforeExpiry", Name: "daysBeforeExpiry",
@@ -216,6 +224,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 15,
}, },
}, },
}, },

View File

@@ -280,6 +280,10 @@ func whitesourceExecuteScanMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "userTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing Whitesource user token.", Type: "jenkins", Aliases: []config.Alias{{Name: "whitesourceUserTokenCredentialsId", Deprecated: false}, {Name: "whitesource/userTokenCredentialsId", Deprecated: true}}},
{Name: "orgAdminUserTokenCredentialsId", Description: "Jenkins 'Secret text' credentials ID containing Whitesource org admin token.", Type: "jenkins", Aliases: []config.Alias{{Name: "whitesourceOrgAdminUserTokenCredentialsId", Deprecated: false}, {Name: "whitesource/orgAdminUserTokenCredentialsId", Deprecated: true}}},
},
Resources: []config.StepResources{ Resources: []config.StepResources{
{Name: "buildDescriptor", Type: "stash"}, {Name: "buildDescriptor", Type: "stash"},
{Name: "opensourceConfiguration", Type: "stash"}, {Name: "opensourceConfiguration", Type: "stash"},
@@ -293,6 +297,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar`,
}, },
{ {
Name: "agentFileName", Name: "agentFileName",
@@ -301,6 +306,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `wss-unified-agent.jar`,
}, },
{ {
Name: "agentParameters", Name: "agentParameters",
@@ -309,6 +315,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "agentUrl", Name: "agentUrl",
@@ -317,6 +324,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `https://saas.whitesourcesoftware.com/agent`,
}, },
{ {
Name: "aggregateVersionWideReport", Name: "aggregateVersionWideReport",
@@ -325,6 +333,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "buildDescriptorExcludeList", Name: "buildDescriptorExcludeList",
@@ -333,6 +342,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{`unit-tests/pom.xml`, `integration-tests/pom.xml`},
}, },
{ {
Name: "buildDescriptorFile", Name: "buildDescriptorFile",
@@ -341,6 +351,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_buildDescriptorFile"),
}, },
{ {
Name: "buildTool", Name: "buildTool",
@@ -354,6 +365,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_buildTool"),
}, },
{ {
Name: "configFilePath", Name: "configFilePath",
@@ -362,6 +374,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `./wss-unified-agent.config`,
}, },
{ {
Name: "createProductFromPipeline", Name: "createProductFromPipeline",
@@ -370,6 +383,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "customScanVersion", Name: "customScanVersion",
@@ -378,6 +392,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_customScanVersion"),
}, },
{ {
Name: "cvssSeverityLimit", Name: "cvssSeverityLimit",
@@ -386,6 +401,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `-1`,
}, },
{ {
Name: "scanPath", Name: "scanPath",
@@ -394,6 +410,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `.`,
}, },
{ {
Name: "emailAddressesOfInitialProductAdmins", Name: "emailAddressesOfInitialProductAdmins",
@@ -402,6 +419,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "excludes", Name: "excludes",
@@ -410,6 +428,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "includes", Name: "includes",
@@ -418,6 +437,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "[]string", Type: "[]string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: []string{},
}, },
{ {
Name: "installCommand", Name: "installCommand",
@@ -426,6 +446,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_installCommand"),
}, },
{ {
Name: "jreDownloadUrl", Name: "jreDownloadUrl",
@@ -434,6 +455,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "whitesource/jreDownloadUrl"}}, Aliases: []config.Alias{{Name: "whitesource/jreDownloadUrl"}},
Default: `https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.2/sapmachine-jre-11.0.2_linux-x64_bin.tar.gz`,
}, },
{ {
Name: "licensingVulnerabilities", Name: "licensingVulnerabilities",
@@ -442,6 +464,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "orgToken", Name: "orgToken",
@@ -455,6 +478,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "whitesourceOrgToken"}, {Name: "whitesource/orgToken"}}, Aliases: []config.Alias{{Name: "whitesourceOrgToken"}, {Name: "whitesource/orgToken"}},
Default: os.Getenv("PIPER_orgToken"),
}, },
{ {
Name: "productName", Name: "productName",
@@ -463,6 +487,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "whitesourceProductName"}, {Name: "whitesource/productName"}}, Aliases: []config.Alias{{Name: "whitesourceProductName"}, {Name: "whitesource/productName"}},
Default: os.Getenv("PIPER_productName"),
}, },
{ {
Name: "productToken", Name: "productToken",
@@ -471,6 +496,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "whitesourceProductToken"}, {Name: "whitesource/productToken"}}, Aliases: []config.Alias{{Name: "whitesourceProductToken"}, {Name: "whitesource/productToken"}},
Default: os.Getenv("PIPER_productToken"),
}, },
{ {
Name: "version", Name: "version",
@@ -484,6 +510,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "productVersion"}, {Name: "whitesourceProductVersion"}, {Name: "whitesource/productVersion"}}, Aliases: []config.Alias{{Name: "productVersion"}, {Name: "whitesourceProductVersion"}, {Name: "whitesource/productVersion"}},
Default: os.Getenv("PIPER_version"),
}, },
{ {
Name: "projectName", Name: "projectName",
@@ -492,6 +519,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "whitesourceProjectName"}}, Aliases: []config.Alias{{Name: "whitesourceProjectName"}},
Default: os.Getenv("PIPER_projectName"),
}, },
{ {
Name: "projectToken", Name: "projectToken",
@@ -500,6 +528,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_projectToken"),
}, },
{ {
Name: "reporting", Name: "reporting",
@@ -508,6 +537,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "scanImage", Name: "scanImage",
@@ -516,6 +546,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_scanImage"),
}, },
{ {
Name: "scanImageIncludeLayers", Name: "scanImageIncludeLayers",
@@ -524,6 +555,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "scanImageRegistryUrl", Name: "scanImageRegistryUrl",
@@ -532,6 +564,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_scanImageRegistryUrl"),
}, },
{ {
Name: "securityVulnerabilities", Name: "securityVulnerabilities",
@@ -540,6 +573,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: true,
}, },
{ {
Name: "serviceUrl", Name: "serviceUrl",
@@ -548,6 +582,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "whitesourceServiceUrl"}, {Name: "whitesource/serviceUrl"}}, Aliases: []config.Alias{{Name: "whitesourceServiceUrl"}, {Name: "whitesource/serviceUrl"}},
Default: `https://saas.whitesourcesoftware.com/api`,
}, },
{ {
Name: "timeout", Name: "timeout",
@@ -556,6 +591,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "int", Type: "int",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: 900,
}, },
{ {
Name: "userToken", Name: "userToken",
@@ -575,6 +611,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_userToken"),
}, },
{ {
Name: "versioningModel", Name: "versioningModel",
@@ -583,6 +620,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "defaultVersioningModel"}}, Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
Default: `major`,
}, },
{ {
Name: "vulnerabilityReportFormat", Name: "vulnerabilityReportFormat",
@@ -591,6 +629,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `xlsx`,
}, },
{ {
Name: "vulnerabilityReportTitle", Name: "vulnerabilityReportTitle",
@@ -599,6 +638,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `WhiteSource Security Vulnerability Report`,
}, },
{ {
Name: "projectSettingsFile", Name: "projectSettingsFile",
@@ -607,6 +647,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
Default: os.Getenv("PIPER_projectSettingsFile"),
}, },
{ {
Name: "globalSettingsFile", Name: "globalSettingsFile",
@@ -615,6 +656,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}}, Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
Default: os.Getenv("PIPER_globalSettingsFile"),
}, },
{ {
Name: "m2Path", Name: "m2Path",
@@ -623,6 +665,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "maven/m2Path"}}, Aliases: []config.Alias{{Name: "maven/m2Path"}},
Default: os.Getenv("PIPER_m2Path"),
}, },
{ {
Name: "installArtifacts", Name: "installArtifacts",
@@ -631,6 +674,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "bool", Type: "bool",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: false,
}, },
{ {
Name: "defaultNpmRegistry", Name: "defaultNpmRegistry",
@@ -639,6 +683,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}}, Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
Default: os.Getenv("PIPER_defaultNpmRegistry"),
}, },
}, },
}, },

View File

@@ -169,6 +169,9 @@ func xsDeployMetadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
Secrets: []config.StepSecrets{
{Name: "credentialsId", Description: "Jenkins 'Username with password' credentials ID containing username/password for accessing xs endpoint.", Type: "jenkins"},
},
Parameters: []config.StepParameters{ Parameters: []config.StepParameters{
{ {
Name: "deployOpts", Name: "deployOpts",
@@ -177,6 +180,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_deployOpts"),
}, },
{ {
Name: "operationIdLogPattern", Name: "operationIdLogPattern",
@@ -185,6 +189,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{{Name: "deployIdLogPattern"}}, Aliases: []config.Alias{{Name: "deployIdLogPattern"}},
Default: `^.*xs bg-deploy -i (.*) -a.*$`,
}, },
{ {
Name: "mtaPath", Name: "mtaPath",
@@ -198,6 +203,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_mtaPath"),
}, },
{ {
Name: "action", Name: "action",
@@ -206,6 +212,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `NONE`,
}, },
{ {
Name: "mode", Name: "mode",
@@ -214,6 +221,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `DEPLOY`,
}, },
{ {
Name: "operationId", Name: "operationId",
@@ -227,6 +235,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_operationId"),
}, },
{ {
Name: "apiUrl", Name: "apiUrl",
@@ -235,6 +244,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_apiUrl"),
}, },
{ {
Name: "username", Name: "username",
@@ -249,6 +259,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{{Name: "user"}}, Aliases: []config.Alias{{Name: "user"}},
Default: os.Getenv("PIPER_username"),
}, },
{ {
Name: "password", Name: "password",
@@ -263,6 +274,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_password"),
}, },
{ {
Name: "org", Name: "org",
@@ -271,6 +283,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_org"),
}, },
{ {
Name: "space", Name: "space",
@@ -279,6 +292,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_space"),
}, },
{ {
Name: "loginOpts", Name: "loginOpts",
@@ -287,6 +301,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_loginOpts"),
}, },
{ {
Name: "xsSessionFile", Name: "xsSessionFile",
@@ -295,6 +310,7 @@ func xsDeployMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_xsSessionFile"),
}, },
}, },
}, },

View File

@@ -248,14 +248,19 @@ func (c *Config) GetStepConfig(flagValues map[string]interface{}, paramJSON stri
// finally do the condition evaluation post processing // finally do the condition evaluation post processing
for _, p := range parameters { for _, p := range parameters {
if len(p.Conditions) > 0 { if len(p.Conditions) > 0 {
cp := p.Conditions[0].Params[0] for _, cond := range p.Conditions {
dependentValue := stepConfig.Config[cp.Name] for _, param := range cond.Params {
if cmp.Equal(dependentValue, cp.Value) && stepConfig.Config[p.Name] == nil { // retrieve configuration value of condition parameter
subMap, ok := stepConfig.Config[dependentValue.(string)].(map[string]interface{}) dependentValue := stepConfig.Config[param.Name]
if ok && subMap[p.Name] != nil { // check if configuration of condition parameter matches the value
stepConfig.Config[p.Name] = subMap[p.Name] // so far string-equals condition is assumed here
} else { // if so and if no config applied yet, then try to apply the value
stepConfig.Config[p.Name] = p.Default if cmp.Equal(dependentValue, param.Value) && stepConfig.Config[p.Name] == nil {
subMap, ok := stepConfig.Config[dependentValue.(string)].(map[string]interface{})
if ok && subMap[p.Name] != nil {
stepConfig.Config[p.Name] = subMap[p.Name]
}
}
} }
} }
} }
@@ -353,9 +358,20 @@ func (s *StepConfig) mixInStepDefaults(stepParams []StepParameters) {
s.Config = map[string]interface{}{} s.Config = map[string]interface{}{}
} }
// conditional defaults need to be written to a sub map
// in order to prevent a "last one wins" situation
// this is then considered at the end of GetStepConfig once the complete configuration is known
for _, p := range stepParams { for _, p := range stepParams {
if p.Default != nil { if p.Default != nil {
s.Config[p.Name] = p.Default if len(p.Conditions) == 0 {
s.Config[p.Name] = p.Default
} else {
for _, cond := range p.Conditions {
for _, param := range cond.Params {
s.Config[param.Value] = map[string]interface{}{p.Name: p.Default}
}
}
}
} }
} }
} }

View File

@@ -752,3 +752,52 @@ func TestStepConfig_mixInHookConfig(t *testing.T) {
}) })
} }
} }
func TestMixInStepDefaults(t *testing.T) {
tt := []struct {
name string
stepConfig *StepConfig
stepParams []StepParameters
expected map[string]interface{}
}{
{name: "empty", stepConfig: &StepConfig{}, stepParams: []StepParameters{}, expected: map[string]interface{}{}},
{name: "no condition", stepConfig: &StepConfig{}, stepParams: []StepParameters{{Name: "noCondition", Default: "noCondition_default"}}, expected: map[string]interface{}{"noCondition": "noCondition_default"}},
{
name: "with multiple conditions",
stepConfig: &StepConfig{},
stepParams: []StepParameters{
{Name: "dependentParam1", Default: "dependentParam1_value"},
{Name: "dependentParam2", Default: "dependentParam2_value"},
{
Name: "withConditionParameter",
Default: "withCondition_default_a",
Conditions: []Condition{
{ConditionRef: "strings-equal", Params: []Param{{Name: "dependentParam1", Value: "dependentParam1_value1"}}},
{ConditionRef: "strings-equal", Params: []Param{{Name: "dependentParam2", Value: "dependentParam2_value1"}}},
},
},
{
Name: "withConditionParameter",
Default: "withCondition_default_b",
Conditions: []Condition{
{ConditionRef: "strings-equal", Params: []Param{{Name: "dependentParam1", Value: "dependentParam1_value2"}}},
{ConditionRef: "strings-equal", Params: []Param{{Name: "dependentParam2", Value: "dependentParam2_value2"}}},
},
},
},
expected: map[string]interface{}{
"dependentParam1": "dependentParam1_value",
"dependentParam2": "dependentParam2_value",
"dependentParam1_value1": map[string]interface{}{"withConditionParameter": "withCondition_default_a"},
"dependentParam2_value1": map[string]interface{}{"withConditionParameter": "withCondition_default_a"},
"dependentParam1_value2": map[string]interface{}{"withConditionParameter": "withCondition_default_b"},
"dependentParam2_value2": map[string]interface{}{"withConditionParameter": "withCondition_default_b"},
},
},
}
for _, test := range tt {
test.stepConfig.mixInStepDefaults(test.stepParams)
assert.Equal(t, test.expected, test.stepConfig.Config, test.name)
}
}

View File

@@ -35,6 +35,7 @@ type stepInfo struct {
Sidecars []config.Container Sidecars []config.Container
Outputs config.StepOutputs Outputs config.StepOutputs
Resources []config.StepResources Resources []config.StepResources
Secrets []config.StepSecrets
} }
//StepGoTemplate ... //StepGoTemplate ...
@@ -189,6 +190,17 @@ func {{ .StepName }}Metadata() config.StepData {
}, },
Spec: config.StepSpec{ Spec: config.StepSpec{
Inputs: config.StepInputs{ Inputs: config.StepInputs{
{{ if .Secrets -}}
Secrets: []config.StepSecrets{
{{- range $secrets := .Secrets }}
{
{{- if $secrets.Name -}} Name: "{{$secrets.Name}}",{{- end }}
{{- if $secrets.Description -}} Description: "{{$secrets.Description}}",{{- end }}
{{- if $secrets.Type -}} Type: "{{$secrets.Type}}",{{- end }}
{{- if $secrets.Aliases -}} Aliases: []config.Alias{ {{- range $i, $a := $secrets.Aliases }} {Name: "{{$a.Name}}", Deprecated: {{$a.Deprecated}}}, {{ end -}} },{{- end }}
}, {{ end }}
},
{{ end -}}
{{ if .Resources -}} {{ if .Resources -}}
Resources: []config.StepResources{ Resources: []config.StepResources{
{{- range $resource := .Resources }} {{- range $resource := .Resources }}
@@ -209,6 +221,8 @@ func {{ .StepName }}Metadata() config.StepData {
Type: "{{ $value.Type }}", Type: "{{ $value.Type }}",
Mandatory: {{ $value.Mandatory }}, Mandatory: {{ $value.Mandatory }},
Aliases: []config.Alias{{ "{" }}{{ range $notused, $alias := $value.Aliases }}{{ "{" }}Name: "{{ $alias.Name }}"{{ "}" }},{{ end }}{{ "}" }}, Aliases: []config.Alias{{ "{" }}{{ range $notused, $alias := $value.Aliases }}{{ "{" }}Name: "{{ $alias.Name }}"{{ "}" }},{{ end }}{{ "}" }},
{{ if $value.Default -}} Default: {{ $value.Default }}, {{- end}}{{ if $value.Conditions }}
Conditions: []config.Condition{ {{- range $i, $cond := $value.Conditions }} {ConditionRef: "{{$cond.ConditionRef}}", Params: []config.Param{ {{- range $j, $p := $cond.Params}} { Name: "{{$p.Name}}", Value: "{{$p.Value}}" }, {{end -}} } }, {{ end -}} },{{- end }}
},{{ end }} },{{ end }}
}, },
}, },
@@ -573,6 +587,7 @@ func getStepInfo(stepData *config.StepData, osImport bool, exportPrefix string)
Sidecars: stepData.Spec.Sidecars, Sidecars: stepData.Spec.Sidecars,
Outputs: stepData.Spec.Outputs, Outputs: stepData.Spec.Outputs,
Resources: stepData.Spec.Inputs.Resources, Resources: stepData.Spec.Inputs.Resources,
Secrets: stepData.Spec.Inputs.Secrets,
}, },
err err
} }

View File

@@ -100,7 +100,7 @@ func TestProcessMetaFiles(t *testing.T) {
} }
resultFilePath := filepath.Join("cmd", "testStep_generated.go") resultFilePath := filepath.Join("cmd", "testStep_generated.go")
assert.Equal(t, string(expected), string(files[resultFilePath])) assert.Equal(t, string(expected), string(files[resultFilePath]))
t.Log(string(files[resultFilePath])) //t.Log(string(files[resultFilePath]))
}) })
t.Run("test code", func(t *testing.T) { t.Run("test code", func(t *testing.T) {
@@ -124,7 +124,7 @@ func TestProcessMetaFiles(t *testing.T) {
} }
resultFilePath := filepath.Join("cmd", "testStep_generated.go") resultFilePath := filepath.Join("cmd", "testStep_generated.go")
assert.Equal(t, string(expected), string(files[resultFilePath])) assert.Equal(t, string(expected), string(files[resultFilePath]))
t.Log(string(files[resultFilePath])) //t.Log(string(files[resultFilePath]))
}) })
} }

View File

@@ -205,6 +205,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `val0`,
}, },
{ {
Name: "param1", Name: "param1",
@@ -213,6 +214,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_param1"),
}, },
{ {
Name: "param2", Name: "param2",
@@ -221,6 +223,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_param2"),
}, },
}, },
}, },

View File

@@ -204,6 +204,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: `val0`,
}, },
{ {
Name: "param1", Name: "param1",
@@ -212,6 +213,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: false, Mandatory: false,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_param1"),
}, },
{ {
Name: "param2", Name: "param2",
@@ -220,6 +222,7 @@ func testStepMetadata() config.StepData {
Type: "string", Type: "string",
Mandatory: true, Mandatory: true,
Aliases: []config.Alias{}, Aliases: []config.Alias{},
Default: os.Getenv("PIPER_param2"),
}, },
}, },
}, },