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