1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-16 05:16:08 +02:00

fix: prevent endless loop in exit handler (#3363)

* do not fatal in exit handler

* update generated sources

* update golden sources

* update generated sources
This commit is contained in:
Christopher Fenner 2021-12-15 14:26:23 +01:00 committed by GitHub
parent 278c47b808
commit b7e1d28675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 43 additions and 43 deletions

View File

@ -49,7 +49,7 @@ func (p *abapAddonAssemblyKitCheckCVsCommonPipelineEnvironment) persist(path, re
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -49,7 +49,7 @@ func (p *abapAddonAssemblyKitCheckPVCommonPipelineEnvironment) persist(path, res
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -48,7 +48,7 @@ func (p *abapAddonAssemblyKitCreateTargetVectorCommonPipelineEnvironment) persis
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -48,7 +48,7 @@ func (p *abapAddonAssemblyKitRegisterPackagesCommonPipelineEnvironment) persist(
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -50,7 +50,7 @@ func (p *abapAddonAssemblyKitReleasePackagesCommonPipelineEnvironment) persist(p
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -50,7 +50,7 @@ func (p *abapAddonAssemblyKitReserveNextPackagesCommonPipelineEnvironment) persi
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -54,7 +54,7 @@ func (p *abapEnvironmentAssembleConfirmCommonPipelineEnvironment) persist(path,
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -55,7 +55,7 @@ func (p *abapEnvironmentAssemblePackagesCommonPipelineEnvironment) persist(path,
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -65,7 +65,7 @@ func (p *abapEnvironmentBuildCommonPipelineEnvironment) persist(path, resourceNa
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -77,7 +77,7 @@ func (p *artifactPrepareVersionCommonPipelineEnvironment) persist(path, resource
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -54,7 +54,7 @@ func (i *batsExecuteTestsInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -167,7 +167,7 @@ func (i *checkmarxExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -95,7 +95,7 @@ func (i *cloudFoundryDeployInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -57,7 +57,7 @@ func (p *cnbBuildCommonPipelineEnvironment) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -89,7 +89,7 @@ func (i *detectExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -137,7 +137,7 @@ func (i *fortifyExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -53,7 +53,7 @@ func (i *gaugeExecuteTestsInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -48,7 +48,7 @@ func (p *integrationArtifactGetMplStatusCommonPipelineEnvironment) persist(path,
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -46,7 +46,7 @@ func (p *integrationArtifactGetServiceEndpointCommonPipelineEnvironment) persist
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -50,7 +50,7 @@ func (p *isChangeInDevelopmentCommonPipelineEnvironment) persist(path, resourceN
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -60,7 +60,7 @@ func (p *kanikoExecuteCommonPipelineEnvironment) persist(path, resourceName stri
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -61,7 +61,7 @@ func (p *mavenBuildCommonPipelineEnvironment) persist(path, resourceName string)
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -70,7 +70,7 @@ func (p *mtaBuildCommonPipelineEnvironment) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -57,7 +57,7 @@ func (i *newmanExecuteInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -57,7 +57,7 @@ func (p *npmExecuteScriptsCommonPipelineEnvironment) persist(path, resourceName
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -86,7 +86,7 @@ func (i *protecodeExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -92,7 +92,7 @@ func (i *sonarExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -51,7 +51,7 @@ func (p *terraformExecuteCommonPipelineEnvironment) persist(path, resourceName s
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -47,7 +47,7 @@ func (p *transportRequestDocIDFromGitCommonPipelineEnvironment) persist(path, re
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -47,7 +47,7 @@ func (p *transportRequestReqIDFromGitCommonPipelineEnvironment) persist(path, re
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -56,7 +56,7 @@ func (p *transportRequestUploadCTSCommonPipelineEnvironment) persist(path, resou
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -57,7 +57,7 @@ func (p *transportRequestUploadRFCCommonPipelineEnvironment) persist(path, resou
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -54,7 +54,7 @@ func (p *transportRequestUploadSOLMANCommonPipelineEnvironment) persist(path, re
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -88,7 +88,7 @@ func (p *whitesourceExecuteScanCommonPipelineEnvironment) persist(path, resource
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}
@ -135,7 +135,7 @@ func (i *whitesourceExecuteScanInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -55,7 +55,7 @@ func (p *xsDeployCommonPipelineEnvironment) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}

View File

@ -63,7 +63,7 @@ func (p *{{ .StepName }}{{ .Name | title}}) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}`
@ -165,7 +165,7 @@ func (i *{{ .StepName }}{{ .Name | title}}) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}`

View File

@ -78,7 +78,7 @@ func (i *TestStepTestInflux) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}`,
},

View File

@ -60,7 +60,7 @@ func (p *testStepCommonPipelineEnvironment) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}
@ -95,7 +95,7 @@ func (i *testStepInfluxTest) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}

View File

@ -59,7 +59,7 @@ func (p *testStepCommonPipelineEnvironment) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Piper environment")
log.Entry().Error("failed to persist Piper environment")
}
}
@ -94,7 +94,7 @@ func (i *testStepInfluxTest) persist(path, resourceName string) {
}
}
if errCount > 0 {
log.Entry().Fatal("failed to persist Influx environment")
log.Entry().Error("failed to persist Influx environment")
}
}