You've already forked sap-jenkins-library
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:
@@ -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.")
|
||||
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user