You've already forked sap-jenkins-library
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:
@@ -152,6 +152,9 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptorFileName",
|
||||
@@ -184,6 +190,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `addon.yml`,
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -197,6 +204,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -152,6 +152,9 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptorFileName",
|
||||
@@ -184,6 +190,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `addon.yml`,
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -197,6 +204,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -151,6 +151,9 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -159,6 +162,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -167,6 +171,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -175,6 +180,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -188,6 +194,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -120,6 +120,9 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -128,6 +131,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -136,6 +140,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -144,6 +149,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "targetVectorScope",
|
||||
@@ -152,6 +158,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_targetVectorScope"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -165,6 +172,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -152,6 +152,9 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -160,6 +163,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -168,6 +172,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -176,6 +181,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -189,6 +195,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -149,6 +149,9 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -157,6 +160,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -165,6 +169,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -173,6 +178,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -186,6 +192,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -154,6 +154,9 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "abapAddonAssemblyKitEndpoint",
|
||||
@@ -162,6 +165,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://apps.support.sap.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -170,6 +174,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -178,6 +183,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -191,6 +197,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -161,6 +161,9 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -169,6 +172,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -177,6 +181,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -185,6 +190,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -193,6 +199,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -201,6 +208,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -209,6 +217,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -217,6 +226,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -225,6 +235,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -238,6 +249,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
{
|
||||
Name: "maxRuntimeInMinutes",
|
||||
@@ -246,6 +258,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 360,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -165,6 +165,9 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -173,6 +176,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -181,6 +185,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -189,6 +194,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -197,6 +203,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -205,6 +212,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -213,6 +221,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -221,6 +230,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -229,6 +239,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptor",
|
||||
@@ -242,6 +253,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
},
|
||||
{
|
||||
Name: "maxRuntimeInMinutes",
|
||||
@@ -250,6 +262,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 360,
|
||||
},
|
||||
{
|
||||
Name: "pollIntervalsInMilliseconds",
|
||||
@@ -258,6 +271,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 60000,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,9 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -148,6 +151,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -162,6 +166,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repositoryName",
|
||||
@@ -170,6 +175,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repositoryName"),
|
||||
},
|
||||
{
|
||||
Name: "branchName",
|
||||
@@ -178,6 +184,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -186,6 +193,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "repositories",
|
||||
@@ -194,6 +202,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
},
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -202,6 +211,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -210,6 +220,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -218,6 +229,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -226,6 +238,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -234,6 +247,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKeyName"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,9 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -148,6 +151,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -162,6 +166,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repositories",
|
||||
@@ -170,6 +175,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
},
|
||||
{
|
||||
Name: "repositoryName",
|
||||
@@ -178,6 +184,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repositoryName"),
|
||||
},
|
||||
{
|
||||
Name: "branchName",
|
||||
@@ -186,6 +193,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -194,6 +202,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -202,6 +211,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -210,6 +220,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -218,6 +229,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -226,6 +238,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -234,6 +247,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -144,6 +144,9 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -152,6 +155,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -172,6 +176,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -192,6 +197,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -200,6 +206,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -208,6 +215,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfService",
|
||||
@@ -216,6 +224,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
|
||||
Default: os.Getenv("PIPER_cfService"),
|
||||
},
|
||||
{
|
||||
Name: "cfServicePlan",
|
||||
@@ -224,6 +233,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
|
||||
Default: os.Getenv("PIPER_cfServicePlan"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -232,6 +242,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "serviceManifest",
|
||||
@@ -240,6 +251,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
|
||||
Default: os.Getenv("PIPER_serviceManifest"),
|
||||
},
|
||||
{
|
||||
Name: "abapSystemAdminEmail",
|
||||
@@ -248,6 +260,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_abapSystemAdminEmail"),
|
||||
},
|
||||
{
|
||||
Name: "abapSystemDescription",
|
||||
@@ -256,6 +269,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `Test system created by an automated pipeline`,
|
||||
},
|
||||
{
|
||||
Name: "abapSystemIsDevelopmentAllowed",
|
||||
@@ -264,6 +278,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "abapSystemID",
|
||||
@@ -272,6 +287,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `H02`,
|
||||
},
|
||||
{
|
||||
Name: "abapSystemSizeOfPersistence",
|
||||
@@ -280,6 +296,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "abapSystemSizeOfRuntime",
|
||||
@@ -288,6 +305,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "addonDescriptorFileName",
|
||||
@@ -296,6 +314,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_addonDescriptorFileName"),
|
||||
},
|
||||
{
|
||||
Name: "includeAddon",
|
||||
@@ -304,6 +323,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,9 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -148,6 +151,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -162,6 +166,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repositoryNames",
|
||||
@@ -170,6 +175,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "repositories",
|
||||
@@ -178,6 +184,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -186,6 +193,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -194,6 +202,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -202,6 +211,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -210,6 +220,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -218,6 +229,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -226,6 +238,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
{
|
||||
Name: "ignoreCommit",
|
||||
@@ -234,6 +247,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -137,6 +137,9 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "atcConfig",
|
||||
@@ -145,6 +148,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_atcConfig"),
|
||||
},
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -153,6 +157,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -161,6 +166,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -169,6 +175,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -177,6 +184,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -185,6 +193,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -199,6 +208,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -213,6 +223,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -221,6 +232,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "atcResultsFileName",
|
||||
@@ -229,6 +241,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `ATCResults.xml`,
|
||||
},
|
||||
{
|
||||
Name: "generateHTML",
|
||||
@@ -237,6 +250,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -252,6 +252,10 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "buildTool",
|
||||
@@ -260,6 +264,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
},
|
||||
{
|
||||
Name: "commitUserName",
|
||||
@@ -268,6 +273,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "gitUserName"}},
|
||||
Default: `Project Piper`,
|
||||
},
|
||||
{
|
||||
Name: "customVersionField",
|
||||
@@ -276,6 +282,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customVersionField"),
|
||||
},
|
||||
{
|
||||
Name: "customVersionSection",
|
||||
@@ -284,6 +291,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customVersionSection"),
|
||||
},
|
||||
{
|
||||
Name: "customVersioningScheme",
|
||||
@@ -292,6 +300,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customVersioningScheme"),
|
||||
},
|
||||
{
|
||||
Name: "dockerVersionSource",
|
||||
@@ -300,6 +309,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerVersionSource"),
|
||||
},
|
||||
{
|
||||
Name: "fetchCoordinates",
|
||||
@@ -308,6 +318,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -316,6 +327,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -324,6 +336,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "includeCommitId",
|
||||
@@ -332,6 +345,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -340,6 +354,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -360,6 +375,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -368,6 +384,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "shortCommitId",
|
||||
@@ -376,6 +393,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "tagPrefix",
|
||||
@@ -384,6 +402,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `build_`,
|
||||
},
|
||||
{
|
||||
Name: "unixTimestamp",
|
||||
@@ -392,6 +411,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -412,6 +432,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "versioningTemplate",
|
||||
@@ -420,6 +441,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_versioningTemplate"),
|
||||
},
|
||||
{
|
||||
Name: "versioningType",
|
||||
@@ -428,6 +450,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `cloud`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -161,6 +161,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `junit`,
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -169,6 +170,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://github.com/bats-core/bats-core.git`,
|
||||
},
|
||||
{
|
||||
Name: "testPackage",
|
||||
@@ -177,6 +179,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `piper-bats`,
|
||||
},
|
||||
{
|
||||
Name: "testPath",
|
||||
@@ -185,6 +188,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `src/test`,
|
||||
},
|
||||
{
|
||||
Name: "envVars",
|
||||
@@ -193,6 +197,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -129,6 +129,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -137,6 +138,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -145,6 +147,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "changeDocumentId",
|
||||
@@ -153,6 +156,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_changeDocumentId"),
|
||||
},
|
||||
{
|
||||
Name: "failIfStatusIsNotInDevelopment",
|
||||
@@ -161,6 +165,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "clientOpts",
|
||||
@@ -169,6 +174,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -296,6 +296,9 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "checkmarx", Type: "stash"},
|
||||
},
|
||||
@@ -307,6 +310,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "filterPattern",
|
||||
@@ -315,6 +319,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `!**/node_modules/**, !**/.xmake/**, !**/*_test.go, !**/vendor/**/*.go, **/*.html, **/*.xml, **/*.go, **/*.py, **/*.js, **/*.scala, **/*.ts`,
|
||||
},
|
||||
{
|
||||
Name: "fullScanCycle",
|
||||
@@ -323,6 +328,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `5`,
|
||||
},
|
||||
{
|
||||
Name: "fullScansScheduled",
|
||||
@@ -331,6 +337,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "generatePdfReport",
|
||||
@@ -339,6 +346,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "incremental",
|
||||
@@ -347,6 +355,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "maxRetries",
|
||||
@@ -355,6 +364,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 3,
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -375,6 +385,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "preset",
|
||||
@@ -383,6 +394,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_preset"),
|
||||
},
|
||||
{
|
||||
Name: "projectName",
|
||||
@@ -391,6 +403,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "checkmarxProject"}, {Name: "checkMarxProjectName"}},
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
},
|
||||
{
|
||||
Name: "pullRequestName",
|
||||
@@ -399,6 +412,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -407,6 +421,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "checkmarxServerUrl"}},
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
},
|
||||
{
|
||||
Name: "sourceEncoding",
|
||||
@@ -415,6 +430,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `1`,
|
||||
},
|
||||
{
|
||||
Name: "teamId",
|
||||
@@ -423,6 +439,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "checkmarxGroupId"}, {Name: "groupId"}},
|
||||
Default: os.Getenv("PIPER_teamId"),
|
||||
},
|
||||
{
|
||||
Name: "teamName",
|
||||
@@ -431,6 +448,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_teamName"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -451,6 +469,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "verifyOnly",
|
||||
@@ -459,6 +478,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdEnabled",
|
||||
@@ -467,6 +487,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdHigh",
|
||||
@@ -475,6 +496,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 100,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdLow",
|
||||
@@ -483,6 +505,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 10,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdMedium",
|
||||
@@ -491,6 +514,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 100,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdResult",
|
||||
@@ -499,6 +523,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `FAILURE`,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityThresholdUnit",
|
||||
@@ -507,6 +532,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `percentage`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -128,6 +128,9 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -136,6 +139,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -156,6 +160,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -176,6 +181,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -184,6 +190,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -192,6 +199,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -200,6 +208,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyName",
|
||||
@@ -208,6 +217,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceKeyConfig",
|
||||
@@ -216,6 +226,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKeyConfig"}},
|
||||
Default: os.Getenv("PIPER_cfServiceKeyConfig"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -144,6 +144,9 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "deployDescriptor", Type: "stash"},
|
||||
},
|
||||
@@ -155,6 +158,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -175,6 +179,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -195,6 +200,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -203,6 +209,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -211,6 +218,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfService",
|
||||
@@ -219,6 +227,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
|
||||
Default: os.Getenv("PIPER_cfService"),
|
||||
},
|
||||
{
|
||||
Name: "cfServicePlan",
|
||||
@@ -227,6 +236,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
|
||||
Default: os.Getenv("PIPER_cfServicePlan"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstanceName",
|
||||
@@ -235,6 +245,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstanceName"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstanceName"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceBroker",
|
||||
@@ -243,6 +254,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceBroker"}},
|
||||
Default: os.Getenv("PIPER_cfServiceBroker"),
|
||||
},
|
||||
{
|
||||
Name: "cfCreateServiceConfig",
|
||||
@@ -251,6 +263,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/createServiceConfig"}},
|
||||
Default: os.Getenv("PIPER_cfCreateServiceConfig"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceTags",
|
||||
@@ -259,6 +272,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceTags"}},
|
||||
Default: os.Getenv("PIPER_cfServiceTags"),
|
||||
},
|
||||
{
|
||||
Name: "serviceManifest",
|
||||
@@ -267,6 +281,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
|
||||
Default: `service-manifest.yml`,
|
||||
},
|
||||
{
|
||||
Name: "manifestVariables",
|
||||
@@ -275,6 +290,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariables"}, {Name: "cfManifestVariables"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "manifestVariablesFiles",
|
||||
@@ -283,6 +299,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariablesFiles"}, {Name: "cfManifestVariablesFiles"}},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -122,6 +122,9 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "deployDescriptor", Type: "stash"},
|
||||
},
|
||||
@@ -133,6 +136,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -147,6 +151,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -161,6 +166,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -169,6 +175,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -177,6 +184,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -125,6 +125,9 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "cfApiEndpoint",
|
||||
@@ -133,6 +136,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -153,6 +157,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -173,6 +178,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -181,6 +187,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -189,6 +196,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
{
|
||||
Name: "cfServiceInstance",
|
||||
@@ -197,6 +205,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
},
|
||||
{
|
||||
Name: "cfDeleteServiceKeys",
|
||||
@@ -205,6 +214,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/cfDeleteServiceKeys"}},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -122,6 +122,9 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "deployDescriptor", Type: "stash"},
|
||||
},
|
||||
@@ -133,6 +136,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -147,6 +151,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -161,6 +166,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "cfOrg",
|
||||
@@ -169,6 +175,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
},
|
||||
{
|
||||
Name: "cfSpace",
|
||||
@@ -177,6 +184,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -219,6 +219,10 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "apiEndpoint",
|
||||
@@ -227,6 +231,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cfApiEndpoint"}, {Name: "cloudFoundry/apiEndpoint"}},
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
},
|
||||
{
|
||||
Name: "appName",
|
||||
@@ -235,6 +240,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cfAppName"}, {Name: "cloudFoundry/appName"}},
|
||||
Default: os.Getenv("PIPER_appName"),
|
||||
},
|
||||
{
|
||||
Name: "artifactVersion",
|
||||
@@ -248,6 +254,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_artifactVersion"),
|
||||
},
|
||||
{
|
||||
Name: "cfHome",
|
||||
@@ -256,6 +263,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_cfHome"),
|
||||
},
|
||||
{
|
||||
Name: "cfNativeDeployParameters",
|
||||
@@ -264,6 +272,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_cfNativeDeployParameters"),
|
||||
},
|
||||
{
|
||||
Name: "cfPluginHome",
|
||||
@@ -272,6 +281,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_cfPluginHome"),
|
||||
},
|
||||
{
|
||||
Name: "deployDockerImage",
|
||||
@@ -280,6 +290,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_deployDockerImage"),
|
||||
},
|
||||
{
|
||||
Name: "deployTool",
|
||||
@@ -288,6 +299,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_deployTool"),
|
||||
},
|
||||
{
|
||||
Name: "buildTool",
|
||||
@@ -301,6 +313,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
},
|
||||
{
|
||||
Name: "deployType",
|
||||
@@ -309,6 +322,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `standard`,
|
||||
},
|
||||
{
|
||||
Name: "dockerPassword",
|
||||
@@ -323,6 +337,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerPassword"),
|
||||
},
|
||||
{
|
||||
Name: "dockerUsername",
|
||||
@@ -337,6 +352,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerUsername"),
|
||||
},
|
||||
{
|
||||
Name: "keepOldInstance",
|
||||
@@ -345,6 +361,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "loginParameters",
|
||||
@@ -353,6 +370,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_loginParameters"),
|
||||
},
|
||||
{
|
||||
Name: "manifest",
|
||||
@@ -361,6 +379,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cfManifest"}, {Name: "cloudFoundry/manifest"}},
|
||||
Default: os.Getenv("PIPER_manifest"),
|
||||
},
|
||||
{
|
||||
Name: "manifestVariables",
|
||||
@@ -369,6 +388,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cfManifestVariables"}, {Name: "cloudFoundry/manifestVariables"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "manifestVariablesFiles",
|
||||
@@ -377,6 +397,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cfManifestVariablesFiles"}, {Name: "cloudFoundry/manifestVariablesFiles"}},
|
||||
Default: []string{`manifest-variables.yml`},
|
||||
},
|
||||
{
|
||||
Name: "mtaDeployParameters",
|
||||
@@ -385,6 +406,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `-f`,
|
||||
},
|
||||
{
|
||||
Name: "mtaExtensionDescriptor",
|
||||
@@ -393,6 +415,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/mtaExtensionDescriptor"}},
|
||||
Default: os.Getenv("PIPER_mtaExtensionDescriptor"),
|
||||
},
|
||||
{
|
||||
Name: "mtaExtensionCredentials",
|
||||
@@ -414,6 +437,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_mtaPath"),
|
||||
},
|
||||
{
|
||||
Name: "org",
|
||||
@@ -422,6 +446,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cfOrg"}, {Name: "cloudFoundry/org"}},
|
||||
Default: os.Getenv("PIPER_org"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -442,6 +467,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "smokeTestScript",
|
||||
@@ -450,6 +476,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `blueGreenCheckScript.sh`,
|
||||
},
|
||||
{
|
||||
Name: "smokeTestStatusCode",
|
||||
@@ -458,6 +485,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 200,
|
||||
},
|
||||
{
|
||||
Name: "space",
|
||||
@@ -466,6 +494,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "cfSpace"}, {Name: "cloudFoundry/space"}},
|
||||
Default: os.Getenv("PIPER_space"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -486,6 +515,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -127,6 +127,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "testConfiguration",
|
||||
@@ -135,6 +136,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testConfiguration"),
|
||||
},
|
||||
{
|
||||
Name: "testDriver",
|
||||
@@ -143,6 +145,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testDriver"),
|
||||
},
|
||||
{
|
||||
Name: "testImage",
|
||||
@@ -151,6 +154,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testImage"),
|
||||
},
|
||||
{
|
||||
Name: "testReportFilePath",
|
||||
@@ -159,6 +163,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `cst-report.json`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -128,6 +128,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "containerImage",
|
||||
@@ -141,6 +142,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "dockerImage"}, {Name: "scanImage"}},
|
||||
Default: os.Getenv("PIPER_containerImage"),
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -149,6 +151,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
{
|
||||
Name: "includeLayers",
|
||||
@@ -157,6 +160,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -157,6 +157,9 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
{Name: "checkmarx", Type: "stash"},
|
||||
@@ -180,6 +183,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "blackduckToken"}, {Name: "detectToken"}, {Name: "apiToken"}, {Name: "detect/apiToken"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
{
|
||||
Name: "codeLocation",
|
||||
@@ -188,6 +192,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_codeLocation"),
|
||||
},
|
||||
{
|
||||
Name: "projectName",
|
||||
@@ -196,6 +201,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "detect/projectName"}},
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
},
|
||||
{
|
||||
Name: "scanners",
|
||||
@@ -204,6 +210,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/scanners"}},
|
||||
Default: []string{`signature`},
|
||||
},
|
||||
{
|
||||
Name: "scanPaths",
|
||||
@@ -212,6 +219,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/scanPaths"}},
|
||||
Default: []string{`.`},
|
||||
},
|
||||
{
|
||||
Name: "dependencyPath",
|
||||
@@ -220,6 +228,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/dependencyPath"}},
|
||||
Default: `.`,
|
||||
},
|
||||
{
|
||||
Name: "unmap",
|
||||
@@ -228,6 +237,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/unmap"}},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "scanProperties",
|
||||
@@ -236,6 +246,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
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",
|
||||
@@ -244,6 +255,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "detect/serverUrl"}},
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
},
|
||||
{
|
||||
Name: "groups",
|
||||
@@ -252,6 +264,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/groups"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "failOn",
|
||||
@@ -260,6 +273,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/failOn"}},
|
||||
Default: []string{`BLOCKER`},
|
||||
},
|
||||
{
|
||||
Name: "versioningModel",
|
||||
@@ -268,6 +282,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `major`,
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -281,6 +296,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "projectVersion"}, {Name: "detect/projectVersion"}},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
{
|
||||
Name: "customScanVersion",
|
||||
@@ -289,6 +305,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -297,6 +314,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -305,6 +323,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -313,6 +332,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -321,6 +341,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "includedPackageManagers",
|
||||
@@ -329,6 +350,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/includedPackageManagers"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "excludedPackageManagers",
|
||||
@@ -337,6 +359,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/excludedPackageManagers"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "mavenExcludedScopes",
|
||||
@@ -345,6 +368,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/mavenExcludedScopes"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "detectTools",
|
||||
@@ -353,6 +377,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "detect/detectTools"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "scanOnChanges",
|
||||
@@ -361,6 +386,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "customEnvironmentVariables",
|
||||
@@ -369,6 +395,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -287,6 +287,10 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "commonPipelineEnvironment"},
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
@@ -302,6 +306,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "authToken",
|
||||
@@ -321,6 +326,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_authToken"),
|
||||
},
|
||||
{
|
||||
Name: "customScanVersion",
|
||||
@@ -329,6 +335,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
},
|
||||
{
|
||||
Name: "githubToken",
|
||||
@@ -348,6 +355,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_githubToken"),
|
||||
},
|
||||
{
|
||||
Name: "autoCreate",
|
||||
@@ -356,6 +364,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "modulePath",
|
||||
@@ -364,6 +373,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./`,
|
||||
},
|
||||
{
|
||||
Name: "pythonRequirementsFile",
|
||||
@@ -372,6 +382,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pythonRequirementsFile"),
|
||||
},
|
||||
{
|
||||
Name: "autodetectClasspath",
|
||||
@@ -380,6 +391,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "mustAuditIssueGroups",
|
||||
@@ -388,6 +400,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `Corporate Security Requirements, Audit All`,
|
||||
},
|
||||
{
|
||||
Name: "spotAuditIssueGroups",
|
||||
@@ -396,6 +409,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `Spot Checks of Each Category`,
|
||||
},
|
||||
{
|
||||
Name: "pythonRequirementsInstallSuffix",
|
||||
@@ -404,6 +418,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pythonRequirementsInstallSuffix"),
|
||||
},
|
||||
{
|
||||
Name: "pythonVersion",
|
||||
@@ -412,6 +427,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `python3`,
|
||||
},
|
||||
{
|
||||
Name: "uploadResults",
|
||||
@@ -420,6 +436,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -433,6 +450,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyProjectVersion"}},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorFile",
|
||||
@@ -441,6 +459,8 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./pom.xml`,
|
||||
Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "maven"}}}},
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorFile",
|
||||
@@ -449,6 +469,8 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./setup.py`,
|
||||
Conditions: []config.Condition{{ConditionRef: "strings-equal", Params: []config.Param{{Name: "buildTool", Value: "pip"}}}},
|
||||
},
|
||||
{
|
||||
Name: "commitId",
|
||||
@@ -462,6 +484,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commitId"),
|
||||
},
|
||||
{
|
||||
Name: "commitMessage",
|
||||
@@ -475,6 +498,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commitMessage"),
|
||||
},
|
||||
{
|
||||
Name: "githubApiUrl",
|
||||
@@ -483,6 +507,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -496,6 +521,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -509,6 +535,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "memory",
|
||||
@@ -517,6 +544,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `-Xmx4G -Xms512M`,
|
||||
},
|
||||
{
|
||||
Name: "updateRulePack",
|
||||
@@ -525,6 +553,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "reportDownloadEndpoint",
|
||||
@@ -533,6 +562,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyReportDownloadEndpoint"}},
|
||||
Default: `/transfer/reportDownload.html`,
|
||||
},
|
||||
{
|
||||
Name: "pollingMinutes",
|
||||
@@ -541,6 +571,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 30,
|
||||
},
|
||||
{
|
||||
Name: "quickScan",
|
||||
@@ -549,6 +580,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "translate",
|
||||
@@ -557,6 +589,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_translate"),
|
||||
},
|
||||
{
|
||||
Name: "src",
|
||||
@@ -565,6 +598,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "exclude",
|
||||
@@ -573,6 +607,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "apiEndpoint",
|
||||
@@ -581,6 +616,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyApiEndpoint"}},
|
||||
Default: `/api/v1`,
|
||||
},
|
||||
{
|
||||
Name: "reportType",
|
||||
@@ -589,6 +625,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `PDF`,
|
||||
},
|
||||
{
|
||||
Name: "pythonAdditionalPath",
|
||||
@@ -597,6 +634,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`./lib`, `.`},
|
||||
},
|
||||
{
|
||||
Name: "artifactUrl",
|
||||
@@ -605,6 +643,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_artifactUrl"),
|
||||
},
|
||||
{
|
||||
Name: "considerSuspicious",
|
||||
@@ -613,6 +652,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "fprUploadEndpoint",
|
||||
@@ -621,6 +661,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyFprUploadEndpoint"}},
|
||||
Default: `/upload/resultFileUpload.html`,
|
||||
},
|
||||
{
|
||||
Name: "projectName",
|
||||
@@ -629,6 +670,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyProjectName"}},
|
||||
Default: `{{list .GroupID .ArtifactID | join "-" | trimAll "-"}}`,
|
||||
},
|
||||
{
|
||||
Name: "reporting",
|
||||
@@ -637,6 +679,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -645,6 +688,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "fortifyServerUrl"}, {Name: "sscUrl"}},
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
},
|
||||
{
|
||||
Name: "pullRequestMessageRegexGroup",
|
||||
@@ -653,6 +697,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 1,
|
||||
},
|
||||
{
|
||||
Name: "deltaMinutes",
|
||||
@@ -661,6 +706,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 5,
|
||||
},
|
||||
{
|
||||
Name: "spotCheckMinimum",
|
||||
@@ -669,6 +715,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 1,
|
||||
},
|
||||
{
|
||||
Name: "fprDownloadEndpoint",
|
||||
@@ -677,6 +724,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "fortifyFprDownloadEndpoint"}},
|
||||
Default: `/download/currentStateFprDownload.html`,
|
||||
},
|
||||
{
|
||||
Name: "versioningModel",
|
||||
@@ -685,6 +733,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
|
||||
Default: `major`,
|
||||
},
|
||||
{
|
||||
Name: "pythonInstallCommand",
|
||||
@@ -693,6 +742,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `{{.Pip}} install --user .`,
|
||||
},
|
||||
{
|
||||
Name: "reportTemplateId",
|
||||
@@ -701,6 +751,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 18,
|
||||
},
|
||||
{
|
||||
Name: "filterSetTitle",
|
||||
@@ -709,6 +760,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `SAP`,
|
||||
},
|
||||
{
|
||||
Name: "pullRequestName",
|
||||
@@ -717,6 +769,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
},
|
||||
{
|
||||
Name: "pullRequestMessageRegex",
|
||||
@@ -725,6 +778,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `.*Merge pull request #(\\d+) from.*`,
|
||||
},
|
||||
{
|
||||
Name: "buildTool",
|
||||
@@ -733,6 +787,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `maven`,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -741,6 +796,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -749,6 +805,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -757,6 +814,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "verifyOnly",
|
||||
@@ -765,6 +823,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -773,6 +832,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -159,6 +159,9 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
{Name: "tests", Type: "stash"},
|
||||
@@ -171,6 +174,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_installCommand"),
|
||||
},
|
||||
{
|
||||
Name: "languageRunner",
|
||||
@@ -179,6 +183,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_languageRunner"),
|
||||
},
|
||||
{
|
||||
Name: "runCommand",
|
||||
@@ -187,6 +192,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_runCommand"),
|
||||
},
|
||||
{
|
||||
Name: "testOptions",
|
||||
@@ -195,6 +201,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testOptions"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -120,6 +120,9 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -134,6 +137,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -148,6 +152,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -156,6 +161,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -164,6 +170,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -172,6 +179,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -128,6 +128,9 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -142,6 +145,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -156,6 +160,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -164,6 +169,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -172,6 +178,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -180,6 +187,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
{
|
||||
Name: "remoteRepositoryURL",
|
||||
@@ -188,6 +196,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_remoteRepositoryURL"),
|
||||
},
|
||||
{
|
||||
Name: "role",
|
||||
@@ -196,6 +205,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_role"),
|
||||
},
|
||||
{
|
||||
Name: "vSID",
|
||||
@@ -204,6 +214,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_vSID"),
|
||||
},
|
||||
{
|
||||
Name: "type",
|
||||
@@ -212,6 +223,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `GIT`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -139,6 +139,9 @@ func gctsDeployMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -153,6 +156,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -167,6 +171,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -175,6 +180,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -183,6 +189,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -191,6 +198,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
{
|
||||
Name: "commit",
|
||||
@@ -199,6 +207,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commit"),
|
||||
},
|
||||
{
|
||||
Name: "remoteRepositoryURL",
|
||||
@@ -207,6 +216,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_remoteRepositoryURL"),
|
||||
},
|
||||
{
|
||||
Name: "role",
|
||||
@@ -215,6 +225,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_role"),
|
||||
},
|
||||
{
|
||||
Name: "vSID",
|
||||
@@ -223,6 +234,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_vSID"),
|
||||
},
|
||||
{
|
||||
Name: "type",
|
||||
@@ -231,6 +243,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `GIT`,
|
||||
},
|
||||
{
|
||||
Name: "branch",
|
||||
@@ -239,6 +252,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_branch"),
|
||||
},
|
||||
{
|
||||
Name: "scope",
|
||||
@@ -247,6 +261,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_scope"),
|
||||
},
|
||||
{
|
||||
Name: "rollback",
|
||||
@@ -255,6 +270,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "configuration",
|
||||
|
||||
@@ -120,6 +120,9 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -134,6 +137,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -148,6 +152,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -156,6 +161,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -164,6 +170,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -172,6 +179,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -127,6 +127,10 @@ func gctsRollbackMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -141,6 +145,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -155,6 +160,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -163,6 +169,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -171,6 +178,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -179,6 +187,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
{
|
||||
Name: "commit",
|
||||
@@ -187,6 +196,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commit"),
|
||||
},
|
||||
{
|
||||
Name: "githubPersonalAccessToken",
|
||||
@@ -200,6 +210,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_githubPersonalAccessToken"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -57,15 +57,9 @@ func generateConfig() error {
|
||||
var myConfig config.Config
|
||||
var stepConfig config.StepConfig
|
||||
|
||||
var metadata config.StepData
|
||||
metadataFile, err := configOptions.openFile(configOptions.stepMetadata)
|
||||
metadata, err := resolveMetadata()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "metadata: open failed")
|
||||
}
|
||||
|
||||
err = metadata.ReadPipelineStepData(metadataFile)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "metadata: read failed")
|
||||
return errors.Wrapf(err, "failed to resolve metadata")
|
||||
}
|
||||
|
||||
// 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.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.MarkFlagRequired("stepMetadata")
|
||||
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
@@ -45,18 +45,19 @@ func TestConfigCommand(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("Required flags", func(t *testing.T) {
|
||||
exp := []string{"stepMetadata"}
|
||||
exp := []string{}
|
||||
assert.Equal(t, exp, gotReq, "required flags incorrect")
|
||||
})
|
||||
|
||||
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")
|
||||
})
|
||||
|
||||
t.Run("Run", func(t *testing.T) {
|
||||
t.Run("Success case", func(t *testing.T) {
|
||||
configOptions.openFile = configOpenFileMock
|
||||
configOptions.stepName = "githubCreateIssue"
|
||||
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", "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")
|
||||
})
|
||||
}
|
||||
|
||||
@@ -127,6 +127,9 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -135,6 +138,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "branch",
|
||||
@@ -143,6 +147,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `master`,
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -156,6 +161,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -169,6 +175,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "requiredChecks",
|
||||
@@ -177,6 +184,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "requireEnforceAdmins",
|
||||
@@ -185,6 +193,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "requiredApprovingReviewCount",
|
||||
@@ -193,6 +202,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -212,6 +222,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -125,6 +125,9 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -133,6 +136,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "body",
|
||||
@@ -141,6 +145,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
},
|
||||
{
|
||||
Name: "number",
|
||||
@@ -149,6 +154,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -162,6 +168,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -175,6 +182,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -194,6 +202,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -125,6 +125,9 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -133,6 +136,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "body",
|
||||
@@ -141,6 +145,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
},
|
||||
{
|
||||
Name: "bodyFilePath",
|
||||
@@ -149,6 +154,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_bodyFilePath"),
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -162,6 +168,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -175,6 +182,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "title",
|
||||
@@ -183,6 +191,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_title"),
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -202,6 +211,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -137,6 +137,9 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "assignees",
|
||||
@@ -145,6 +148,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "base",
|
||||
@@ -153,6 +157,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_base"),
|
||||
},
|
||||
{
|
||||
Name: "body",
|
||||
@@ -161,6 +166,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
},
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -169,6 +175,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "head",
|
||||
@@ -177,6 +184,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_head"),
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -190,6 +198,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -203,6 +212,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -211,6 +221,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
Default: `https://github.com`,
|
||||
},
|
||||
{
|
||||
Name: "title",
|
||||
@@ -219,6 +230,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_title"),
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -238,6 +250,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
{
|
||||
Name: "labels",
|
||||
@@ -246,6 +259,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -150,6 +150,9 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "addClosedIssues",
|
||||
@@ -158,6 +161,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "addDeltaToLastRelease",
|
||||
@@ -166,6 +170,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -174,6 +179,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "assetPath",
|
||||
@@ -182,6 +188,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_assetPath"),
|
||||
},
|
||||
{
|
||||
Name: "commitish",
|
||||
@@ -190,6 +197,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `master`,
|
||||
},
|
||||
{
|
||||
Name: "excludeLabels",
|
||||
@@ -198,6 +206,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "labels",
|
||||
@@ -206,6 +215,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -219,6 +229,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "preRelease",
|
||||
@@ -227,6 +238,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "releaseBodyHeader",
|
||||
@@ -235,6 +247,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_releaseBodyHeader"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -248,6 +261,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -256,6 +270,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
Default: `https://github.com`,
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -275,6 +290,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
{
|
||||
Name: "uploadUrl",
|
||||
@@ -283,6 +299,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubUploadUrl"}},
|
||||
Default: `https://uploads.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -296,6 +313,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -138,6 +138,9 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -146,6 +149,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "commitId",
|
||||
@@ -159,6 +163,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commitId"),
|
||||
},
|
||||
{
|
||||
Name: "context",
|
||||
@@ -167,6 +172,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_context"),
|
||||
},
|
||||
{
|
||||
Name: "description",
|
||||
@@ -175,6 +181,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_description"),
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -188,6 +195,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -201,6 +209,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "status",
|
||||
@@ -209,6 +218,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_status"),
|
||||
},
|
||||
{
|
||||
Name: "targetUrl",
|
||||
@@ -217,6 +227,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_targetUrl"),
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -236,6 +247,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -145,6 +145,9 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "deployDescriptor", Type: "stash"},
|
||||
},
|
||||
@@ -156,6 +159,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `master`,
|
||||
},
|
||||
{
|
||||
Name: "commitMessage",
|
||||
@@ -164,6 +168,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_commitMessage"),
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -172,6 +177,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
Default: `https://github.com`,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -186,6 +192,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -200,6 +207,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -208,6 +216,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
{
|
||||
Name: "containerName",
|
||||
@@ -216,6 +225,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_containerName"),
|
||||
},
|
||||
{
|
||||
Name: "containerRegistryUrl",
|
||||
@@ -229,6 +239,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "containerImageNameTag",
|
||||
@@ -242,6 +253,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "image"}, {Name: "containerImage"}},
|
||||
Default: os.Getenv("PIPER_containerImageNameTag"),
|
||||
},
|
||||
{
|
||||
Name: "chartPath",
|
||||
@@ -250,6 +262,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmChartPath"}},
|
||||
Default: os.Getenv("PIPER_chartPath"),
|
||||
},
|
||||
{
|
||||
Name: "helmValues",
|
||||
@@ -258,6 +271,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "deploymentName",
|
||||
@@ -266,6 +280,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentName"}},
|
||||
Default: os.Getenv("PIPER_deploymentName"),
|
||||
},
|
||||
{
|
||||
Name: "tool",
|
||||
@@ -274,6 +289,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `kubectl`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -118,6 +118,9 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "configurationUrl",
|
||||
@@ -126,6 +129,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_configurationUrl"),
|
||||
},
|
||||
{
|
||||
Name: "configurationUsername",
|
||||
@@ -140,6 +144,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_configurationUsername"),
|
||||
},
|
||||
{
|
||||
Name: "configurationPassword",
|
||||
@@ -154,6 +159,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_configurationPassword"),
|
||||
},
|
||||
{
|
||||
Name: "dockerFile",
|
||||
@@ -162,6 +168,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "dockerfile"}},
|
||||
Default: `./Dockerfile`,
|
||||
},
|
||||
{
|
||||
Name: "configurationFile",
|
||||
@@ -170,6 +177,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `.hadolint.yaml`,
|
||||
},
|
||||
{
|
||||
Name: "reportFile",
|
||||
@@ -178,6 +186,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `hadolint.xml`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -125,6 +125,9 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -139,6 +142,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -153,6 +157,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -161,6 +166,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowVersion",
|
||||
@@ -169,6 +175,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
},
|
||||
{
|
||||
Name: "platform",
|
||||
@@ -177,6 +184,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -185,6 +193,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -193,6 +202,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -126,6 +126,9 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -140,6 +143,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -154,6 +158,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -162,6 +167,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowVersion",
|
||||
@@ -170,6 +176,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -178,6 +185,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -186,6 +194,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
{
|
||||
Name: "downloadPath",
|
||||
@@ -194,6 +203,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_downloadPath"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -154,6 +154,9 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -168,6 +171,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -182,6 +186,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -190,6 +195,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "platform",
|
||||
@@ -198,6 +204,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -206,6 +213,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -214,6 +222,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -154,6 +154,9 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -168,6 +171,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -182,6 +186,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -190,6 +195,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "platform",
|
||||
@@ -198,6 +204,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -206,6 +213,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -214,6 +222,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -131,6 +131,9 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -145,6 +148,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -159,6 +163,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -167,6 +172,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowVersion",
|
||||
@@ -175,6 +181,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
},
|
||||
{
|
||||
Name: "platform",
|
||||
@@ -183,6 +190,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -191,6 +199,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -199,6 +208,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
{
|
||||
Name: "parameterKey",
|
||||
@@ -207,6 +217,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_parameterKey"),
|
||||
},
|
||||
{
|
||||
Name: "parameterValue",
|
||||
@@ -215,6 +226,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_parameterValue"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -132,6 +132,9 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "username",
|
||||
@@ -146,6 +149,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -160,6 +164,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowId",
|
||||
@@ -168,6 +173,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowVersion",
|
||||
@@ -176,6 +182,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
},
|
||||
{
|
||||
Name: "integrationFlowName",
|
||||
@@ -184,6 +191,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_integrationFlowName"),
|
||||
},
|
||||
{
|
||||
Name: "packageId",
|
||||
@@ -192,6 +200,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_packageId"),
|
||||
},
|
||||
{
|
||||
Name: "host",
|
||||
@@ -200,6 +209,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "oAuthTokenProviderUrl",
|
||||
@@ -208,6 +218,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -216,6 +227,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -121,6 +121,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_input"),
|
||||
},
|
||||
{
|
||||
Name: "patch",
|
||||
@@ -129,6 +130,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_patch"),
|
||||
},
|
||||
{
|
||||
Name: "output",
|
||||
@@ -137,6 +139,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_output"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -158,6 +158,9 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "buildOptions",
|
||||
@@ -166,6 +169,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`--skip-tls-verify-pull`},
|
||||
},
|
||||
{
|
||||
Name: "containerBuildOptions",
|
||||
@@ -174,6 +178,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_containerBuildOptions"),
|
||||
},
|
||||
{
|
||||
Name: "containerImage",
|
||||
@@ -182,6 +187,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "containerImageNameAndTag"}},
|
||||
Default: os.Getenv("PIPER_containerImage"),
|
||||
},
|
||||
{
|
||||
Name: "containerImageName",
|
||||
@@ -190,6 +196,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "dockerImageName"}},
|
||||
Default: os.Getenv("PIPER_containerImageName"),
|
||||
},
|
||||
{
|
||||
Name: "containerImageTag",
|
||||
@@ -203,6 +210,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "artifactVersion"}},
|
||||
Default: os.Getenv("PIPER_containerImageTag"),
|
||||
},
|
||||
{
|
||||
Name: "containerPreparationCommand",
|
||||
@@ -211,6 +219,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `rm -f /kaniko/.docker/config.json`,
|
||||
},
|
||||
{
|
||||
Name: "containerRegistryUrl",
|
||||
@@ -224,6 +233,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "customTlsCertificateLinks",
|
||||
@@ -232,6 +242,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "dockerConfigJSON",
|
||||
@@ -256,6 +267,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
},
|
||||
{
|
||||
Name: "dockerfilePath",
|
||||
@@ -264,6 +276,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "dockerfile"}},
|
||||
Default: `Dockerfile`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -122,6 +122,9 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
{Name: "tests", Type: "stash"},
|
||||
@@ -134,6 +137,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `npm install --quiet`,
|
||||
},
|
||||
{
|
||||
Name: "modules",
|
||||
@@ -142,6 +146,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`.`},
|
||||
},
|
||||
{
|
||||
Name: "runCommand",
|
||||
@@ -150,6 +155,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `npm run karma`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -174,6 +174,12 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "deployDescriptor", Type: "stash"},
|
||||
},
|
||||
@@ -185,6 +191,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentParameters"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "apiServer",
|
||||
@@ -193,6 +200,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "k8sAPIServer"}},
|
||||
Default: os.Getenv("PIPER_apiServer"),
|
||||
},
|
||||
{
|
||||
Name: "appTemplate",
|
||||
@@ -201,6 +209,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "k8sAppTemplate"}},
|
||||
Default: os.Getenv("PIPER_appTemplate"),
|
||||
},
|
||||
{
|
||||
Name: "chartPath",
|
||||
@@ -209,6 +218,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmChartPath"}},
|
||||
Default: os.Getenv("PIPER_chartPath"),
|
||||
},
|
||||
{
|
||||
Name: "containerRegistryPassword",
|
||||
@@ -223,6 +233,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_containerRegistryPassword"),
|
||||
},
|
||||
{
|
||||
Name: "containerRegistryUrl",
|
||||
@@ -236,6 +247,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "containerRegistryUser",
|
||||
@@ -250,6 +262,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_containerRegistryUser"),
|
||||
},
|
||||
{
|
||||
Name: "containerRegistrySecret",
|
||||
@@ -258,6 +271,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `regsecret`,
|
||||
},
|
||||
{
|
||||
Name: "createDockerRegistrySecret",
|
||||
@@ -266,6 +280,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "deploymentName",
|
||||
@@ -274,6 +289,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentName"}},
|
||||
Default: os.Getenv("PIPER_deploymentName"),
|
||||
},
|
||||
{
|
||||
Name: "deployTool",
|
||||
@@ -282,6 +298,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `kubectl`,
|
||||
},
|
||||
{
|
||||
Name: "forceUpdates",
|
||||
@@ -290,6 +307,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "helmDeployWaitSeconds",
|
||||
@@ -298,6 +316,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 300,
|
||||
},
|
||||
{
|
||||
Name: "helmValues",
|
||||
@@ -306,6 +325,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "image",
|
||||
@@ -319,6 +339,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "deployImage"}},
|
||||
Default: os.Getenv("PIPER_image"),
|
||||
},
|
||||
{
|
||||
Name: "ingressHosts",
|
||||
@@ -327,6 +348,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "keepFailedDeployments",
|
||||
@@ -335,6 +357,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "kubeConfig",
|
||||
@@ -354,6 +377,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_kubeConfig"),
|
||||
},
|
||||
{
|
||||
Name: "kubeContext",
|
||||
@@ -362,6 +386,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_kubeContext"),
|
||||
},
|
||||
{
|
||||
Name: "kubeToken",
|
||||
@@ -375,6 +400,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_kubeToken"),
|
||||
},
|
||||
{
|
||||
Name: "namespace",
|
||||
@@ -383,6 +409,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentNamespace"}, {Name: "k8sDeploymentNamespace"}},
|
||||
Default: `default`,
|
||||
},
|
||||
{
|
||||
Name: "tillerNamespace",
|
||||
@@ -391,6 +418,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "helmTillerNamespace"}},
|
||||
Default: os.Getenv("PIPER_tillerNamespace"),
|
||||
},
|
||||
{
|
||||
Name: "dockerConfigJSON",
|
||||
@@ -415,6 +443,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -119,6 +119,9 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "host",
|
||||
@@ -127,6 +130,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -141,6 +145,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -155,6 +160,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "file",
|
||||
@@ -163,6 +169,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_file"),
|
||||
},
|
||||
{
|
||||
Name: "timeout",
|
||||
@@ -171,6 +178,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `600`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,9 @@ func mavenBuildMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
Inputs: config.StepInputs{
|
||||
Secrets: []config.StepSecrets{
|
||||
{Name: "altDeploymentRepositoryPasswordId", Description: "Jenkins credentials ID containing the artifact deployment repository password.", Type: "jenkins"},
|
||||
},
|
||||
Parameters: []config.StepParameters{
|
||||
{
|
||||
Name: "pomPath",
|
||||
@@ -142,6 +145,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `pom.xml`,
|
||||
},
|
||||
{
|
||||
Name: "flatten",
|
||||
@@ -150,6 +154,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "verify",
|
||||
@@ -158,6 +163,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -166,6 +172,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -179,6 +186,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -187,6 +195,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "logSuccessfulMavenTransfers",
|
||||
@@ -195,6 +204,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "createBOM",
|
||||
@@ -203,6 +213,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/createBOM"}},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "altDeploymentRepositoryPassword",
|
||||
@@ -227,6 +238,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryPassword"),
|
||||
},
|
||||
{
|
||||
Name: "altDeploymentRepositoryUser",
|
||||
@@ -240,6 +252,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryUser"),
|
||||
},
|
||||
{
|
||||
Name: "altDeploymentRepositoryUrl",
|
||||
@@ -253,6 +266,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "altDeploymentRepositoryID",
|
||||
@@ -266,6 +280,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryID"),
|
||||
},
|
||||
{
|
||||
Name: "customTlsCertificateLinks",
|
||||
@@ -274,6 +289,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "publish",
|
||||
@@ -282,6 +298,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/publish"}},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -126,6 +126,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 1,
|
||||
},
|
||||
{
|
||||
Name: "forkCount",
|
||||
@@ -134,6 +135,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `1C`,
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -142,6 +144,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -150,6 +153,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -158,6 +162,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -166,6 +171,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "logSuccessfulMavenTransfers",
|
||||
@@ -174,6 +180,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -144,6 +144,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "pmd",
|
||||
@@ -152,6 +153,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "mavenModulesExcludes",
|
||||
@@ -160,6 +162,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "spotBugsExcludeFilterFile",
|
||||
@@ -168,6 +171,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "spotBugs/excludeFilterFile"}},
|
||||
Default: os.Getenv("PIPER_spotBugsExcludeFilterFile"),
|
||||
},
|
||||
{
|
||||
Name: "spotBugsIncludeFilterFile",
|
||||
@@ -176,6 +180,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "spotBugs/includeFilterFile"}},
|
||||
Default: os.Getenv("PIPER_spotBugsIncludeFilterFile"),
|
||||
},
|
||||
{
|
||||
Name: "spotBugsMaxAllowedViolations",
|
||||
@@ -184,6 +189,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "spotBugs/maxAllowedViolations"}},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "pmdFailurePriority",
|
||||
@@ -192,6 +198,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "pmd/failurePriority"}},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "pmdMaxAllowedViolations",
|
||||
@@ -200,6 +207,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "pmd/maxAllowedViolations"}},
|
||||
Default: 0,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -208,6 +216,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -216,6 +225,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -224,6 +234,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "logSuccessfulMavenTransfers",
|
||||
@@ -232,6 +243,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -240,6 +252,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -130,6 +130,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pomPath"),
|
||||
},
|
||||
{
|
||||
Name: "goals",
|
||||
@@ -138,6 +139,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "defines",
|
||||
@@ -146,6 +148,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "flags",
|
||||
@@ -154,6 +157,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "returnStdout",
|
||||
@@ -162,6 +166,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -170,6 +175,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -178,6 +184,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -186,6 +193,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "logSuccessfulMavenTransfers",
|
||||
@@ -194,6 +202,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -163,6 +163,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_mtarName"),
|
||||
},
|
||||
{
|
||||
Name: "extensions",
|
||||
@@ -171,6 +172,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "extension"}},
|
||||
Default: os.Getenv("PIPER_extensions"),
|
||||
},
|
||||
{
|
||||
Name: "platform",
|
||||
@@ -179,6 +181,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `CF`,
|
||||
},
|
||||
{
|
||||
Name: "applicationName",
|
||||
@@ -187,6 +190,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationName"),
|
||||
},
|
||||
{
|
||||
Name: "source",
|
||||
@@ -195,6 +199,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./`,
|
||||
},
|
||||
{
|
||||
Name: "target",
|
||||
@@ -203,6 +208,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./`,
|
||||
},
|
||||
{
|
||||
Name: "defaultNpmRegistry",
|
||||
@@ -211,6 +217,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -219,6 +226,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -227,6 +235,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -235,6 +244,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -243,6 +253,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -167,6 +167,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `**/*.postman_collection.json`,
|
||||
},
|
||||
{
|
||||
Name: "newmanRunCommand",
|
||||
@@ -175,6 +176,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_newmanRunCommand"),
|
||||
},
|
||||
{
|
||||
Name: "runOptions",
|
||||
@@ -183,6 +185,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
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",
|
||||
@@ -191,6 +194,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `npm install newman newman-reporter-html --global --quiet`,
|
||||
},
|
||||
{
|
||||
Name: "newmanEnvironment",
|
||||
@@ -199,6 +203,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_newmanEnvironment"),
|
||||
},
|
||||
{
|
||||
Name: "newmanGlobals",
|
||||
@@ -207,6 +212,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_newmanGlobals"),
|
||||
},
|
||||
{
|
||||
Name: "failOnError",
|
||||
@@ -215,6 +221,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "cfAppsWithSecrets",
|
||||
@@ -223,6 +230,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -147,6 +147,9 @@ func nexusUploadMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
{Name: "buildResult", Type: "stash"},
|
||||
@@ -159,6 +162,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "nexus/version"}},
|
||||
Default: `nexus3`,
|
||||
},
|
||||
{
|
||||
Name: "format",
|
||||
@@ -172,6 +176,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_format"),
|
||||
},
|
||||
{
|
||||
Name: "url",
|
||||
@@ -185,6 +190,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "nexus/url"}},
|
||||
Default: os.Getenv("PIPER_url"),
|
||||
},
|
||||
{
|
||||
Name: "mavenRepository",
|
||||
@@ -193,6 +199,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "nexus/mavenRepository"}, {Name: "nexus/repository"}},
|
||||
Default: os.Getenv("PIPER_mavenRepository"),
|
||||
},
|
||||
{
|
||||
Name: "npmRepository",
|
||||
@@ -201,6 +208,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "nexus/npmRepository"}},
|
||||
Default: os.Getenv("PIPER_npmRepository"),
|
||||
},
|
||||
{
|
||||
Name: "groupId",
|
||||
@@ -209,6 +217,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "nexus/groupId"}},
|
||||
Default: os.Getenv("PIPER_groupId"),
|
||||
},
|
||||
{
|
||||
Name: "artifactId",
|
||||
@@ -217,6 +226,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_artifactId"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -225,6 +235,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -233,6 +244,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -252,6 +264,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -271,6 +284,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -116,6 +116,7 @@ func npmExecuteLintMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "defaultNpmRegistry",
|
||||
@@ -124,6 +125,7 @@ func npmExecuteLintMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -130,6 +130,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "runScripts",
|
||||
@@ -138,6 +139,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "defaultNpmRegistry",
|
||||
@@ -146,6 +148,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
},
|
||||
{
|
||||
Name: "virtualFrameBuffer",
|
||||
@@ -154,6 +157,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "scriptOptions",
|
||||
@@ -162,6 +166,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorExcludeList",
|
||||
@@ -170,6 +175,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`deployment/**`},
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorList",
|
||||
@@ -178,6 +184,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "createBOM",
|
||||
@@ -186,6 +193,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -119,6 +119,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "outputFilePath",
|
||||
@@ -127,6 +128,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `scanSummary.md`,
|
||||
},
|
||||
{
|
||||
Name: "pipelineLink",
|
||||
@@ -135,6 +137,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pipelineLink"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -204,6 +204,10 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "excludeCVEs",
|
||||
@@ -212,6 +216,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "protecodeExcludeCVEs"}},
|
||||
Default: ``,
|
||||
},
|
||||
{
|
||||
Name: "failOnSevereVulnerabilities",
|
||||
@@ -220,6 +225,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "protecodeFailOnSevereVulnerabilities"}},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "scanImage",
|
||||
@@ -233,6 +239,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "dockerImage"}},
|
||||
Default: os.Getenv("PIPER_scanImage"),
|
||||
},
|
||||
{
|
||||
Name: "dockerRegistryUrl",
|
||||
@@ -246,6 +253,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "dockerConfigJSON",
|
||||
@@ -265,6 +273,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
},
|
||||
{
|
||||
Name: "cleanupMode",
|
||||
@@ -273,6 +282,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `binary`,
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -281,6 +291,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
{
|
||||
Name: "includeLayers",
|
||||
@@ -289,6 +300,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "timeoutMinutes",
|
||||
@@ -297,6 +309,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "protecodeTimeoutMinutes"}},
|
||||
Default: `60`,
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -305,6 +318,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "protecodeServerUrl"}},
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
},
|
||||
{
|
||||
Name: "reportFileName",
|
||||
@@ -313,6 +327,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `protecode_report.pdf`,
|
||||
},
|
||||
{
|
||||
Name: "fetchUrl",
|
||||
@@ -321,6 +336,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_fetchUrl"),
|
||||
},
|
||||
{
|
||||
Name: "group",
|
||||
@@ -329,6 +345,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "protecodeGroup"}},
|
||||
Default: os.Getenv("PIPER_group"),
|
||||
},
|
||||
{
|
||||
Name: "verifyOnly",
|
||||
@@ -337,6 +354,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "reuseExisting"}},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -357,6 +375,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "user"}},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -377,6 +396,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -390,6 +410,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "artifactVersion"}},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
{
|
||||
Name: "pullRequestName",
|
||||
@@ -398,6 +419,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -212,6 +212,10 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "instance",
|
||||
@@ -220,6 +224,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `SonarCloud`,
|
||||
},
|
||||
{
|
||||
Name: "serverUrl",
|
||||
@@ -228,6 +233,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "host"}, {Name: "sonarServerUrl"}},
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
},
|
||||
{
|
||||
Name: "token",
|
||||
@@ -247,6 +253,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "sonarToken"}},
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
},
|
||||
{
|
||||
Name: "organization",
|
||||
@@ -255,6 +262,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_organization"),
|
||||
},
|
||||
{
|
||||
Name: "customTlsCertificateLinks",
|
||||
@@ -263,6 +271,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "sonarScannerDownloadUrl",
|
||||
@@ -271,6 +280,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip`,
|
||||
},
|
||||
{
|
||||
Name: "versioningModel",
|
||||
@@ -279,6 +289,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `major`,
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -292,6 +303,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "projectVersion"}},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
{
|
||||
Name: "customScanVersion",
|
||||
@@ -300,6 +312,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
},
|
||||
{
|
||||
Name: "projectKey",
|
||||
@@ -308,6 +321,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_projectKey"),
|
||||
},
|
||||
{
|
||||
Name: "coverageExclusions",
|
||||
@@ -316,6 +330,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "inferJavaBinaries",
|
||||
@@ -324,6 +339,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "inferJavaLibraries",
|
||||
@@ -332,6 +348,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "options",
|
||||
@@ -340,6 +357,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "sonarProperties"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "branchName",
|
||||
@@ -348,6 +366,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
},
|
||||
{
|
||||
Name: "inferBranchName",
|
||||
@@ -356,6 +375,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "changeId",
|
||||
@@ -364,6 +384,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_changeId"),
|
||||
},
|
||||
{
|
||||
Name: "changeBranch",
|
||||
@@ -372,6 +393,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_changeBranch"),
|
||||
},
|
||||
{
|
||||
Name: "changeTarget",
|
||||
@@ -380,6 +402,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_changeTarget"),
|
||||
},
|
||||
{
|
||||
Name: "pullRequestProvider",
|
||||
@@ -388,6 +411,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `GitHub`,
|
||||
},
|
||||
{
|
||||
Name: "owner",
|
||||
@@ -401,6 +425,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
},
|
||||
{
|
||||
Name: "repository",
|
||||
@@ -414,6 +439,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
},
|
||||
{
|
||||
Name: "githubToken",
|
||||
@@ -433,6 +459,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "access_token"}},
|
||||
Default: os.Getenv("PIPER_githubToken"),
|
||||
},
|
||||
{
|
||||
Name: "disableInlineComments",
|
||||
@@ -441,6 +468,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "legacyPRHandling",
|
||||
@@ -449,6 +477,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "githubApiUrl",
|
||||
@@ -457,6 +486,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://api.github.com`,
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -465,6 +495,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -117,6 +117,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `plan`,
|
||||
},
|
||||
{
|
||||
Name: "terraformSecrets",
|
||||
@@ -131,6 +132,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_terraformSecrets"),
|
||||
},
|
||||
{
|
||||
Name: "additionalArgs",
|
||||
@@ -139,6 +141,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -150,6 +150,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
|
||||
Default: `origin/master`,
|
||||
},
|
||||
{
|
||||
Name: "gitTo",
|
||||
@@ -158,6 +159,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
|
||||
Default: `HEAD`,
|
||||
},
|
||||
{
|
||||
Name: "changeDocumentLabel",
|
||||
@@ -166,6 +168,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/changeDocumentLabel"}},
|
||||
Default: `ChangeDocument`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -150,6 +150,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
|
||||
Default: `origin/master`,
|
||||
},
|
||||
{
|
||||
Name: "gitTo",
|
||||
@@ -158,6 +159,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
|
||||
Default: `HEAD`,
|
||||
},
|
||||
{
|
||||
Name: "transportRequestLabel",
|
||||
@@ -166,6 +168,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/transportRequestLabel"}},
|
||||
Default: `TransportRequest`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,9 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "description",
|
||||
@@ -142,6 +145,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `Deployed with Piper based on SAP Fiori tools`,
|
||||
},
|
||||
{
|
||||
Name: "endpoint",
|
||||
@@ -150,6 +154,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -158,6 +163,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/client"}},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -166,6 +172,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -174,6 +181,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "applicationName",
|
||||
@@ -182,6 +190,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationName"),
|
||||
},
|
||||
{
|
||||
Name: "abapPackage",
|
||||
@@ -190,6 +199,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_abapPackage"),
|
||||
},
|
||||
{
|
||||
Name: "osDeployUser",
|
||||
@@ -198,6 +208,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/osDeployUser"}},
|
||||
Default: `node`,
|
||||
},
|
||||
{
|
||||
Name: "deployConfigFile",
|
||||
@@ -206,6 +217,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployConfigFile"}, {Name: "cts/deployConfigFile"}},
|
||||
Default: `ui5-deploy.yaml`,
|
||||
},
|
||||
{
|
||||
Name: "transportRequestId",
|
||||
@@ -214,6 +226,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_transportRequestId"),
|
||||
},
|
||||
{
|
||||
Name: "deployToolDependencies",
|
||||
@@ -222,6 +235,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "npmInstallOpts",
|
||||
@@ -230,6 +244,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -139,6 +139,9 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "endpoint",
|
||||
@@ -147,6 +150,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
},
|
||||
{
|
||||
Name: "client",
|
||||
@@ -155,6 +159,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentClient"}},
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
},
|
||||
{
|
||||
Name: "instance",
|
||||
@@ -163,6 +168,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/rfc/developmentInstance"}},
|
||||
Default: os.Getenv("PIPER_instance"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -171,6 +177,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -179,6 +186,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "applicationName",
|
||||
@@ -187,6 +195,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationName"),
|
||||
},
|
||||
{
|
||||
Name: "applicationDescription",
|
||||
@@ -195,6 +204,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationDescription"),
|
||||
},
|
||||
{
|
||||
Name: "abapPackage",
|
||||
@@ -203,6 +213,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_abapPackage"),
|
||||
},
|
||||
{
|
||||
Name: "applicationUrl",
|
||||
@@ -211,6 +222,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationUrl"),
|
||||
},
|
||||
{
|
||||
Name: "abapPackage",
|
||||
@@ -219,6 +231,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_abapPackage"),
|
||||
},
|
||||
{
|
||||
Name: "codePage",
|
||||
@@ -227,6 +240,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `UTF-8`,
|
||||
},
|
||||
{
|
||||
Name: "acceptUnixStyleLineEndings",
|
||||
@@ -235,6 +249,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "failUploadOnWarning",
|
||||
@@ -243,6 +258,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "failOnWarning"}},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "transportRequestId",
|
||||
@@ -251,6 +267,7 @@ func transportRequestUploadRFCMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_transportRequestId"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -165,6 +165,9 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "endpoint",
|
||||
@@ -173,6 +176,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -187,6 +191,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -201,6 +206,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "applicationId",
|
||||
@@ -209,6 +215,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_applicationId"),
|
||||
},
|
||||
{
|
||||
Name: "changeDocumentId",
|
||||
@@ -222,6 +229,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_changeDocumentId"),
|
||||
},
|
||||
{
|
||||
Name: "transportRequestId",
|
||||
@@ -235,6 +243,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_transportRequestId"),
|
||||
},
|
||||
{
|
||||
Name: "filePath",
|
||||
@@ -248,6 +257,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
},
|
||||
{
|
||||
Name: "cmClientOpts",
|
||||
@@ -256,6 +266,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "clientOpts"}, {Name: "changeManagement/clientOpts"}},
|
||||
Default: []string{},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -128,6 +128,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `npm install @ui5/uiveri5 --global --quiet`,
|
||||
},
|
||||
{
|
||||
Name: "runCommand",
|
||||
@@ -136,6 +137,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `/home/node/.npm-global/bin/uiveri5`,
|
||||
},
|
||||
{
|
||||
Name: "runOptions",
|
||||
@@ -144,6 +146,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`--seleniumAddress=http://localhost:4444/wd/hub`},
|
||||
},
|
||||
{
|
||||
Name: "testOptions",
|
||||
@@ -152,6 +155,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testOptions"),
|
||||
},
|
||||
{
|
||||
Name: "testServerUrl",
|
||||
@@ -160,6 +164,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_testServerUrl"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -134,6 +134,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `jenkins`,
|
||||
},
|
||||
{
|
||||
Name: "jenkinsUrl",
|
||||
@@ -148,6 +149,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "url"}},
|
||||
Default: os.Getenv("PIPER_jenkinsUrl"),
|
||||
},
|
||||
{
|
||||
Name: "jenkinsCredentialDomain",
|
||||
@@ -156,6 +158,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `_`,
|
||||
},
|
||||
{
|
||||
Name: "jenkinsUsername",
|
||||
@@ -170,6 +173,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "userId"}},
|
||||
Default: os.Getenv("PIPER_jenkinsUsername"),
|
||||
},
|
||||
{
|
||||
Name: "jenkinsToken",
|
||||
@@ -184,6 +188,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "token"}},
|
||||
Default: os.Getenv("PIPER_jenkinsToken"),
|
||||
},
|
||||
{
|
||||
Name: "vaultAppRoleSecretTokenCredentialsId",
|
||||
@@ -192,6 +197,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_vaultAppRoleSecretTokenCredentialsId"),
|
||||
},
|
||||
{
|
||||
Name: "vaultServerUrl",
|
||||
@@ -200,6 +206,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_vaultServerUrl"),
|
||||
},
|
||||
{
|
||||
Name: "vaultNamespace",
|
||||
@@ -208,6 +215,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_vaultNamespace"),
|
||||
},
|
||||
{
|
||||
Name: "daysBeforeExpiry",
|
||||
@@ -216,6 +224,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 15,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -280,6 +280,10 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{Name: "buildDescriptor", Type: "stash"},
|
||||
{Name: "opensourceConfiguration", Type: "stash"},
|
||||
@@ -293,6 +297,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar`,
|
||||
},
|
||||
{
|
||||
Name: "agentFileName",
|
||||
@@ -301,6 +306,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `wss-unified-agent.jar`,
|
||||
},
|
||||
{
|
||||
Name: "agentParameters",
|
||||
@@ -309,6 +315,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "agentUrl",
|
||||
@@ -317,6 +324,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `https://saas.whitesourcesoftware.com/agent`,
|
||||
},
|
||||
{
|
||||
Name: "aggregateVersionWideReport",
|
||||
@@ -325,6 +333,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorExcludeList",
|
||||
@@ -333,6 +342,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{`unit-tests/pom.xml`, `integration-tests/pom.xml`},
|
||||
},
|
||||
{
|
||||
Name: "buildDescriptorFile",
|
||||
@@ -341,6 +351,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_buildDescriptorFile"),
|
||||
},
|
||||
{
|
||||
Name: "buildTool",
|
||||
@@ -354,6 +365,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
},
|
||||
{
|
||||
Name: "configFilePath",
|
||||
@@ -362,6 +374,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `./wss-unified-agent.config`,
|
||||
},
|
||||
{
|
||||
Name: "createProductFromPipeline",
|
||||
@@ -370,6 +383,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "customScanVersion",
|
||||
@@ -378,6 +392,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
},
|
||||
{
|
||||
Name: "cvssSeverityLimit",
|
||||
@@ -386,6 +401,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `-1`,
|
||||
},
|
||||
{
|
||||
Name: "scanPath",
|
||||
@@ -394,6 +410,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `.`,
|
||||
},
|
||||
{
|
||||
Name: "emailAddressesOfInitialProductAdmins",
|
||||
@@ -402,6 +419,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "excludes",
|
||||
@@ -410,6 +428,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "includes",
|
||||
@@ -418,6 +437,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: []string{},
|
||||
},
|
||||
{
|
||||
Name: "installCommand",
|
||||
@@ -426,6 +446,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_installCommand"),
|
||||
},
|
||||
{
|
||||
Name: "jreDownloadUrl",
|
||||
@@ -434,6 +455,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
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",
|
||||
@@ -442,6 +464,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "orgToken",
|
||||
@@ -455,6 +478,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "whitesourceOrgToken"}, {Name: "whitesource/orgToken"}},
|
||||
Default: os.Getenv("PIPER_orgToken"),
|
||||
},
|
||||
{
|
||||
Name: "productName",
|
||||
@@ -463,6 +487,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductName"}, {Name: "whitesource/productName"}},
|
||||
Default: os.Getenv("PIPER_productName"),
|
||||
},
|
||||
{
|
||||
Name: "productToken",
|
||||
@@ -471,6 +496,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductToken"}, {Name: "whitesource/productToken"}},
|
||||
Default: os.Getenv("PIPER_productToken"),
|
||||
},
|
||||
{
|
||||
Name: "version",
|
||||
@@ -484,6 +510,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "productVersion"}, {Name: "whitesourceProductVersion"}, {Name: "whitesource/productVersion"}},
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
},
|
||||
{
|
||||
Name: "projectName",
|
||||
@@ -492,6 +519,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "whitesourceProjectName"}},
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
},
|
||||
{
|
||||
Name: "projectToken",
|
||||
@@ -500,6 +528,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_projectToken"),
|
||||
},
|
||||
{
|
||||
Name: "reporting",
|
||||
@@ -508,6 +537,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "scanImage",
|
||||
@@ -516,6 +546,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_scanImage"),
|
||||
},
|
||||
{
|
||||
Name: "scanImageIncludeLayers",
|
||||
@@ -524,6 +555,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "scanImageRegistryUrl",
|
||||
@@ -532,6 +564,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_scanImageRegistryUrl"),
|
||||
},
|
||||
{
|
||||
Name: "securityVulnerabilities",
|
||||
@@ -540,6 +573,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: true,
|
||||
},
|
||||
{
|
||||
Name: "serviceUrl",
|
||||
@@ -548,6 +582,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "whitesourceServiceUrl"}, {Name: "whitesource/serviceUrl"}},
|
||||
Default: `https://saas.whitesourcesoftware.com/api`,
|
||||
},
|
||||
{
|
||||
Name: "timeout",
|
||||
@@ -556,6 +591,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: 900,
|
||||
},
|
||||
{
|
||||
Name: "userToken",
|
||||
@@ -575,6 +611,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_userToken"),
|
||||
},
|
||||
{
|
||||
Name: "versioningModel",
|
||||
@@ -583,6 +620,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
|
||||
Default: `major`,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityReportFormat",
|
||||
@@ -591,6 +629,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `xlsx`,
|
||||
},
|
||||
{
|
||||
Name: "vulnerabilityReportTitle",
|
||||
@@ -599,6 +638,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `WhiteSource Security Vulnerability Report`,
|
||||
},
|
||||
{
|
||||
Name: "projectSettingsFile",
|
||||
@@ -607,6 +647,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "globalSettingsFile",
|
||||
@@ -615,6 +656,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
},
|
||||
{
|
||||
Name: "m2Path",
|
||||
@@ -623,6 +665,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
},
|
||||
{
|
||||
Name: "installArtifacts",
|
||||
@@ -631,6 +674,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: false,
|
||||
},
|
||||
{
|
||||
Name: "defaultNpmRegistry",
|
||||
@@ -639,6 +683,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -169,6 +169,9 @@ func xsDeployMetadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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{
|
||||
{
|
||||
Name: "deployOpts",
|
||||
@@ -177,6 +180,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_deployOpts"),
|
||||
},
|
||||
{
|
||||
Name: "operationIdLogPattern",
|
||||
@@ -185,6 +189,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "deployIdLogPattern"}},
|
||||
Default: `^.*xs bg-deploy -i (.*) -a.*$`,
|
||||
},
|
||||
{
|
||||
Name: "mtaPath",
|
||||
@@ -198,6 +203,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_mtaPath"),
|
||||
},
|
||||
{
|
||||
Name: "action",
|
||||
@@ -206,6 +212,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `NONE`,
|
||||
},
|
||||
{
|
||||
Name: "mode",
|
||||
@@ -214,6 +221,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `DEPLOY`,
|
||||
},
|
||||
{
|
||||
Name: "operationId",
|
||||
@@ -227,6 +235,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_operationId"),
|
||||
},
|
||||
{
|
||||
Name: "apiUrl",
|
||||
@@ -235,6 +244,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_apiUrl"),
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
@@ -249,6 +259,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{{Name: "user"}},
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
@@ -263,6 +274,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
},
|
||||
{
|
||||
Name: "org",
|
||||
@@ -271,6 +283,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_org"),
|
||||
},
|
||||
{
|
||||
Name: "space",
|
||||
@@ -279,6 +292,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_space"),
|
||||
},
|
||||
{
|
||||
Name: "loginOpts",
|
||||
@@ -287,6 +301,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_loginOpts"),
|
||||
},
|
||||
{
|
||||
Name: "xsSessionFile",
|
||||
@@ -295,6 +310,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_xsSessionFile"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -248,14 +248,19 @@ func (c *Config) GetStepConfig(flagValues map[string]interface{}, paramJSON stri
|
||||
// finally do the condition evaluation post processing
|
||||
for _, p := range parameters {
|
||||
if len(p.Conditions) > 0 {
|
||||
cp := p.Conditions[0].Params[0]
|
||||
dependentValue := stepConfig.Config[cp.Name]
|
||||
if cmp.Equal(dependentValue, cp.Value) && stepConfig.Config[p.Name] == nil {
|
||||
for _, cond := range p.Conditions {
|
||||
for _, param := range cond.Params {
|
||||
// retrieve configuration value of condition parameter
|
||||
dependentValue := stepConfig.Config[param.Name]
|
||||
// check if configuration of condition parameter matches the value
|
||||
// so far string-equals condition is assumed here
|
||||
// if so and if no config applied yet, then try to apply the value
|
||||
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]
|
||||
} else {
|
||||
stepConfig.Config[p.Name] = p.Default
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,9 +358,20 @@ func (s *StepConfig) mixInStepDefaults(stepParams []StepParameters) {
|
||||
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 {
|
||||
if p.Default != nil {
|
||||
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}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ type stepInfo struct {
|
||||
Sidecars []config.Container
|
||||
Outputs config.StepOutputs
|
||||
Resources []config.StepResources
|
||||
Secrets []config.StepSecrets
|
||||
}
|
||||
|
||||
//StepGoTemplate ...
|
||||
@@ -189,6 +190,17 @@ func {{ .StepName }}Metadata() config.StepData {
|
||||
},
|
||||
Spec: config.StepSpec{
|
||||
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 -}}
|
||||
Resources: []config.StepResources{
|
||||
{{- range $resource := .Resources }}
|
||||
@@ -209,6 +221,8 @@ func {{ .StepName }}Metadata() config.StepData {
|
||||
Type: "{{ $value.Type }}",
|
||||
Mandatory: {{ $value.Mandatory }},
|
||||
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 }}
|
||||
},
|
||||
},
|
||||
@@ -573,6 +587,7 @@ func getStepInfo(stepData *config.StepData, osImport bool, exportPrefix string)
|
||||
Sidecars: stepData.Spec.Sidecars,
|
||||
Outputs: stepData.Spec.Outputs,
|
||||
Resources: stepData.Spec.Inputs.Resources,
|
||||
Secrets: stepData.Spec.Inputs.Secrets,
|
||||
},
|
||||
err
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ func TestProcessMetaFiles(t *testing.T) {
|
||||
}
|
||||
resultFilePath := filepath.Join("cmd", "testStep_generated.go")
|
||||
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) {
|
||||
@@ -124,7 +124,7 @@ func TestProcessMetaFiles(t *testing.T) {
|
||||
}
|
||||
resultFilePath := filepath.Join("cmd", "testStep_generated.go")
|
||||
assert.Equal(t, string(expected), string(files[resultFilePath]))
|
||||
t.Log(string(files[resultFilePath]))
|
||||
//t.Log(string(files[resultFilePath]))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -205,6 +205,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `val0`,
|
||||
},
|
||||
{
|
||||
Name: "param1",
|
||||
@@ -213,6 +214,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_param1"),
|
||||
},
|
||||
{
|
||||
Name: "param2",
|
||||
@@ -221,6 +223,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_param2"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -204,6 +204,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: `val0`,
|
||||
},
|
||||
{
|
||||
Name: "param1",
|
||||
@@ -212,6 +213,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_param1"),
|
||||
},
|
||||
{
|
||||
Name: "param2",
|
||||
@@ -220,6 +222,7 @@ func testStepMetadata() config.StepData {
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Aliases: []config.Alias{},
|
||||
Default: os.Getenv("PIPER_param2"),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user