-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[develop] Added return code to srw_build.sh script. #461
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.sh
script.Type of change
TESTS CONDUCTED:
devbuild.sh
andsrw_build.sh
ISSUE:
Fixes #460
CHECKLIST