You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-07-13 01:30:24 +02:00
feat(getConfig): retrieve metadata by stepName (#2736)
* refactored getConfig to allow stepName param for metadata fetching * extended step generator * go generate * Update cmd/getConfig.go Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com> * Update cmd/getConfig.go Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com> * Update cmd/getConfig.go * update generated files * update golden files to care for generator update * update and add tests * update generated files * Update cmd/getConfig.go * Update cmd/getConfig.go * update/fix formatting Co-authored-by: Leander Schulz <leander.schulz01@sap.com> Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com> Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> Co-authored-by: OliverNocon <oliver.nocon@sap.com>
This commit is contained in:
@ -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",
|
||||
@ -159,6 +162,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -167,6 +171,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -175,6 +180,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -183,6 +189,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `addon.yml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -196,6 +203,7 @@ func abapAddonAssemblyKitCheckCVsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -159,6 +162,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -167,6 +171,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -175,6 +180,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -183,6 +189,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Scope: []string{},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `addon.yml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -196,6 +203,7 @@ func abapAddonAssemblyKitCheckPVMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -158,6 +161,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -166,6 +170,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -174,6 +179,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -187,6 +193,7 @@ func abapAddonAssemblyKitCreateTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -127,6 +130,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -135,6 +139,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -143,6 +148,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -151,6 +157,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_targetVectorScope"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -164,6 +171,7 @@ func abapAddonAssemblyKitPublishTargetVectorMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -159,6 +162,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -167,6 +171,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -175,6 +180,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -188,6 +194,7 @@ func abapAddonAssemblyKitRegisterPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -156,6 +159,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -164,6 +168,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -172,6 +177,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +191,7 @@ func abapAddonAssemblyKitReleasePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -161,6 +164,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://apps.support.sap.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +173,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +182,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -190,6 +196,7 @@ func abapAddonAssemblyKitReserveNextPackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -168,6 +171,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +180,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -184,6 +189,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -192,6 +198,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -200,6 +207,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
{
|
||||
@ -208,6 +216,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -216,6 +225,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -224,6 +234,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -237,6 +248,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -245,6 +257,7 @@ func abapEnvironmentAssembleConfirmMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Default: 360,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -172,6 +175,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -180,6 +184,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -188,6 +193,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -196,6 +202,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -204,6 +211,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
{
|
||||
@ -212,6 +220,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -220,6 +229,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -228,6 +238,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -241,6 +252,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_addonDescriptor"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -249,6 +261,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Default: 360,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -257,6 +270,7 @@ func abapEnvironmentAssemblePackagesMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Default: 60000,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -147,6 +150,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +165,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +174,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repositoryName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +183,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +192,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -193,6 +201,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -201,6 +210,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -209,6 +219,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -217,6 +228,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -225,6 +237,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -233,6 +246,7 @@ func abapEnvironmentCheckoutBranchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "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",
|
||||
@ -147,6 +150,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +165,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +174,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +183,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repositoryName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +192,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -193,6 +201,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -201,6 +210,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -209,6 +219,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -217,6 +228,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -225,6 +237,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -233,6 +246,7 @@ func abapEnvironmentCloneGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -151,6 +154,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -171,6 +175,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -191,6 +196,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -199,6 +205,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -207,6 +214,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -215,6 +223,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfService"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
|
||||
},
|
||||
{
|
||||
@ -223,6 +232,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServicePlan"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
|
||||
},
|
||||
{
|
||||
@ -231,6 +241,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -239,6 +250,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_serviceManifest"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
|
||||
},
|
||||
{
|
||||
@ -247,6 +259,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_abapSystemAdminEmail"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -255,6 +268,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Test system created by an automated pipeline`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -263,6 +277,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -271,6 +286,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `H02`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -279,6 +295,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -287,6 +304,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -295,6 +313,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_addonDescriptorFileName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -303,6 +322,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -147,6 +150,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +165,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +174,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +183,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repositories"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +192,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -193,6 +201,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -201,6 +210,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -209,6 +219,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -217,6 +228,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -225,6 +237,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
{
|
||||
@ -233,6 +246,7 @@ func abapEnvironmentPullGitRepoMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -144,6 +147,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_atcConfig"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -152,6 +156,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -160,6 +165,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
{
|
||||
@ -184,6 +192,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -198,6 +207,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -212,6 +222,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -220,6 +231,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -228,6 +240,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `ATCResults.xml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -236,6 +249,7 @@ func abapEnvironmentRunATCCheckMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -259,6 +263,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -267,6 +272,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Project Piper`,
|
||||
Aliases: []config.Alias{{Name: "gitUserName"}},
|
||||
},
|
||||
{
|
||||
@ -275,6 +281,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customVersionField"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -283,6 +290,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customVersionSection"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -291,6 +299,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customVersioningScheme"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -299,6 +308,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerVersionSource"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -307,6 +317,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -315,6 +326,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -323,6 +335,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -331,6 +344,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -339,6 +353,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -359,6 +374,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -367,6 +383,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -375,6 +392,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -383,6 +401,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `build_`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -391,6 +410,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -411,6 +431,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -419,6 +440,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_versioningTemplate"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -427,6 +449,7 @@ func artifactPrepareVersionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `cloud`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -160,6 +160,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `junit`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +169,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://github.com/bats-core/bats-core.git`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -176,6 +178,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `piper-bats`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -184,6 +187,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `src/test`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -192,6 +196,7 @@ func batsExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -128,6 +128,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
},
|
||||
{
|
||||
@ -136,6 +137,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -144,6 +146,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -152,6 +155,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_changeDocumentId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -160,6 +164,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +173,7 @@ func checkChangeInDevelopmentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
@ -306,6 +309,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -314,6 +318,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `!**/node_modules/**, !**/.xmake/**, !**/*_test.go, !**/vendor/**/*.go, **/*.html, **/*.xml, **/*.go, **/*.py, **/*.js, **/*.scala, **/*.ts`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -322,6 +327,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `5`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -330,6 +336,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -338,6 +345,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -346,6 +354,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -354,6 +363,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 3,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -374,6 +384,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -382,6 +393,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_preset"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -390,6 +402,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
Aliases: []config.Alias{{Name: "checkmarxProject"}, {Name: "checkMarxProjectName"}},
|
||||
},
|
||||
{
|
||||
@ -398,6 +411,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -406,6 +420,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
Aliases: []config.Alias{{Name: "checkmarxServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -414,6 +429,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `1`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -422,6 +438,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_teamId"),
|
||||
Aliases: []config.Alias{{Name: "checkmarxGroupId"}, {Name: "groupId"}},
|
||||
},
|
||||
{
|
||||
@ -430,6 +447,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_teamName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -450,6 +468,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -458,6 +477,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -466,6 +486,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -474,6 +495,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 100,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -482,6 +504,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 10,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -490,6 +513,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 100,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -498,6 +522,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `FAILURE`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -506,6 +531,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `percentage`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -135,6 +138,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -155,6 +159,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -175,6 +180,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -183,6 +189,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -191,6 +198,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -199,6 +207,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -207,6 +216,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKey"}, {Name: "cloudFoundry/serviceKeyName"}, {Name: "cfServiceKey"}},
|
||||
},
|
||||
{
|
||||
@ -215,6 +225,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceKeyConfig"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceKeyConfig"}},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
@ -154,6 +157,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -174,6 +178,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -194,6 +199,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -202,6 +208,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -210,6 +217,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -218,6 +226,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfService"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/service"}},
|
||||
},
|
||||
{
|
||||
@ -226,6 +235,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServicePlan"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/servicePlan"}},
|
||||
},
|
||||
{
|
||||
@ -234,6 +244,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceInstanceName"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstanceName"}},
|
||||
},
|
||||
{
|
||||
@ -242,6 +253,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceBroker"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceBroker"}},
|
||||
},
|
||||
{
|
||||
@ -250,6 +262,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfCreateServiceConfig"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/createServiceConfig"}},
|
||||
},
|
||||
{
|
||||
@ -258,6 +271,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfServiceTags"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceTags"}},
|
||||
},
|
||||
{
|
||||
@ -266,6 +280,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `service-manifest.yml`,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceManifest"}, {Name: "cfServiceManifest"}},
|
||||
},
|
||||
{
|
||||
@ -274,6 +289,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariables"}, {Name: "cfManifestVariables"}},
|
||||
},
|
||||
{
|
||||
@ -282,6 +298,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/manifestVariablesFiles"}, {Name: "cfManifestVariablesFiles"}},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
@ -132,6 +135,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -146,6 +150,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -160,6 +165,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func cloudFoundryCreateSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -132,6 +135,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfApiEndpoint"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -152,6 +156,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -172,6 +177,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -180,6 +186,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -188,6 +195,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -196,6 +204,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfServiceInstance"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/serviceInstance"}},
|
||||
},
|
||||
{
|
||||
@ -204,6 +213,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/cfDeleteServiceKeys"}},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
@ -132,6 +135,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -146,6 +150,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -160,6 +165,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfOrg"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func cloudFoundryDeleteSpaceMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_cfSpace"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/space"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -226,6 +230,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.cf.eu10.hana.ondemand.com`,
|
||||
Aliases: []config.Alias{{Name: "cfApiEndpoint"}, {Name: "cloudFoundry/apiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -234,6 +239,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_appName"),
|
||||
Aliases: []config.Alias{{Name: "cfAppName"}, {Name: "cloudFoundry/appName"}},
|
||||
},
|
||||
{
|
||||
@ -247,6 +253,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_artifactVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -255,6 +262,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfHome"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -263,6 +271,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfNativeDeployParameters"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -271,6 +280,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_cfPluginHome"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -279,6 +289,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_deployDockerImage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -287,6 +298,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_deployTool"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -300,6 +312,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -308,6 +321,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `standard`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -322,6 +336,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerPassword"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -336,6 +351,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerUsername"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -344,6 +360,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -352,6 +369,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_loginParameters"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -360,6 +378,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_manifest"),
|
||||
Aliases: []config.Alias{{Name: "cfManifest"}, {Name: "cloudFoundry/manifest"}},
|
||||
},
|
||||
{
|
||||
@ -368,6 +387,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "cfManifestVariables"}, {Name: "cloudFoundry/manifestVariables"}},
|
||||
},
|
||||
{
|
||||
@ -376,6 +396,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`manifest-variables.yml`},
|
||||
Aliases: []config.Alias{{Name: "cfManifestVariablesFiles"}, {Name: "cloudFoundry/manifestVariablesFiles"}},
|
||||
},
|
||||
{
|
||||
@ -384,6 +405,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `-f`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -392,6 +414,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_mtaExtensionDescriptor"),
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/mtaExtensionDescriptor"}},
|
||||
},
|
||||
{
|
||||
@ -400,6 +423,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "map[string]interface{}",
|
||||
Mandatory: false,
|
||||
|
||||
Aliases: []config.Alias{{Name: "cloudFoundry/mtaExtensionCredentials"}},
|
||||
},
|
||||
{
|
||||
@ -413,6 +437,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_mtaPath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -421,6 +446,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_org"),
|
||||
Aliases: []config.Alias{{Name: "cfOrg"}, {Name: "cloudFoundry/org"}},
|
||||
},
|
||||
{
|
||||
@ -441,6 +467,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -449,6 +476,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `blueGreenCheckScript.sh`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -457,6 +485,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 200,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -465,6 +494,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_space"),
|
||||
Aliases: []config.Alias{{Name: "cfSpace"}, {Name: "cloudFoundry/space"}},
|
||||
},
|
||||
{
|
||||
@ -485,6 +515,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -126,6 +126,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -134,6 +135,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_testConfiguration"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -142,6 +144,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_testDriver"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -150,6 +153,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_testImage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -158,6 +162,7 @@ func containerExecuteStructureTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `cst-report.json`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -127,6 +127,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
},
|
||||
{
|
||||
@ -140,6 +141,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_containerImage"),
|
||||
Aliases: []config.Alias{{Name: "dockerImage"}, {Name: "scanImage"}},
|
||||
},
|
||||
{
|
||||
@ -148,6 +150,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -156,6 +159,7 @@ func containerSaveImageMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
@ -179,6 +182,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "blackduckToken"}, {Name: "detectToken"}, {Name: "apiToken"}, {Name: "detect/apiToken"}},
|
||||
},
|
||||
{
|
||||
@ -187,6 +191,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_codeLocation"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -195,6 +200,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
Aliases: []config.Alias{{Name: "detect/projectName"}},
|
||||
},
|
||||
{
|
||||
@ -203,6 +209,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`signature`},
|
||||
Aliases: []config.Alias{{Name: "detect/scanners"}},
|
||||
},
|
||||
{
|
||||
@ -211,6 +218,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`.`},
|
||||
Aliases: []config.Alias{{Name: "detect/scanPaths"}},
|
||||
},
|
||||
{
|
||||
@ -219,6 +227,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `.`,
|
||||
Aliases: []config.Alias{{Name: "detect/dependencyPath"}},
|
||||
},
|
||||
{
|
||||
@ -227,6 +236,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "detect/unmap"}},
|
||||
},
|
||||
{
|
||||
@ -235,6 +245,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
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`},
|
||||
Aliases: []config.Alias{{Name: "detect/scanProperties"}},
|
||||
},
|
||||
{
|
||||
@ -243,6 +254,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
Aliases: []config.Alias{{Name: "detect/serverUrl"}},
|
||||
},
|
||||
{
|
||||
@ -251,6 +263,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "detect/groups"}},
|
||||
},
|
||||
{
|
||||
@ -259,6 +272,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`BLOCKER`},
|
||||
Aliases: []config.Alias{{Name: "detect/failOn"}},
|
||||
},
|
||||
{
|
||||
@ -267,6 +281,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `major`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -280,6 +295,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{{Name: "projectVersion"}, {Name: "detect/projectVersion"}},
|
||||
},
|
||||
{
|
||||
@ -288,6 +304,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STAGES", "STEPS", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -296,6 +313,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -304,6 +322,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -312,6 +331,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -320,6 +340,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -328,6 +349,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "detect/includedPackageManagers"}},
|
||||
},
|
||||
{
|
||||
@ -336,6 +358,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "detect/excludedPackageManagers"}},
|
||||
},
|
||||
{
|
||||
@ -344,6 +367,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "detect/mavenExcludedScopes"}},
|
||||
},
|
||||
{
|
||||
@ -352,6 +376,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "detect/detectTools"}},
|
||||
},
|
||||
{
|
||||
@ -360,6 +385,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -368,6 +394,7 @@ func detectExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -285,6 +285,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"},
|
||||
@ -299,6 +303,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -318,6 +323,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_authToken"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -326,6 +332,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -345,6 +352,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_githubToken"),
|
||||
Aliases: []config.Alias{{Name: "access_token"}},
|
||||
},
|
||||
{
|
||||
@ -353,6 +361,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -361,6 +370,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `./`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -369,6 +379,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pythonRequirementsFile"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -377,6 +388,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -385,6 +397,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Corporate Security Requirements, Audit All`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -393,6 +406,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Spot Checks of Each Category`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -401,6 +415,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pythonRequirementsInstallSuffix"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -409,6 +424,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `python3`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -417,6 +433,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -430,6 +447,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{{Name: "fortifyProjectVersion"}},
|
||||
},
|
||||
{
|
||||
@ -438,6 +456,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `./pom.xml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -446,6 +465,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `./setup.py`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -459,6 +479,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_commitId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -472,6 +493,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_commitMessage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -480,6 +502,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -493,6 +516,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -506,6 +530,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -514,6 +539,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `-Xmx4G -Xms512M`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -522,6 +548,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -530,6 +557,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `/transfer/reportDownload.html`,
|
||||
Aliases: []config.Alias{{Name: "fortifyReportDownloadEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -538,6 +566,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 30,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -546,6 +575,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -554,6 +584,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_translate"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -562,6 +593,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -570,6 +602,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -578,6 +611,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `/api/v1`,
|
||||
Aliases: []config.Alias{{Name: "fortifyApiEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -586,6 +620,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `PDF`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -594,6 +629,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`./lib`, `.`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -602,6 +638,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_artifactUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -610,6 +647,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -618,6 +656,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `/upload/resultFileUpload.html`,
|
||||
Aliases: []config.Alias{{Name: "fortifyFprUploadEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -626,6 +665,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `{{list .GroupID .ArtifactID | join "-" | trimAll "-"}}`,
|
||||
Aliases: []config.Alias{{Name: "fortifyProjectName"}},
|
||||
},
|
||||
{
|
||||
@ -634,6 +674,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -642,6 +683,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
Aliases: []config.Alias{{Name: "fortifyServerUrl"}, {Name: "sscUrl"}},
|
||||
},
|
||||
{
|
||||
@ -650,6 +692,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 1,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -658,6 +701,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 5,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -666,6 +710,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 1,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -674,6 +719,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `/download/currentStateFprDownload.html`,
|
||||
Aliases: []config.Alias{{Name: "fortifyFprDownloadEndpoint"}},
|
||||
},
|
||||
{
|
||||
@ -682,6 +728,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `major`,
|
||||
Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
|
||||
},
|
||||
{
|
||||
@ -690,6 +737,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `{{.Pip}} install --user .`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -698,6 +746,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 18,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -706,6 +755,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `SAP`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -714,6 +764,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -722,6 +773,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `.*Merge pull request #(\\d+) from.*`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -730,6 +782,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `maven`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -738,6 +791,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -746,6 +800,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -754,6 +809,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -762,6 +818,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -770,6 +827,7 @@ func fortifyExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
@ -170,6 +173,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_installCommand"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -178,6 +182,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_languageRunner"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -186,6 +191,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_runCommand"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -194,6 +200,7 @@ func gaugeExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_testOptions"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -133,6 +136,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -147,6 +151,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -155,6 +160,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -163,6 +169,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -171,6 +178,7 @@ func gctsCloneRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -141,6 +144,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -155,6 +159,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -163,6 +168,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -171,6 +177,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -179,6 +186,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -187,6 +195,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_remoteRepositoryURL"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -195,6 +204,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_role"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -203,6 +213,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_vSID"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -211,6 +222,7 @@ func gctsCreateRepositoryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `GIT`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -152,6 +155,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -166,6 +170,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -174,6 +179,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -182,6 +188,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -190,6 +197,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -198,6 +206,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_commit"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -206,6 +215,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_remoteRepositoryURL"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -214,6 +224,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_role"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -222,6 +233,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_vSID"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -230,6 +242,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `GIT`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -238,6 +251,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_branch"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -246,6 +260,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_scope"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -254,6 +269,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -262,6 +278,7 @@ func gctsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "map[string]interface{}",
|
||||
Mandatory: false,
|
||||
|
||||
Aliases: []config.Alias{{Name: "gctsRepositoryConfigurations"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -133,6 +136,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -147,6 +151,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -155,6 +160,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -163,6 +169,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -171,6 +178,7 @@ func gctsExecuteABAPUnitTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -140,6 +144,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -154,6 +159,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -162,6 +168,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -170,6 +177,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -178,6 +186,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -186,6 +195,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_commit"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -199,6 +209,7 @@ func gctsRollbackMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_githubPersonalAccessToken"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -134,6 +137,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -142,6 +146,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `master`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -155,6 +160,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -184,6 +192,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -192,6 +201,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -211,6 +221,7 @@ func githubCheckBranchProtectionMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_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",
|
||||
@ -132,6 +135,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -140,6 +144,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -148,6 +153,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: true,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +167,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -174,6 +181,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -193,6 +201,7 @@ func githubCommentIssueMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_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",
|
||||
@ -132,6 +135,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -140,6 +144,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -148,6 +153,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_bodyFilePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +167,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -174,6 +181,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -182,6 +190,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_title"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -201,6 +210,7 @@ func githubCreateIssueMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_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",
|
||||
@ -144,6 +147,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -152,6 +156,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_base"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -160,6 +165,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_body"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_head"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -189,6 +197,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -202,6 +211,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -210,6 +220,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -218,6 +229,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_title"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -237,6 +249,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
},
|
||||
{
|
||||
@ -245,6 +258,7 @@ func githubCreatePullRequestMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -157,6 +160,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -165,6 +169,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -173,6 +178,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -181,6 +187,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_assetPath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -189,6 +196,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `master`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -197,6 +205,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -205,6 +214,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -218,6 +228,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -226,6 +237,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -234,6 +246,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_releaseBodyHeader"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -247,6 +260,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -255,6 +269,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -274,6 +289,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_token"}},
|
||||
},
|
||||
{
|
||||
@ -282,6 +298,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://uploads.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubUploadUrl"}},
|
||||
},
|
||||
{
|
||||
@ -295,6 +312,7 @@ func githubPublishReleaseMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -145,6 +148,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubApiUrl"}},
|
||||
},
|
||||
{
|
||||
@ -158,6 +162,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_commitId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -166,6 +171,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_context"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -174,6 +180,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_description"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -187,6 +194,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -200,6 +208,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -208,6 +217,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_status"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -216,6 +226,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_targetUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -235,6 +246,7 @@ func githubSetCommitStatusMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "githubToken"}, {Name: "access_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"},
|
||||
},
|
||||
@ -155,6 +158,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `master`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -163,6 +167,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_commitMessage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -171,6 +176,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `https://github.com`,
|
||||
Aliases: []config.Alias{{Name: "githubServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -185,6 +191,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -199,6 +206,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -207,6 +215,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -215,6 +224,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -228,6 +238,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
},
|
||||
{
|
||||
@ -241,6 +252,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_containerImageNameTag"),
|
||||
Aliases: []config.Alias{{Name: "image"}, {Name: "containerImage"}},
|
||||
},
|
||||
{
|
||||
@ -249,6 +261,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_chartPath"),
|
||||
Aliases: []config.Alias{{Name: "helmChartPath"}},
|
||||
},
|
||||
{
|
||||
@ -257,6 +270,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -265,6 +279,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_deploymentName"),
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentName"}},
|
||||
},
|
||||
{
|
||||
@ -273,6 +288,7 @@ func gitopsUpdateDeploymentMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `kubectl`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -125,6 +128,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_configurationUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -139,6 +143,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_configurationUsername"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -153,6 +158,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_configurationPassword"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +167,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `./Dockerfile`,
|
||||
Aliases: []config.Alias{{Name: "dockerfile"}},
|
||||
},
|
||||
{
|
||||
@ -169,6 +176,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `.hadolint.yaml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +185,7 @@ func hadolintExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `hadolint.xml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -138,6 +141,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -152,6 +156,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -160,6 +165,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -168,6 +174,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -176,6 +183,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -184,6 +192,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -192,6 +201,7 @@ func integrationArtifactDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -139,6 +142,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -153,6 +157,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +166,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +175,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +184,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +193,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -193,6 +202,7 @@ func integrationArtifactDownloadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_downloadPath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -167,6 +170,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -181,6 +185,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -189,6 +194,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -197,6 +203,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -205,6 +212,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -213,6 +221,7 @@ func integrationArtifactGetMplStatusMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -167,6 +170,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -181,6 +185,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -189,6 +194,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -197,6 +203,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -205,6 +212,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -213,6 +221,7 @@ func integrationArtifactGetServiceEndpointMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -144,6 +147,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -158,6 +162,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -166,6 +171,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -174,6 +180,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -182,6 +189,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_platform"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -190,6 +198,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -198,6 +207,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -206,6 +216,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_parameterKey"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -214,6 +225,7 @@ func integrationArtifactUpdateConfigurationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_parameterValue"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -145,6 +148,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -159,6 +163,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -167,6 +172,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -175,6 +181,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -183,6 +190,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_integrationFlowName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -191,6 +199,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_packageId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -199,6 +208,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -207,6 +217,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_oAuthTokenProviderUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -215,6 +226,7 @@ func integrationArtifactUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -120,6 +120,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_input"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -128,6 +129,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_patch"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -136,6 +138,7 @@ func jsonApplyPatchMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_output"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -165,6 +168,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`--skip-tls-verify-pull`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -173,6 +177,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerBuildOptions"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -181,6 +186,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerImage"),
|
||||
Aliases: []config.Alias{{Name: "containerImageNameAndTag"}},
|
||||
},
|
||||
{
|
||||
@ -189,6 +195,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerImageName"),
|
||||
Aliases: []config.Alias{{Name: "dockerImageName"}},
|
||||
},
|
||||
{
|
||||
@ -202,6 +209,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerImageTag"),
|
||||
Aliases: []config.Alias{{Name: "artifactVersion"}},
|
||||
},
|
||||
{
|
||||
@ -210,6 +218,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `rm -f /kaniko/.docker/config.json`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -223,6 +232,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
},
|
||||
{
|
||||
@ -231,6 +241,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -255,6 +266,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -263,6 +275,7 @@ func kanikoExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Dockerfile`,
|
||||
Aliases: []config.Alias{{Name: "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"},
|
||||
@ -133,6 +136,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `npm install --quiet`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -141,6 +145,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Default: []string{`.`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -149,6 +154,7 @@ func karmaExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `npm run karma`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
},
|
||||
@ -184,6 +190,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentParameters"}},
|
||||
},
|
||||
{
|
||||
@ -192,6 +199,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_apiServer"),
|
||||
Aliases: []config.Alias{{Name: "k8sAPIServer"}},
|
||||
},
|
||||
{
|
||||
@ -200,6 +208,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_appTemplate"),
|
||||
Aliases: []config.Alias{{Name: "k8sAppTemplate"}},
|
||||
},
|
||||
{
|
||||
@ -208,6 +217,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_chartPath"),
|
||||
Aliases: []config.Alias{{Name: "helmChartPath"}},
|
||||
},
|
||||
{
|
||||
@ -222,6 +232,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerRegistryPassword"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -235,6 +246,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_containerRegistryUrl"),
|
||||
Aliases: []config.Alias{{Name: "dockerRegistryUrl"}},
|
||||
},
|
||||
{
|
||||
@ -249,6 +261,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_containerRegistryUser"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -257,6 +270,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `regsecret`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -265,6 +279,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -273,6 +288,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_deploymentName"),
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentName"}},
|
||||
},
|
||||
{
|
||||
@ -281,6 +297,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `kubectl`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -289,6 +306,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -297,6 +315,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 300,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -305,6 +324,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -318,6 +338,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_image"),
|
||||
Aliases: []config.Alias{{Name: "deployImage"}},
|
||||
},
|
||||
{
|
||||
@ -326,6 +347,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -334,6 +356,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -353,6 +376,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_kubeConfig"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -361,6 +385,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_kubeContext"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -374,6 +399,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_kubeToken"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -382,6 +408,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `default`,
|
||||
Aliases: []config.Alias{{Name: "helmDeploymentNamespace"}, {Name: "k8sDeploymentNamespace"}},
|
||||
},
|
||||
{
|
||||
@ -390,6 +417,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_tillerNamespace"),
|
||||
Aliases: []config.Alias{{Name: "helmTillerNamespace"}},
|
||||
},
|
||||
{
|
||||
@ -414,6 +442,7 @@ func kubernetesDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -126,6 +129,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_host"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -140,6 +144,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -154,6 +159,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -162,6 +168,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_file"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -170,6 +177,7 @@ func malwareExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `600`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -141,6 +144,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `pom.xml`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -149,6 +153,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -157,6 +162,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -165,6 +171,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -178,6 +185,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -186,6 +194,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -194,6 +203,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
},
|
||||
{
|
||||
@ -202,6 +212,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/createBOM"}},
|
||||
},
|
||||
{
|
||||
@ -226,6 +237,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryPassword"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -239,6 +251,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryUser"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -252,6 +265,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -265,6 +279,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_altDeploymentRepositoryID"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -273,6 +288,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -281,6 +297,7 @@ func mavenBuildMetadata() config.StepData {
|
||||
Scope: []string{"STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/publish"}},
|
||||
},
|
||||
},
|
||||
|
@ -125,6 +125,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STEPS", "STAGES"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 1,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -133,6 +134,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STEPS", "STAGES"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `1C`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -141,6 +143,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -149,6 +152,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -157,6 +161,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -165,6 +170,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -173,6 +179,7 @@ func mavenExecuteIntegrationMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
},
|
||||
},
|
||||
|
@ -143,6 +143,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -151,6 +152,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -159,6 +161,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -167,6 +170,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_spotBugsExcludeFilterFile"),
|
||||
Aliases: []config.Alias{{Name: "spotBugs/excludeFilterFile"}},
|
||||
},
|
||||
{
|
||||
@ -175,6 +179,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_spotBugsIncludeFilterFile"),
|
||||
Aliases: []config.Alias{{Name: "spotBugs/includeFilterFile"}},
|
||||
},
|
||||
{
|
||||
@ -183,6 +188,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{{Name: "spotBugs/maxAllowedViolations"}},
|
||||
},
|
||||
{
|
||||
@ -191,6 +197,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{{Name: "pmd/failurePriority"}},
|
||||
},
|
||||
{
|
||||
@ -199,6 +206,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 0,
|
||||
Aliases: []config.Alias{{Name: "pmd/maxAllowedViolations"}},
|
||||
},
|
||||
{
|
||||
@ -207,6 +215,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -215,6 +224,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -223,6 +233,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -231,6 +242,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
},
|
||||
{
|
||||
@ -239,6 +251,7 @@ func mavenExecuteStaticCodeChecksMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -129,6 +129,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pomPath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -137,6 +138,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -145,6 +147,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -153,6 +156,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +165,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +174,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -177,6 +183,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -185,6 +192,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -193,6 +201,7 @@ func mavenExecuteMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "maven/logSuccessfulMavenTransfers"}},
|
||||
},
|
||||
},
|
||||
|
@ -158,6 +158,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_mtarName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -166,6 +167,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_extensions"),
|
||||
Aliases: []config.Alias{{Name: "extension"}},
|
||||
},
|
||||
{
|
||||
@ -174,6 +176,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `CF`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -182,6 +185,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_applicationName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -190,6 +194,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
},
|
||||
{
|
||||
@ -198,6 +203,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -206,6 +212,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -214,6 +221,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -222,6 +230,7 @@ func mtaBuildMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -166,6 +166,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `**/*.postman_collection.json`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -174,6 +175,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_newmanRunCommand"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -182,6 +184,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`run`, `{{.NewmanCollection}}`, `--reporters`, `cli,junit,html`, `--reporter-junit-export`, `target/newman/TEST-{{.CollectionDisplayName}}.xml`, `--reporter-html-export`, `target/newman/TEST-{{.CollectionDisplayName}}.html`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -190,6 +193,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `npm install newman newman-reporter-html --global --quiet`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -198,6 +202,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_newmanEnvironment"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -206,6 +211,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_newmanGlobals"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -214,6 +220,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -222,6 +229,7 @@ func newmanExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
@ -158,6 +161,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `nexus3`,
|
||||
Aliases: []config.Alias{{Name: "nexus/version"}},
|
||||
},
|
||||
{
|
||||
@ -171,6 +175,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_format"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -184,6 +189,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_url"),
|
||||
Aliases: []config.Alias{{Name: "nexus/url"}},
|
||||
},
|
||||
{
|
||||
@ -192,6 +198,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_mavenRepository"),
|
||||
Aliases: []config.Alias{{Name: "nexus/mavenRepository"}, {Name: "nexus/repository"}},
|
||||
},
|
||||
{
|
||||
@ -200,6 +207,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_npmRepository"),
|
||||
Aliases: []config.Alias{{Name: "nexus/npmRepository"}},
|
||||
},
|
||||
{
|
||||
@ -208,6 +216,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_groupId"),
|
||||
Aliases: []config.Alias{{Name: "nexus/groupId"}},
|
||||
},
|
||||
{
|
||||
@ -216,6 +225,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_artifactId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -224,6 +234,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -232,6 +243,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -251,6 +263,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -270,6 +283,7 @@ func nexusUploadMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -115,6 +115,7 @@ func npmExecuteLintMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -123,6 +124,7 @@ func npmExecuteLintMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
},
|
||||
},
|
||||
|
@ -129,6 +129,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -137,6 +138,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -145,6 +147,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
Aliases: []config.Alias{{Name: "npm/defaultNpmRegistry"}},
|
||||
},
|
||||
{
|
||||
@ -153,6 +156,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -161,6 +165,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +174,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`deployment/**`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -177,6 +183,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -185,6 +192,7 @@ func npmExecuteScriptsMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -118,6 +118,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -126,6 +127,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `scanSummary.md`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -134,6 +136,7 @@ func pipelineCreateScanSummaryMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pipelineLink"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -211,6 +215,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: ``,
|
||||
Aliases: []config.Alias{{Name: "protecodeExcludeCVEs"}},
|
||||
},
|
||||
{
|
||||
@ -219,6 +224,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{{Name: "protecodeFailOnSevereVulnerabilities"}},
|
||||
},
|
||||
{
|
||||
@ -232,6 +238,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_scanImage"),
|
||||
Aliases: []config.Alias{{Name: "dockerImage"}},
|
||||
},
|
||||
{
|
||||
@ -245,6 +252,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerRegistryUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -264,6 +272,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_dockerConfigJSON"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -272,6 +281,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `binary`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -280,6 +290,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -288,6 +299,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -296,6 +308,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `60`,
|
||||
Aliases: []config.Alias{{Name: "protecodeTimeoutMinutes"}},
|
||||
},
|
||||
{
|
||||
@ -304,6 +317,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
Aliases: []config.Alias{{Name: "protecodeServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -312,6 +326,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `protecode_report.pdf`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -320,6 +335,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_fetchUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -328,6 +344,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_group"),
|
||||
Aliases: []config.Alias{{Name: "protecodeGroup"}},
|
||||
},
|
||||
{
|
||||
@ -336,6 +353,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{{Name: "reuseExisting"}},
|
||||
},
|
||||
{
|
||||
@ -356,6 +374,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{{Name: "user"}},
|
||||
},
|
||||
{
|
||||
@ -376,6 +395,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -389,6 +409,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{{Name: "artifactVersion"}},
|
||||
},
|
||||
{
|
||||
@ -397,6 +418,7 @@ func protecodeExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_pullRequestName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -219,6 +223,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `SonarCloud`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -227,6 +232,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_serverUrl"),
|
||||
Aliases: []config.Alias{{Name: "host"}, {Name: "sonarServerUrl"}},
|
||||
},
|
||||
{
|
||||
@ -246,6 +252,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_token"),
|
||||
Aliases: []config.Alias{{Name: "sonarToken"}},
|
||||
},
|
||||
{
|
||||
@ -254,6 +261,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_organization"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -262,6 +270,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -270,6 +279,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -278,6 +288,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STAGES", "STEPS", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `major`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -291,6 +302,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{{Name: "projectVersion"}},
|
||||
},
|
||||
{
|
||||
@ -299,6 +311,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STAGES", "STEPS", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -307,6 +320,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectKey"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -315,6 +329,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -323,6 +338,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -331,6 +347,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -339,6 +356,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "sonarProperties"}},
|
||||
},
|
||||
{
|
||||
@ -347,6 +365,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_branchName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -355,6 +374,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -363,6 +383,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_changeId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -371,6 +392,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_changeBranch"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -379,6 +401,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_changeTarget"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -387,6 +410,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `GitHub`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -400,6 +424,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_owner"),
|
||||
Aliases: []config.Alias{{Name: "githubOrg"}},
|
||||
},
|
||||
{
|
||||
@ -413,6 +438,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_repository"),
|
||||
Aliases: []config.Alias{{Name: "githubRepo"}},
|
||||
},
|
||||
{
|
||||
@ -432,6 +458,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_githubToken"),
|
||||
Aliases: []config.Alias{{Name: "access_token"}},
|
||||
},
|
||||
{
|
||||
@ -440,6 +467,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -448,6 +476,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -456,6 +485,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://api.github.com`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -464,6 +494,7 @@ func sonarExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
},
|
||||
|
@ -116,6 +116,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `plan`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -130,6 +131,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_terraformSecrets"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -138,6 +140,7 @@ func terraformExecuteMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -149,6 +149,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `origin/master`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
|
||||
},
|
||||
{
|
||||
@ -157,6 +158,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `HEAD`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
|
||||
},
|
||||
{
|
||||
@ -165,6 +167,7 @@ func transportRequestDocIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `ChangeDocument`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/changeDocumentLabel"}},
|
||||
},
|
||||
},
|
||||
|
@ -149,6 +149,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `origin/master`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/from"}},
|
||||
},
|
||||
{
|
||||
@ -157,6 +158,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `HEAD`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/git/to"}},
|
||||
},
|
||||
{
|
||||
@ -165,6 +167,7 @@ func transportRequestReqIDFromGitMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `TransportRequest`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/transportRequestLabel"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -141,6 +144,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `Deployed with Piper based on SAP Fiori tools`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -149,6 +153,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
},
|
||||
{
|
||||
@ -157,6 +162,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_client"),
|
||||
Aliases: []config.Alias{{Name: "changeManagement/client"}},
|
||||
},
|
||||
{
|
||||
@ -165,6 +171,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -173,6 +180,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -181,6 +189,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_applicationName"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -189,6 +198,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_abapPackage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -197,6 +207,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `node`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/osDeployUser"}},
|
||||
},
|
||||
{
|
||||
@ -205,6 +216,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `ui5-deploy.yaml`,
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployConfigFile"}, {Name: "cts/deployConfigFile"}},
|
||||
},
|
||||
{
|
||||
@ -213,6 +225,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_transportRequestId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -221,6 +234,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
|
||||
},
|
||||
{
|
||||
@ -229,6 +243,7 @@ func transportRequestUploadCTSMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "changeManagement/cts/deployToolDependencies"}},
|
||||
},
|
||||
},
|
||||
|
@ -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",
|
||||
@ -172,6 +175,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_endpoint"),
|
||||
Aliases: []config.Alias{{Name: "changeManagement/endpoint"}},
|
||||
},
|
||||
{
|
||||
@ -186,6 +190,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -200,6 +205,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -208,6 +214,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_applicationId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -221,6 +228,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_changeDocumentId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -234,6 +242,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_transportRequestId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -247,6 +256,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_filePath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -255,6 +265,7 @@ func transportRequestUploadSOLMANMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{{Name: "clientOpts"}, {Name: "changeManagement/clientOpts"}},
|
||||
},
|
||||
},
|
||||
|
@ -127,6 +127,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `npm install @ui5/uiveri5 --global --quiet`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -135,6 +136,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `/home/node/.npm-global/bin/uiveri5`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -143,6 +145,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: true,
|
||||
Default: []string{`--seleniumAddress=http://localhost:4444/wd/hub`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -151,6 +154,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_testOptions"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -159,6 +163,7 @@ func uiVeri5ExecuteTestsMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_testServerUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -133,6 +133,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `jenkins`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -147,6 +148,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_jenkinsUrl"),
|
||||
Aliases: []config.Alias{{Name: "url"}},
|
||||
},
|
||||
{
|
||||
@ -155,6 +157,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `_`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -169,6 +172,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_jenkinsUsername"),
|
||||
Aliases: []config.Alias{{Name: "userId"}},
|
||||
},
|
||||
{
|
||||
@ -183,6 +187,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_jenkinsToken"),
|
||||
Aliases: []config.Alias{{Name: "token"}},
|
||||
},
|
||||
{
|
||||
@ -191,6 +196,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_vaultAppRoleSecretTokenCredentialsId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -199,6 +205,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_vaultServerUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -207,6 +214,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_vaultNamespace"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -215,6 +223,7 @@ func vaultRotateSecretIdMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 15,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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"},
|
||||
@ -292,6 +296,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -300,6 +305,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `wss-unified-agent.jar`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -308,6 +314,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -316,6 +323,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://saas.whitesourcesoftware.com/agent`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -324,6 +332,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -332,6 +341,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{`unit-tests/pom.xml`, `integration-tests/pom.xml`},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -340,6 +350,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_buildDescriptorFile"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -353,6 +364,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_buildTool"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -361,6 +373,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `./wss-unified-agent.config`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -369,6 +382,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -377,6 +391,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_customScanVersion"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -385,6 +400,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `-1`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -393,6 +409,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `.`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -401,6 +418,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -409,6 +427,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -417,6 +436,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "[]string",
|
||||
Mandatory: false,
|
||||
Default: []string{},
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -425,6 +445,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_installCommand"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -433,6 +454,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://github.com/SAP/SapMachine/releases/download/sapmachine-11.0.2/sapmachine-jre-11.0.2_linux-x64_bin.tar.gz`,
|
||||
Aliases: []config.Alias{{Name: "whitesource/jreDownloadUrl"}},
|
||||
},
|
||||
{
|
||||
@ -441,6 +463,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -454,6 +477,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_orgToken"),
|
||||
Aliases: []config.Alias{{Name: "whitesourceOrgToken"}, {Name: "whitesource/orgToken"}},
|
||||
},
|
||||
{
|
||||
@ -462,6 +486,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_productName"),
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductName"}, {Name: "whitesource/productName"}},
|
||||
},
|
||||
{
|
||||
@ -470,6 +495,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_productToken"),
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductToken"}, {Name: "whitesource/productToken"}},
|
||||
},
|
||||
{
|
||||
@ -483,6 +509,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_version"),
|
||||
Aliases: []config.Alias{{Name: "productVersion"}, {Name: "whitesourceProductVersion"}, {Name: "whitesource/productVersion"}},
|
||||
},
|
||||
{
|
||||
@ -491,6 +518,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectName"),
|
||||
Aliases: []config.Alias{{Name: "whitesourceProjectName"}},
|
||||
},
|
||||
{
|
||||
@ -499,6 +527,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectToken"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -507,6 +536,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -515,6 +545,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_scanImage"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -523,6 +554,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -531,6 +563,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_scanImageRegistryUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -539,6 +572,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: true,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -547,6 +581,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `https://saas.whitesourcesoftware.com/api`,
|
||||
Aliases: []config.Alias{{Name: "whitesourceServiceUrl"}, {Name: "whitesource/serviceUrl"}},
|
||||
},
|
||||
{
|
||||
@ -555,6 +590,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "int",
|
||||
Mandatory: false,
|
||||
Default: 900,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -574,6 +610,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_userToken"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -582,6 +619,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS", "GENERAL"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `major`,
|
||||
Aliases: []config.Alias{{Name: "defaultVersioningModel"}},
|
||||
},
|
||||
{
|
||||
@ -590,6 +628,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `xlsx`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -598,6 +637,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `WhiteSource Security Vulnerability Report`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -606,6 +646,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_projectSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/projectSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -614,6 +655,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_globalSettingsFile"),
|
||||
Aliases: []config.Alias{{Name: "maven/globalSettingsFile"}},
|
||||
},
|
||||
{
|
||||
@ -622,6 +664,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_m2Path"),
|
||||
Aliases: []config.Alias{{Name: "maven/m2Path"}},
|
||||
},
|
||||
{
|
||||
@ -630,6 +673,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "STEPS", "STAGES", "PARAMETERS"},
|
||||
Type: "bool",
|
||||
Mandatory: false,
|
||||
Default: false,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -638,6 +682,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "GENERAL", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_defaultNpmRegistry"),
|
||||
Aliases: []config.Alias{{Name: "npm/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",
|
||||
@ -176,6 +179,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_deployOpts"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -184,6 +188,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `^.*xs bg-deploy -i (.*) -a.*$`,
|
||||
Aliases: []config.Alias{{Name: "deployIdLogPattern"}},
|
||||
},
|
||||
{
|
||||
@ -197,6 +202,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_mtaPath"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -205,6 +211,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: `NONE`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -213,6 +220,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `DEPLOY`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -226,6 +234,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_operationId"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -234,6 +243,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_apiUrl"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -248,6 +258,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_username"),
|
||||
Aliases: []config.Alias{{Name: "user"}},
|
||||
},
|
||||
{
|
||||
@ -262,6 +273,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_password"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -270,6 +282,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_org"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -278,6 +291,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_space"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -286,6 +300,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_loginOpts"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -294,6 +309,7 @@ func xsDeployMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_xsSessionFile"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -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 }}
|
||||
@ -208,6 +220,7 @@ func {{ .StepName }}Metadata() config.StepData {
|
||||
Scope: []string{{ "{" }}{{ range $notused, $scope := $value.Scope }}"{{ $scope }}",{{ end }}{{ "}" }},
|
||||
Type: "{{ $value.Type }}",
|
||||
Mandatory: {{ $value.Mandatory }},
|
||||
{{if $value.Default -}} Default: {{ $value.Default }}, {{- end}}
|
||||
Aliases: []config.Alias{{ "{" }}{{ range $notused, $alias := $value.Aliases }}{{ "{" }}Name: "{{ $alias.Name }}"{{ "}" }},{{ end }}{{ "}" }},
|
||||
},{{ end }}
|
||||
},
|
||||
@ -573,6 +586,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
|
||||
}
|
||||
|
@ -204,6 +204,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL","PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `val0`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -212,6 +213,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_param1"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -220,6 +222,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_param2"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
@ -203,6 +203,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL","PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: `val0`,
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -211,6 +212,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Default: os.Getenv("PIPER_param1"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
{
|
||||
@ -219,6 +221,7 @@ func testStepMetadata() config.StepData {
|
||||
Scope: []string{"PARAMETERS",},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Default: os.Getenv("PIPER_param2"),
|
||||
Aliases: []config.Alias{},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user