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

How do I use the API to trigger a deployment step in a pipeline?

Jay Seletz April 1, 2020

I have a pipeline with a build step followed by a single deployment step.  I want to be able to trigger the deployment step for a pipeline where the build step has passed and now has state.name="IN_PROGRESS" and state.tage.name="PAUSED". 

What endpoint do I post to, and what is the correct json for the post body?  I have queried the pipeline from the /2.0/repositories/{workspace}/{repo_slug}/pipelines/ endpoint, so I have that data and know from the state that the pipeline is ready to run the deployment step.

 

simplified pipeline yaml:

default:
- step:
script:
- runBuild.sh
artifacts:
- build/**
- step:
name: Run Deploy
deployment: Test
trigger: manual
script:
- runDeploy.sh

2 answers

0 votes
Jay Seletz April 6, 2020

I have submitted BCLOUD-20050 

0 votes
mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2020

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events