1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

some fixes

This commit is contained in:
Googlom
2025-07-15 15:30:33 +03:00
parent c19ceb9779
commit f01b6dfd06
2 changed files with 4 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ func (cfg *{{ .StepName }}Options) readInValues() error {
// {{.CobraCmdFuncName}} {{.Short}}
func {{.CobraCmdFuncName}}() *cobra.Command {
var stepConfig {{.StepName}}Options
var commonPipelineEnvironment golangBuildCommonPipelineEnvironment
var commonPipelineEnvironment {{ .StepName }}CommonPipelineEnvironment
var dummyTelemetryData telemetry.CustomData
var {{.StepName}}Cmd = &cobra.Command{
@@ -131,7 +131,7 @@ func {{.CobraCmdFuncName}}() *cobra.Command {
return {{.StepName}}Cmd
}
func defineInputSources(stepCmd *cobra.Command, stepConfig *golangBuildOptions) {
func defineInputSources(stepCmd *cobra.Command, stepConfig *{{ .StepName }}Options) {
// General configuration
stepCmd.Flags().BoolVarP(&stepConfig.Verbose, "verbose", "v", false, "Enables verbose output for the step.")

View File

@@ -172,6 +172,7 @@ func (i *{{ .StepName }}{{ .Name | title}}) persist(path, resourceName string) {
// StructString returns the golang coding for the struct definition of the InfluxResource
func (i *InfluxResource) StructString() (string, error) {
return "", nil // disable this resource
funcMap := template.FuncMap{
"title": piperutils.Title,
"golangName": golangName,
@@ -254,6 +255,7 @@ func (p *ReportsResource) StructName() string {
// StructString returns the golang coding for the struct definition of the environment resource
func (p *ReportsResource) StructString() (string, error) {
return "", nil // disable this resource
funcMap := template.FuncMap{
"title": piperutils.Title,
"golangName": golangName,