Skip to content

Commit

Permalink
Capture build fail in Jenkins pipeline when no error logs are produced (
Browse files Browse the repository at this point in the history
#3297)

The catch block for a build fail in the Jenkins pipeline did not capture
the case when there are no error logs produced.
This is has been rectified with this update. The compute build shell
script still could be enhanced by creating a `error.log` file in the log
directory.

Resolves #3296
  • Loading branch information
TerrenceMcGuinness-NOAA authored Feb 4, 2025
1 parent 4cc4d43 commit eee404c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ pipeline {
STATUS = 'Failed'
error("Failed to build global-workflow on ${Machine}")
}
STATUS = 'Failed'
error("Failed to build global-workflow on ${Machine} and no error.logs file found")
}
sh(script: './link_workflow.sh')
}
Expand Down

0 comments on commit eee404c

Please sign in to comment.