mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
WS: Provide missing aliases (#2485)
This commit is contained in:
parent
cdb784aaf4
commit
cb069148d2
@ -201,7 +201,6 @@ func addWhitesourceExecuteScanFlags(cmd *cobra.Command, stepConfig *whitesourceE
|
||||
cmd.MarkFlagRequired("buildTool")
|
||||
cmd.MarkFlagRequired("orgToken")
|
||||
cmd.MarkFlagRequired("userToken")
|
||||
cmd.MarkFlagRequired("productName")
|
||||
}
|
||||
|
||||
// retrieve step metadata
|
||||
@ -411,7 +410,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
ResourceRef: []config.ResourceReference{},
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductName"}},
|
||||
},
|
||||
{
|
||||
@ -484,7 +483,7 @@ func whitesourceExecuteScanMetadata() config.StepData {
|
||||
Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: false,
|
||||
Aliases: []config.Alias{},
|
||||
Aliases: []config.Alias{{Name: "whitesourceProductToken"}},
|
||||
},
|
||||
{
|
||||
Name: "agentParameters",
|
||||
|
@ -239,7 +239,6 @@ spec:
|
||||
This parameter is mandatory if the parameter `createProductFromPipeline` is set to `true`
|
||||
and the WhiteSource product does not yet exist.
|
||||
It is also mandatory if the parameter `productToken` is not provided."
|
||||
mandatory: true
|
||||
scope:
|
||||
- GENERAL
|
||||
- PARAMETERS
|
||||
@ -323,6 +322,8 @@ spec:
|
||||
- STEPS
|
||||
default: "tests/**/*.py **/src/test/**/*.java"
|
||||
- name: productToken
|
||||
aliases:
|
||||
- name: whitesourceProductToken
|
||||
type: string
|
||||
description: "Token of the WhiteSource product to be created and used for results aggregation,
|
||||
usually determined automatically. Can optionally be provided as an alternative to `productName`."
|
||||
|
Loading…
x
Reference in New Issue
Block a user