Skip to content

Commit

Permalink
exit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Aug 8, 2023
1 parent 1e40f3d commit 4b290bf
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions Actions/AddExistingApp/AddExistingApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ try {
}
catch {
Write-Host "::ERROR::AddExistingApp action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/AnalyzeTests/AnalyzeTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ try {
}
catch {
Write-Host "::ERROR::AnalyzeTests action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/CalculateArtifactNames/CalculateArtifactNames.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ try {
}
catch {
Write-Host "::ERROR::AnalyzeTests action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
}
1 change: 1 addition & 0 deletions Actions/CheckForUpdates/CheckForUpdates.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ try {
}
catch {
Write-Host "::ERROR::CheckForUpdates action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/CreateApp/CreateApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ try {
}
catch {
Write-Host "::ERROR::CreateApp action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ try {
}
catch {
Write-Host "::ERROR::CreateDevelopmentEnvironment action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/CreateReleaseNotes/CreateReleaseNotes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ try {
}
catch {
Write-Host "::ERROR::CreateReleaseNotes action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/Deliver/Deliver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ try {
}
catch {
Write-Host "::ERROR::Deliver action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/Deploy/Deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ try {
}
catch {
Write-Host "::ERROR::Deploy action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/DetermineArtifactUrl/DetermineArtifactUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ try {
}
catch {
Write-Host "::ERROR::DetermineArtifactUrl action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ try {
}
catch {
Write-Host "::ERROR::DetermineProjectsToBuild action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,5 @@ try {
}
catch {
Write-Host "::ERROR::DownloadProjectDependencies action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
}
1 change: 1 addition & 0 deletions Actions/IncrementVersionNumber/IncrementVersionNumber.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ try {
}
catch {
Write-Host "::ERROR::IncrementVersionNumber action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/PipelineCleanup/PipelineCleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ try {
}
catch {
Write-Host "::ERROR::PipelineCleanup action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/ReadSecrets/ReadSecrets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ try {
}
catch {
Write-Host "::ERROR::ReadSecrets action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/ReadSettings/ReadSettings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ try {
}
catch {
Write-Host "::ERROR::ReadSettings action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/RunPipeline/RunPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ try {
}
catch {
Write-Host "::ERROR::RunPipeline action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
1 change: 1 addition & 0 deletions Actions/Sign/Sign.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ try {
}
catch {
Write-Host "::ERROR::Sign action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down
2 changes: 1 addition & 1 deletion Actions/VerifyPRChanges/VerifyPRChanges.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ try {
}
catch {
Write-Host "::ERROR::VerifyPRChanges action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
throw
$host.SetShouldExit(1)
}
1 change: 1 addition & 0 deletions Actions/WorkflowInitialize/WorkflowInitialize.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ try {
}
catch {
Write-Host "::ERROR::WorkflowInitialize action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
if ($bcContainerHelperPath) {
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
Expand Down
1 change: 1 addition & 0 deletions Actions/WorkflowPostProcess/WorkflowPostProcess.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ try {
}
catch {
Write-Host "::ERROR::WorkflowPostProcess action failed.$([environment]::Newline)Error: $($_.Exception.Message)$([environment]::Newline)Stacktrace: $($_.scriptStackTrace)"
$host.SetShouldExit(1)
TrackException -telemetryScope $telemetryScope -errorRecord $_
}
finally {
Expand Down

0 comments on commit 4b290bf

Please sign in to comment.