I have a pipeline defined with five stages, that run in this order...... Build ==> Smoke Test Deploy ==> Smoke Test ==> Full Test Deploy ==> Full Test When I try to use the API getStages, and process the stages from the returned XML, they are not in the correct order. This is what my code prints out: Stage = Build Stage = Full Test Stage = Full Test Deploy Stage = Smoke Test Stage = Smoke Test Deploy I am trying to determine in my code the name of the Final Stage of the pipeline. Is there a way to determine the final stage, or to get the list of stages in the correct order? Thanks. - Troy
add new comment
(comments are locked)
|
in the data returned, (XML or JSON), you will find an "index" tag.
Use it to sort your stages
(comments are locked)
|
Topics:
asked: Oct 02, 2018 at 08:47 PM
Seen: 37 times
Last Updated: Oct 03, 2018 at 09:58 PM