-1

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:

  1. set -e
  2. stage: test script:
    • execute_script_that_will_fail allow_failure: true but none of them works
KamilCuk
  • 96,430
  • 6
  • 33
  • 74

0 Answers0