Pipelines doesn't trigger if release branch is created from JIRA

Issue #18881 resolved
Rodolfo O. Rico Jr. created an issue

Hi all,

When I create a release branch from the bitbucket.org branches page, the release pipeline is triggered.


But when I create a release branch from JIRA, it won’t trigger the release pipeline.

https://bitbucket.org/branch/create?issueKey=WCWT-3&issueType=Epic&issueSummary=Theme+Modification+fixes+on+CI%2FCD+Walkthrough

My partial pipeline configuration

pipelines:
  branches:
    develop:
      - step: *buildimage
      - step: *deploytest

    master:
      - step: *buildimage
      - step: *katalontests
      - step: *deployproduction

    release/*:
      - step: *buildimage
      - step: *deploystaging

    hotfix/*:
      - step: *buildimage
      - step: *deploystaging

  pull-requests:
   release/*:
     - step: *katalontests

   hotfix/*:
     - step: *katalontests

Comments (6)

  1. Rodolfo O. Rico Jr. reporter
    • edited description

    Hi all,

    When I create a release branch from the bitbucket.org branches page, the release pipeline is triggered.


    But when I create a release branch from JIRA, it won’t trigger the release pipeline.

    https://bitbucket.org/branch/create?issueKey=WCWT-3&issueType=Epic&issueSummary=Theme+Modification+fixes+on+CI%2FCD+Walkthrough


    My partial pipeline configuration

    pipelines:
      branches:
        develop:
          - step: *buildimage
          - step: *deploytest
    
        master:
          - step: *buildimage
          - step: *katalontests
          - step: *deployproduction
    
        release/*:
          - step: *buildimage
          - step: *deploystaging
    
        hotfix/*:
          - step: *buildimage
          - step: *deploystaging
    
      pull-requests:
       release/*:
         - step: *katalontests
    
       hotfix/*:
         - step: *katalontests
    
  2. Jeroen De Raedt staff

    Hi Rodolfo,

    update the pattern of your release branch in bitbucket-pipelines.yml to be release/** (so not release/*). It should then work as expected.

  3. Rodolfo O. Rico Jr. reporter

    Oh. I see. How come the docs example only indicates one “*”

    https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_step

    pipelines:
      pull-requests:
        '**': #this runs as default for any branch not elsewhere defined
          - step:
              script
                - ...
        feature/*: #any branch with a feature prefix
          - step:
              script:
                - ...
     branches:    #these will run on every push of the branch
        staging: 
          - step:
              script:
                - ...
    
  4. Jeroen De Raedt staff

    Thanks for bring that to our attention Rodolfo! I’ll get our technical writer to update the examples!

  5. Log in to comment