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

Why only second step could be triggered manually?

Raimundas Ra October 27, 2021

Just wondering, why there are the strange rule to trigger "manually" only second step in bitbucket-pipelines.yml ? For some reasons sometimes we need to have in the first step this option? Is there any workaround to setup this one in the first step, cause this empty first step to have second one is absolutely unnecessary and waste of bb minutes :) 

Maybe someone has already found some workaround?

pipelines:
branches:
dev:
- step:
name: deploy to Staging
trigger: manual. <<<?
deployment: Staging
script:
- pipe: atlassian/rsync-deploy:0.5.0

1 answer

0 votes
Raju P.S October 27, 2021

Not sure, if it helps in your scenario, but we used "custom" flow, which will allow us to not only trigger manually, also to choose which individual step to run as well.

Raimundas Ra October 27, 2021

Hi Raju P_S , could you maybe share some examples ? Thank you :) 

Raju P.S October 28, 2021
pipelines:
custom:
DevDeploy:
- step:
<<: *Database_migrate
name: Dev - Database_migrate
deployment: Dev
UATDeploy:
- step:
<<: *Database_migrate
name: Staging - Database_migrate
deployment: Staging
This will allow you to run both Dev and UAT deployments manually and independently.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events