Hi,
I was wondering if it's possible to start a pipeline when a new branch (release/*) is created, not when there is a commit.
For example, If I create a new branch release/1.0.0 from develop using Bitbucket I would like to run my test suite on that branch without having committing anything.
Thank you very much
Hello,
As far as I understand this already happens, assuming that the branch has a bitbucket-pipelines.yml. Can you paste in an example of your bitbucket-pipelines.yml?
Thanks,
Phil
Hi Philip,
Thanks for replying. You are totally right this is the way it works when you create the release branch locally and then you push it. But when I create the release on Bitbucket it won't trigger the pipeline.
Here is my bitbucket-pipelines.yml:
options:
docker: true
size: 2x
pipelines:
branches:
develop:
- step:
image: williamyeh/ansible:ubuntu18.04
deployment: staging
script:
- [things we do]
release/*:
- step:
image: [our image]
deployment: production
caches:
- composer
script:
- [things we do]
artifacts:
- tests/_output/**
- var/log/**
definitions:
services:
docker:
memory: 4096
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmmm. I can't seem to reproduce this.
Here's what I'm doing. Maybe something stands out as different to you?
I have the following bitbucket-pipelines.yml on my master branch.
pipelines:
branches:
test*:
- step:
script:
- echo hello
I then click on the Branches sidebar icon.
And then 'Create Branch'.
I call the new branch "test-branch-name".
And then see that a new pipeline is running on that branch.
Does anything there look different to what you're doing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, I've just tested it and you are right again. Its working as expected. Maybe at the beginning I was testing it wrong :p
Thank you very much for your time
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i can manually create a branch on jira using same issue name. but i need to automatically create branch on bitbucket using the same issue name jira. can anyone help me this .
i tried commit created trigger it works but in that how can i execute branch created trigger. in which transition i can use that branch created trigger and how can i configure it. if you know any reference links means please let me know.
simply i need to create issue per branch on the existing repo or i need to create issue per repo.
thanks advance.
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.