Skip to content

Errors reported only on non-0 exit code #3

@switchtrue

Description

@switchtrue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions