Hello Team,
I have created bitbucket pipeline as per branches whenever we do commits on branch then it will trigger the pipeline. We want to make this process manual.
Can you please suggest on the same?
pipelines:
branches:
Dev:
- step:
script:
- ant -buildfile build/build.xml deployEmptyCheckOnly -Dsfdc.username=$SFDC_USERNAME -Dsfdc.password=$SFDC_PASS$SFDC_TOKEN -Dsfdc.serverurl=https://$SFDC_SERVERURL
Master:
- step:
script:
- ant -buildfile build/build.xml deployEmptyCheckOnly -Dsfdc.username=$SFDC_USERNAME1 -Dsfdc.password=$SFDC_PASS1$SFDC_TOKEN1 -Dsfdc.serverurl=https://$SFDC_SERVERURL
Hello Matija
Thank you for the quick response.
I have tried custom pipeline and manual trigger as mentioned below but still if I commit on Dev branch then pipeline starts. We cannot add trigger in 1st step.
pipelines:
custom:
ManualSteps:
- step:
script:
- echo "Hello";
branches:
Dev:
- step:
script:
- echo "Hello"
- step:
trigger: 'manual'
script:
If you want only manual pipeline then you just need to keep the first part.
pipelines:
custom: # Pipelines that can only be triggered manually
ManualPipeline:
- step:
script:
- echo "This can only be triggered manually!"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you run manually you don't need to mention the branch. You choose a branch when you go run it. You can run it from the Branches page (last column Actions -> Run pipeline for a branch" or Pipelines page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can either make steps manual by adding trigger: manual or make a custom pipeline that won't be triggered automatically.
https://support.atlassian.com/bitbucket-cloud/docs/pipeline-triggers/
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.