I need to trigger a series of steps when PR is raised for branch that name as "release/*" where * can be any string value
G'day, @Huxley Goh
Could you give me more context on this I am not sure I understand the * asterisk string value.
That said, I suggest checking our pipeline trigger documentation to get more details about how pipeline triggers work:
https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/
Regards,
Syahrul
Apologies let me give more context.
I am intending to invoke a series of steps that does code scanning upon pull request triggered. However, I only wish to set the condition whereby only selected branches that starts with "release/*" will trigger this.
I have the below branches to cover:
Invalid example below that does not work but indicating my intentions:
Hope that clarifies. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Huxley Goh
Thanks for the info. I believe the following examples are the best options:
definitions:
steps:
- step: &build
name: Build
script:
- echo 'test'
pull-requests:
feature/release/*:
- step: *build
This will trigger pipeline builds for PR when the source is from "feature/release/*."
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
We did this "feature/release/*:" but it does not work for us for some reason. When we attempt to submit a PR to the release/production branch it does not trigger the pipeline.
Best Regards,
Huxley
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
Apologies. I did not see the last sentence.
This will trigger pipeline builds for PR when the source is from "feature/release/*."
>> Then what about we want it to be destination branch instead from source to trigger this pipeline?
Best Regards,
Huxley
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Huxley Goh
I understand that you would like to trigger a pipeline build based on the destination branch, but currently, we only support triggering builds from the source branch. Unfortunately, we don't have a feature to trigger builds based on the current destination. However, we have an existing feature request that you can watch at:
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
Thank you for the information and the quick response. We will proceed to test this and revert back if required.
Best Regards,
Huxley
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Syahrul,
I did a quick test. But did not work as expected. Details as followed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Huxley Goh
Understood; if that's the case, I suggest you create a support ticket through our Support portal so that we can review your YAML and provide better guidance.
Regards,
Syahrul
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.
Hi @Huxley Goh
Flowie has very flexible support for triggering pipelines, including based on the destination branch.
If you have any questions, you can contact our support team, who can help you set up your workflow.
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.