mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
refactor(protecode): remove unused parameter (#1899)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
415efb066a
commit
a7213587cb
@ -23,7 +23,6 @@ type protecodeExecuteScanOptions struct {
|
|||||||
CleanupMode string `json:"cleanupMode,omitempty"`
|
CleanupMode string `json:"cleanupMode,omitempty"`
|
||||||
FilePath string `json:"filePath,omitempty"`
|
FilePath string `json:"filePath,omitempty"`
|
||||||
IncludeLayers bool `json:"includeLayers,omitempty"`
|
IncludeLayers bool `json:"includeLayers,omitempty"`
|
||||||
AddSideBarLink bool `json:"addSideBarLink,omitempty"`
|
|
||||||
TimeoutMinutes string `json:"timeoutMinutes,omitempty"`
|
TimeoutMinutes string `json:"timeoutMinutes,omitempty"`
|
||||||
ServerURL string `json:"serverUrl,omitempty"`
|
ServerURL string `json:"serverUrl,omitempty"`
|
||||||
ReportFileName string `json:"reportFileName,omitempty"`
|
ReportFileName string `json:"reportFileName,omitempty"`
|
||||||
@ -148,7 +147,6 @@ func addProtecodeExecuteScanFlags(cmd *cobra.Command, stepConfig *protecodeExecu
|
|||||||
cmd.Flags().StringVar(&stepConfig.CleanupMode, "cleanupMode", `binary`, "Decides which parts are removed from the Protecode backend after the scan")
|
cmd.Flags().StringVar(&stepConfig.CleanupMode, "cleanupMode", `binary`, "Decides which parts are removed from the Protecode backend after the scan")
|
||||||
cmd.Flags().StringVar(&stepConfig.FilePath, "filePath", os.Getenv("PIPER_filePath"), "The path to the file from local workspace to scan with Protecode")
|
cmd.Flags().StringVar(&stepConfig.FilePath, "filePath", os.Getenv("PIPER_filePath"), "The path to the file from local workspace to scan with Protecode")
|
||||||
cmd.Flags().BoolVar(&stepConfig.IncludeLayers, "includeLayers", false, "Flag if the docker layers should be included")
|
cmd.Flags().BoolVar(&stepConfig.IncludeLayers, "includeLayers", false, "Flag if the docker layers should be included")
|
||||||
cmd.Flags().BoolVar(&stepConfig.AddSideBarLink, "addSideBarLink", true, "Whether to create a side bar link pointing to the report produced by Protecode or not")
|
|
||||||
cmd.Flags().StringVar(&stepConfig.TimeoutMinutes, "timeoutMinutes", `60`, "The timeout to wait for the scan to finish")
|
cmd.Flags().StringVar(&stepConfig.TimeoutMinutes, "timeoutMinutes", `60`, "The timeout to wait for the scan to finish")
|
||||||
cmd.Flags().StringVar(&stepConfig.ServerURL, "serverUrl", os.Getenv("PIPER_serverUrl"), "The URL to the Protecode backend")
|
cmd.Flags().StringVar(&stepConfig.ServerURL, "serverUrl", os.Getenv("PIPER_serverUrl"), "The URL to the Protecode backend")
|
||||||
cmd.Flags().StringVar(&stepConfig.ReportFileName, "reportFileName", `protecode_report.pdf`, "The file name of the report to be created")
|
cmd.Flags().StringVar(&stepConfig.ReportFileName, "reportFileName", `protecode_report.pdf`, "The file name of the report to be created")
|
||||||
@ -232,14 +230,6 @@ func protecodeExecuteScanMetadata() config.StepData {
|
|||||||
Mandatory: false,
|
Mandatory: false,
|
||||||
Aliases: []config.Alias{},
|
Aliases: []config.Alias{},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "addSideBarLink",
|
|
||||||
ResourceRef: []config.ResourceReference{},
|
|
||||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
|
||||||
Type: "bool",
|
|
||||||
Mandatory: false,
|
|
||||||
Aliases: []config.Alias{},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "timeoutMinutes",
|
Name: "timeoutMinutes",
|
||||||
ResourceRef: []config.ResourceReference{},
|
ResourceRef: []config.ResourceReference{},
|
||||||
|
@ -79,14 +79,6 @@ spec:
|
|||||||
- PARAMETERS
|
- PARAMETERS
|
||||||
- STAGES
|
- STAGES
|
||||||
- STEPS
|
- STEPS
|
||||||
- name: addSideBarLink
|
|
||||||
type: bool
|
|
||||||
description: Whether to create a side bar link pointing to the report produced by Protecode or not
|
|
||||||
scope:
|
|
||||||
- PARAMETERS
|
|
||||||
- STAGES
|
|
||||||
- STEPS
|
|
||||||
default: true
|
|
||||||
- name: timeoutMinutes
|
- name: timeoutMinutes
|
||||||
aliases:
|
aliases:
|
||||||
- name: protecodeTimeoutMinutes
|
- name: protecodeTimeoutMinutes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user