Skip to content
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

Return non-zero if any errors occur #53

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

andersonvom
Copy link

Builds currently succeed whenever using the --download-artifacts flag, because exit_code is overridden with the return value of curl.

This initiates exit_code=0 and ensures that any errors will be accumulated to it as the build progresses. If any errors occur, either during the build or the downloading of artifacts, exit_code will have a non-zero value, which will ensure the script exits with an error code.

Builds currently succeed whenever using the `--download-artifacts` flag,
because `exit_code` is overridden with the return value of `curl`.

This initiates `exit_code=0` and ensures that any errors will be
accumulated to it as the build progresses. If any errors occur, either
during the build or the downloading of artifacts, `exit_code` will have
a non-zero value, which will ensure the script exits with an error code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant