Hi, i read about the dynamic condition in steps and try for make a stage like "deploy" but using steps with conditions for things like: build and publish image but not run an infra deploy.
like this.
but when run the pipeline i get an error for: A step within the stage can't contain a condition. The condition must be defined on the stage.
exists a way to make this and not mess with a script in the step?
AFAIK this is a known limitation in Bitbucket Pipelines: conditions are not supported on individual steps inside a stage. They can only be applied at the stage level itself.
I asked the AI and from the suggestion to me it seems that the best workaround is this:
Split the single stage into multiple stages, each with its own condition. It looks a bit verbose, but it should work and would be YAML-native (no need for scripts).
you can use multiple stages in a custom trigger? have any reference or example for try?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.