You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when:
- event: push
- event: manualsteps:
- name: testimage: alpine:3.13commands:
- echo "Testing"backend_options:
kubernetes:
resources:
requests:
cpu: 1# This should be a string, so it won't be set
Expected behavior
The error should be propagated back to the user, and the step should not run. Ideally such an error should be caught during initial pipeline validation.
Component
agent
Describe the bug
At this line https://github.com/woodpecker-ci/woodpecker/blob/v2.7.1/pipeline/backend/kubernetes/kubernetes.go#L229 there is no
return err
, meaning that any errors from parsing backend_options will be silently discarded.Steps to reproduce
The following pipeline will demonstrate the issue
Expected behavior
The error should be propagated back to the user, and the step should not run. Ideally such an error should be caught during initial pipeline validation.
System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: