Summary
PUT request on queue REST API endpoint does not work with specific stage configuration
Steps to Reproduce
- Create a plan with the below stage configuration:
stages: - First Stage: manual: false final: false jobs: - First stage Job - Second Stage: manual: false final: false jobs: - Second stage job - Final stage: manual: true final: true jobs: - Final stage job
All other stage configurations work.
- Run the plan.
- Stop the first job before it's completed(you can setup a sleep task) - Either stop the plan or the job, doesn't seem to matter.
- PUT request via REST API to resume the plan
curl -X PUT -u <user>:<password> --url "http://{baseurl}/rest/api/latest/queue/{projectKey}-{buildKey}-{buildNumber}" --header 'Accept: application/json'
Expected Results
Put the build-in queue
Actual Results
The build does not move to the queue
Response:
Unknown macro:
Unknown macro: {"message"}
Workaround
Execute the build from UI works.