Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-25979

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 10.2.1
    • 9.2.14, 10.2.0
    • REST API
    • None

      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.

              851f15845f55 Mateusz Szmal
              51ca760b6006 Ayrijit Swain
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: