-
Type:
Bug
-
Resolution: Not a bug
-
Component/s: Pipelines - YAML Configuration
-
None
-
1
-
Severity 3 - Minor
-
11
Problem Definition
- on-fail : A step that fails using the ignore strategy will not cause the overall pipeline to fail.
- fail-fast : option in Bitbucket Pipelines, which will immediately stop all running parallel steps as soon as any step fails.
The combination of 2 is causing un-expected behaviour in pipeline.
Error :
Fail-fast is not supported with failure strategies other than 'fail'.
Step to re-produce:
pipelines: default: - parallel: fail-fast: true steps: - step: on-fail: strategy: ignore script: - echo "test"
Run the above pipeline and it will throw the error since combination of on-fail with fast-fail is not supported.
Suggested Solution
- As a temporary workaround do not use the combination of both the strategy.
- Public Blog Reference : https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Fail-fast