diff --git a/cmd/checkmarxExecuteScan_generated.go b/cmd/checkmarxExecuteScan_generated.go index 8631178c7..f0fcc2cb7 100644 --- a/cmd/checkmarxExecuteScan_generated.go +++ b/cmd/checkmarxExecuteScan_generated.go @@ -201,6 +201,7 @@ func (p *checkmarxExecuteScanReports) persist(stepConfig checkmarxExecuteScanOpt gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/detectExecuteScan_generated.go b/cmd/detectExecuteScan_generated.go index c4ab1463a..674851ee4 100644 --- a/cmd/detectExecuteScan_generated.go +++ b/cmd/detectExecuteScan_generated.go @@ -121,6 +121,7 @@ func (p *detectExecuteScanReports) persist(stepConfig detectExecuteScanOptions, gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/fortifyExecuteScan_generated.go b/cmd/fortifyExecuteScan_generated.go index 6d6bb83d8..6117016f6 100644 --- a/cmd/fortifyExecuteScan_generated.go +++ b/cmd/fortifyExecuteScan_generated.go @@ -171,6 +171,7 @@ func (p *fortifyExecuteScanReports) persist(stepConfig fortifyExecuteScanOptions gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/gaugeExecuteTests_generated.go b/cmd/gaugeExecuteTests_generated.go index d7d20b735..7b0193509 100644 --- a/cmd/gaugeExecuteTests_generated.go +++ b/cmd/gaugeExecuteTests_generated.go @@ -81,6 +81,7 @@ func (p *gaugeExecuteTestsReports) persist(stepConfig gaugeExecuteTestsOptions, gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/golangBuild_generated.go b/cmd/golangBuild_generated.go index 654ebf5c8..1924a99e3 100644 --- a/cmd/golangBuild_generated.go +++ b/cmd/golangBuild_generated.go @@ -95,6 +95,7 @@ func (p *golangBuildReports) persist(stepConfig golangBuildOptions, gcpJsonKeyFi gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/karmaExecuteTests_generated.go b/cmd/karmaExecuteTests_generated.go index b96b17652..7e8d4caeb 100644 --- a/cmd/karmaExecuteTests_generated.go +++ b/cmd/karmaExecuteTests_generated.go @@ -49,6 +49,7 @@ func (p *karmaExecuteTestsReports) persist(stepConfig karmaExecuteTestsOptions, gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/malwareExecuteScan_generated.go b/cmd/malwareExecuteScan_generated.go index 52aaa0c7a..4f0ce5c38 100644 --- a/cmd/malwareExecuteScan_generated.go +++ b/cmd/malwareExecuteScan_generated.go @@ -54,6 +54,7 @@ func (p *malwareExecuteScanReports) persist(stepConfig malwareExecuteScanOptions gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/mavenBuild_generated.go b/cmd/mavenBuild_generated.go index 20ad77bef..5336296e6 100644 --- a/cmd/mavenBuild_generated.go +++ b/cmd/mavenBuild_generated.go @@ -89,6 +89,7 @@ func (p *mavenBuildReports) persist(stepConfig mavenBuildOptions, gcpJsonKeyFile gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/mavenExecuteIntegration_generated.go b/cmd/mavenExecuteIntegration_generated.go index ba93d6f47..c88648fad 100644 --- a/cmd/mavenExecuteIntegration_generated.go +++ b/cmd/mavenExecuteIntegration_generated.go @@ -51,6 +51,7 @@ func (p *mavenExecuteIntegrationReports) persist(stepConfig mavenExecuteIntegrat gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/mtaBuild_generated.go b/cmd/mtaBuild_generated.go index 3a327cfb0..a486c8b98 100644 --- a/cmd/mtaBuild_generated.go +++ b/cmd/mtaBuild_generated.go @@ -98,6 +98,7 @@ func (p *mtaBuildReports) persist(stepConfig mtaBuildOptions, gcpJsonKeyFilePath gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/newmanExecute_generated.go b/cmd/newmanExecute_generated.go index 026a40de8..05dcf902e 100644 --- a/cmd/newmanExecute_generated.go +++ b/cmd/newmanExecute_generated.go @@ -85,6 +85,7 @@ func (p *newmanExecuteReports) persist(stepConfig newmanExecuteOptions, gcpJsonK gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/npmExecuteScripts_generated.go b/cmd/npmExecuteScripts_generated.go index 80d3905e1..9388f2476 100644 --- a/cmd/npmExecuteScripts_generated.go +++ b/cmd/npmExecuteScripts_generated.go @@ -87,6 +87,7 @@ func (p *npmExecuteScriptsReports) persist(stepConfig npmExecuteScriptsOptions, gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/protecodeExecuteScan_generated.go b/cmd/protecodeExecuteScan_generated.go index a0a446d3e..ca9feb643 100644 --- a/cmd/protecodeExecuteScan_generated.go +++ b/cmd/protecodeExecuteScan_generated.go @@ -117,6 +117,7 @@ func (p *protecodeExecuteScanReports) persist(stepConfig protecodeExecuteScanOpt gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/sonarExecuteScan_generated.go b/cmd/sonarExecuteScan_generated.go index 5a593b266..cd58ae435 100644 --- a/cmd/sonarExecuteScan_generated.go +++ b/cmd/sonarExecuteScan_generated.go @@ -70,6 +70,7 @@ func (p *sonarExecuteScanReports) persist(stepConfig sonarExecuteScanOptions, gc gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/uiVeri5ExecuteTests_generated.go b/cmd/uiVeri5ExecuteTests_generated.go index b3422f8f8..a41c12b0e 100644 --- a/cmd/uiVeri5ExecuteTests_generated.go +++ b/cmd/uiVeri5ExecuteTests_generated.go @@ -47,6 +47,7 @@ func (p *uiVeri5ExecuteTestsReports) persist(stepConfig uiVeri5ExecuteTestsOptio gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/cmd/whitesourceExecuteScan_generated.go b/cmd/whitesourceExecuteScan_generated.go index dc7d291fa..3b87bb397 100644 --- a/cmd/whitesourceExecuteScan_generated.go +++ b/cmd/whitesourceExecuteScan_generated.go @@ -166,6 +166,7 @@ func (p *whitesourceExecuteScanReports) persist(stepConfig whitesourceExecuteSca gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/pkg/generator/helper/resources.go b/pkg/generator/helper/resources.go index a70cffe4c..881f86893 100644 --- a/pkg/generator/helper/resources.go +++ b/pkg/generator/helper/resources.go @@ -230,6 +230,7 @@ func (p *{{ .StepName }}{{ .Name | title}}) persist(stepConfig {{ .StepName }}Op gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/pkg/generator/helper/resources_test.go b/pkg/generator/helper/resources_test.go index cdcf34928..95a1a5eac 100644 --- a/pkg/generator/helper/resources_test.go +++ b/pkg/generator/helper/resources_test.go @@ -136,6 +136,7 @@ func (p *testStepReports) persist(stepConfig testStepOptions, gcpJsonKeyFilePath gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/pkg/generator/helper/testdata/TestProcessMetaFiles/custom_step_code_generated.golden b/pkg/generator/helper/testdata/TestProcessMetaFiles/custom_step_code_generated.golden index cada2cdd5..f30fb1d95 100644 --- a/pkg/generator/helper/testdata/TestProcessMetaFiles/custom_step_code_generated.golden +++ b/pkg/generator/helper/testdata/TestProcessMetaFiles/custom_step_code_generated.golden @@ -49,6 +49,7 @@ func (p *testStepReports) persist(stepConfig testStepOptions, gcpJsonKeyFilePath gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem() diff --git a/pkg/generator/helper/testdata/TestProcessMetaFiles/step_code_generated.golden b/pkg/generator/helper/testdata/TestProcessMetaFiles/step_code_generated.golden index 510e07827..17be3be55 100644 --- a/pkg/generator/helper/testdata/TestProcessMetaFiles/step_code_generated.golden +++ b/pkg/generator/helper/testdata/TestProcessMetaFiles/step_code_generated.golden @@ -48,6 +48,7 @@ func (p *testStepReports) persist(stepConfig testStepOptions, gcpJsonKeyFilePath gcsClient, err := gcs.NewClient(gcs.WithEnvVars(envVars)) if err != nil { log.Entry().Errorf("creation of GCS client failed: %v", err) + return } defer gcsClient.Close() structVal := reflect.ValueOf(&stepConfig).Elem()