[develop] Added return code to srw_build.sh script.#461
Conversation
|
Machine: jet |
|
Machine: hera |
|
The changes properly kill the Jenkins CI pipeline when an executable fails to build during the building phase. Will remove the incorrect component name and resubmit tests. |
|
Machine: jet |
|
Machine: hera |
|
Machine: hera |
|
Machine: jet |
christinaholtNOAA
left a comment
There was a problem hiding this comment.
This is an interesting concept. I'm not at all opposed, but do have a couple of comments/questions for thought.
I'm curious what mechanism is catching the error. There are some reserved linux exit codes, and I'm curious if this unpredictable exit code might cause any collisions with the standard ones, or even cause problems in properly handling the error.
|
Would it be more direct to simply check the status of the build command itself? If |
@christinaholtNOAA Thank you very much for the review! I have moved the return code handling from |
@christopherwharrop-noaa Thank you very much for your comment! I have removed the unnecessary grep for |
danielabdi-noaa
left a comment
There was a problem hiding this comment.
Looks good to me!
|
Machine: hera |
|
Machine: jet |
DESCRIPTION OF CHANGES:
The Jenkins build test doesn't exit with a return code, so if an executable fails to build, Jenkins will still continue to the test phase, leading to failures in the tests. Exiting with a return code has been added to the
.cicd/scripts/srw_build.shscript.Type of change
TESTS CONDUCTED:
devbuild.shandsrw_build.shISSUE:
Fixes #460
CHECKLIST