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

Errors reported only on non-0 exit code #3

Open
switchtrue opened this issue Aug 5, 2016 · 0 comments
Open

Errors reported only on non-0 exit code #3

switchtrue opened this issue Aug 5, 2016 · 0 comments

Comments

@switchtrue
Copy link
Owner

The errors are only reported in the email if the script exits with a non-zero exit code. It is possible for scripts to have errors but not properly terminate with an appropriate exit code leading to a mis-leading email report that the job completed successfully.

For example with the following script, if the frosty user does not have permissions on /svn/svndata the job complete successfully even though an error is thrown in the svnadmin line.

#!/bin/sh

for D in `find /svn/svndata/* -maxdepth 0 -type d`
do
  REPONAME=`basename ${D}`
  svnadmin hotcopy ${D} $FROSTY_JOB_ARTIFACTS_DIR/$REPONAME --clean-logs
done
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

No branches or pull requests

1 participant