5a8bc204b7
The builds were erroring only in CircleCI, when run manually the same command worked fine. I reached out to CircleCI support, and got the following message: >>> The reason you are seeing this error when running in CircleCI and not while debugging with SSH is due to the -e set in #!/bin/bash -eo pipefail at the beginning of the shell while the debugging shell would just be #!/bin/bash. The -e sets to exit to the shell when any non zero [0] exit code status. Since you say the command works when debugging with SSH you can set the shell to use /bin/bash -o pipefail using a default shell options. Here is an example: - run: name: <<command name>> shell: /bin/bash -o pipefail command: | << some commands>> Notice that I still added -o pipefail as that prevents errors in a pipeline from being masked. |
||
---|---|---|
.. | ||
config.yml | ||
gen.go | ||
template.yml |