Open zc-devs opened 1 week ago
server
Step with when.status: [failure] doesn't run on failed pipeline, instead runs step with when.status: [success].
when.status: [failure]
when.status: [success]
# build.yaml skip_clone: true steps: build: image: alpine commands: - echo 'Building the app' - exit 1 # 0 - success, 1 - fail
# notifications.yaml skip_clone: true depends_on: [build] runs_on: [success, failure] steps: fail-notification: when: - status: [failure] image: alpine commands: - echo 'Build failed' success-notification: when: - status: [success] image: alpine commands: - echo 'Build succeed'
fail-notification
success-notification
WP `next-f87e80381b`, `2.7.1`, Gitea, Postgres 16
https://github.com/woodpecker-ci/woodpecker/issues/4337#issuecomment-2468498847
next
It works within a pipeline but not across, hence the title should likely be updated to include this condition/detail.
Component
server
Describe the bug
Step with
when.status: [failure]
doesn't run on failed pipeline, instead runs step withwhen.status: [success]
.Steps to reproduce
Expected behavior
fail-notification
step runssuccess-notification
skipsSystem Info
Additional context
https://github.com/woodpecker-ci/woodpecker/issues/4337#issuecomment-2468498847
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]