i tried to create a gitlab ci/cd pipeline for my application in gcp kubernetes , code worked, docker image created but at last stage deployment failed with following error ?
share your views on this error.
Hello vijay-33567,
Here is a Stackoverflow post with the same concern and as per Charles Duffy:
"
If running with set -o pipefail
, a failure at any stage in a shell pipeline will cause the entire pipeline to be considered failed. When yes
tries to write to stdout but the program whose stdin that stdout is connected to is not reading, this will cause an EPIPE
signal -- thus, an expected failure message, which the shell will usually ignore (in favor of treating only the last component of a pipeline as important for purposes of that pipeline's exit status).
Turn this off for the remainder of your current script with set +o pipefail
Explicitly ignore a single failure: { yes || :; } | true
"