Save eb log on failures
Created by: bedroge
This will check the exit code of the eb
command, and in case of failures it will copy the eb log to the working directory of the job. Furthermore, it will set the exit code of the job to the exit code of the eb
command, to make sure that the job status is also set to FAILED
in case of errors.