PUT request on queue REST API endpoint does not work with specific stage configuration

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 10.2.1
    • Affects Version/s: 9.2.14, 10.2.0
    • Component/s: REST API
    • None
    • 1
    • Severity 3 - Minor

      Summary

      PUT request on queue REST API endpoint does not work with specific stage configuration

      Steps to Reproduce

      1. 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.

      2. Run the plan.
      3. 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.
      4. 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'

        Reference: https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-queue-projectkey-buildkey-buildnumber-put

      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.

            Assignee:
            Mateusz Szmal
            Reporter:
            Ayrijit Swain
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: