Have 3 branches, Master, UAT, QA. Development is done in feature branch's that get created by Jira.
When feature branch pull request is merged from the feature branch to the QA branch the pipeline never runs. If I merge anything to Master the pipeline automatically runs.
Merge to QA pipeline never runs but I can run it manually and it succeeds 100%.
Below is my pipeline configuration. I have tried to resolve this problem now for two days and have no idea how to troubleshoot this issue. Any help would be appreciated.
image:
name: salesforce/cli:2.16.0-full
pipelines:
branches: # Pipelines automatically deploy from commits into branch
master: #Production pipeline
- step:
name: Deploy to Production
deployment: production
script:
- echo "Executing Production pipeline"
- npm i shelljs
- node ./deploymentFunctions/deploy.js --username=$SFDC_USERNAME --consumerKey=$SFDC_CONSUMER_KEY --loginURL=$SFDC_LOGIN_URL --branch=$BITBUCKET_BRANCH --checkDeploy=$CHECK_DEPLOY
uat: #UAT Pipline
- step:
name: Deploy to UAT
deployment: uat
script:
- echo "Executing UAT pipeline"
- npm i shelljs
- node ./deploymentFunctions/deploy.js --username=$SFDC_USERNAME --consumerKey=$SFDC_CONSUMER_KEY --loginURL=$SFDC_LOGIN_URL --branch=$BITBUCKET_BRANCH --checkDeploy=$CHECK_DEPLOY
qa: #QA Pipline
- step:
name: Deploy to QA
deployment: qa
script:
- echo "Executing QA pipeline"
- npm i shelljs
- node ./deploymentFunctions/deploy.js --username=$SFDC_USERNAME --consumerKey=$SFDC_CONSUMER_KEY --loginURL=$SFDC_LOGIN_URL --branch=$BITBUCKET_BRANCH --checkDeploy=$CHECK_DEPLOY
custom: # Pipelines that are triggered manually
Sandbox-TR: # The name that is displayed in the list in the Bitbucket Cloud GUI
- step:
name: Deploy to Sandbox TR
deployment: sandbox-tr
script:
- echo "Executing Sandbox TR pipeline"
- npm i shelljs
- node ./deploymentFunctions/deploy.js --username=$SFDC_USERNAME --consumerKey=$SFDC_CONSUMER_KEY --loginURL=$SFDC_LOGIN_URL --branch=$BITBUCKET_BRANCH --checkDeploy=$CHECK_DEPLOY
Sandbox-MR:
- step:
name: Deploy to Sandbox MR
deployment: sandbox-mr
script:
- echo "Executing Sandbox MR pipeline"
- npm i shelljs
- node ./deploymentFunctions/deploy.js --username=$SFDC_USERNAME --consumerKey=$SFDC_CONSUMER_KEY --loginURL=$SFDC_LOGIN_URL --branch=$BITBUCKET_BRANCH --checkDeploy=$CHECK_DEPLOY