Skip to content

Commit 9daf1ca

Browse files
committed
Fix: Fail when nested pipeline fails
1 parent 72ff5c8 commit 9daf1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-tests/pipelines/e2e-main-pipeline.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ spec:
182182
## Explore and report status of all failed pipelineruns. Fail if anything failed
183183
SOME_PIPELINE_FAILED=false
184184
for PIPELINE_RUN in "${PIPELINERUNS_ARRAY[@]}"; do
185-
if [[ $(oc get pipelinerun/$PIPELINE_RUN -n ${KONFLUX_NAMESPACE} -o jsonpath="{.status.conditions[?(@.type==\"Succeeded\")].status}") == "Failed" ]]; then
185+
if [[ $(oc get pipelinerun/$PIPELINE_RUN -n ${KONFLUX_NAMESPACE} -o jsonpath="{.status.conditions[?(@.type==\"Succeeded\")].status}") == "False" ]]; then
186186
if ! $SOME_PIPELINE_FAILED ; then
187187
echo "List of failed PLRs:"
188188
fi

0 commit comments

Comments
 (0)