1
0
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:
Stephan Aßmus 2020-12-21 13:16:38 +01:00 committed by GitHub
parent cdb784aaf4
commit cb069148d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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`."