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

Add REST API redirects for /runs and /queue

    XMLWordPrintable

Details

    • pacific, atlantic, indian, arctic, tasman, pannonian, iapetus

    Description

      (Feel free to close this ticket if it's duplicative of other tickets already in JIRA. Just thought I would document what I'm hoping for).

      • If a request is made to /rest/blue/organizations/jenkins/pipeline/runs/:runId and there is an item in the queue with an expected build number equal to the runId, then issue a redirect to: /rest/blue/organizations/jenkins/pipeline/queue/:queueId
      • If a request is made to /rest/blue/organizations/jenkins/pipeline/queue/:queueId and there is a run that has the corresponding queueId, then issue a redirect to /rest/blue/organizations/jenkins/pipeline/runs/:runId

      After this change, deep-linking to Run Details for a queued item should hopefully "just work" after this change, as the current 404 will go away with a valid queue object being returned instead. We may need to add some logic in the REST result handler to ensure the QueueItemImpl is transformed to a pseudo run in this scenario.

      Attachments

        Issue Links

          Activity

            jamesdumay James Dumay added a comment -

            Will leave this ticket for the new year when Vivek is back. Not sure if anyone is yelling for this atm?

            jamesdumay James Dumay added a comment - Will leave this ticket for the new year when Vivek is back. Not sure if anyone is yelling for this atm?
            jamesdumay James Dumay added a comment -

            Merge into JENKINS-40924

            jamesdumay James Dumay added a comment - Merge into JENKINS-40924

            People

              kzantow Keith Zantow
              cliffmeyers Cliff Meyers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: