Due to use of tee with pipe in unix shell script, status of the script execution is muted.
/usr/bin/expect -f /project/projectdryrun "project" ${ACCOUNT_ALIAS} | tee -a /var/log/project.
I have tried using:
/usr/bin/expect -f /project/projectdryrun "project" ${ACCOUNT_ALIAS} | tee -a /var/log/project &&[ $PIPESTATUS -eq 0 ] || echo $PIPESTATUS
and linux commands like:
- set -e
- stage: test
script:
- execute_script_that_will_fail allow_failure: true but none of them works