Question
Is it possible to skip the deployment task/steps programmatically?
Answer
We do have the REST API option to skip the steps mentioned here:
https://docs.xebialabs.com/generated/xl-deploy/22.1.x/rest-api/com.xebialabs.deployit.engine.api.TaskBlockService.html#/tasks/v2/{taskid}/skip:POST.
Steps to Follow
- Get the blocks from your deployment plan
- Find steps in block id="0_1_1"
- The steps are numbered within the block starting from 1. So the step ID of "Stop tomcat-server-2" will be 0_1_1_1
- So if you want to skip the step Stop Tomcat-server-2, run the following POST request.
Comments
Please sign in to leave a comment.