Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63845

Cancelling the queue build API cancelItem returning HTTP 500 error code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      We are using below API to cancel the queue build
      http://<<host:port>>/queue/cancelItem?id=<<Queue ID>>

      The API is cancelling the build if the build is in Queue and the behavior is as expected. But if the build is moved from Queue to execution then the API is returning HTTP 500 error with message as "Oops! A problem occurred while processing the request". We are expecting to return HTTP 400 error and message is like "The build is not available in Queue".

      Please let me know in case my understanding is not correct.

      Thank you

      Regards,
      Prashanth

            Unassigned Unassigned
            prashanthmadduri prashanth madduri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: