Missing target.url in promotion API

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: promoted-builds-plugin
    • None
    • Environment:
      Jenkins: 2.492.3
      OS: Linux - 6.1.54-talos
      Java: 17.0.14 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
      promoted builds plugin - Version992.va_00888f21b_74

      About 2 years ago, prior to some Jenkins update, data under API contained promotion target for each promotion item. I was using below URL to get a list of validator builds that contain some desired promotion:

      [<JOB_URL>/promotion/process/<PROMOTION_NAME>///api/json?tree=builds[number,timestamp,target[url]]] , as it returned data in below format:

      "builds": [
          {
              "number": 43954,
              "timestamp": 1763381343488,
              "target": {
                  "url": "<JENKINS_URL>/job/<JOB_NAME>/127165/"
              }
          },
          {
              "number": 43952,
              "timestamp": 1763371502785,
              "target": {
                  "url": "<JENKINS_URL>/job/<JOB_NAME>/127151/"
              }
          }
          ...
      ] 

      Since that update the API no longer contains the target, and you can only get the target from console output.

      Please restore target.url data in the promotions API.

            Assignee:
            Oleg Nenashev
            Reporter:
            Anna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: