How to: Skip specific steps in Deploy using Rest API

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

  1. Get the blocks from your deployment plan
  2. Find steps in block id="0_1_1"
  3. 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
  4. So if you want to skip the step Stop Tomcat-server-2, run the following POST request.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.