Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

i dont know why my pipeline is running for two branches

Siddhant Pandey September 19, 2023

when some is pushing there changes in one branch and doing a pull request in another branch it is running for both branches but i have already set branches to master. 
4.png
 can someone tell me how can i stop this to happen again in my pipeline.

 

 

1 answer

1 accepted

1 vote
Answer accepted
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 19, 2023

Hi @Siddhant PandeyCan you share the relevant parts of your bitbucket-pipelines.yml configuration?

Siddhant Pandey September 19, 2023
image: node:16

pipelines:
branches:
master:
- step:
name: Building the app
script:
- npm install --force
- CI=false npm run build
artifacts:
- build/**
- step:
name: Deploying the app
deployment: Production
script:
- pipe: atlassian/rsync-deploy:0.9.0
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_SERVER
REMOTE_PATH: $REMOTE_PATH
LOCAL_PATH: '.'
after-script:
- ssh $DEPLOY_USER@$DEPLOY_SERVER "cd $REMOTE_PATH && pm2 restart react-frontend" # Replace 'your-app-name' with the actual name of your PM2 process
1.png
here is my bitbucekt-pipeline.yml fle

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events