Ordering Build Steps Through The API
I need to add a new build step to a bunch of existing configurations as Step 1. I have a PowerShell function working now that adds a new step to an existing configuration, but the default behavior of a POST to /app/rest/buildTypes/id:<buildTypeId>/steps is to put the new step as the last step.
The only thing that I can think of is to delete all of the existing steps and then re-add them (and the new step) in the desired order.
Is there another way?
Please sign in to leave a comment.
I'm afraid not directly. You would need to replace the build configuration, or to at least remove the steps and then readd them in the desired order.