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

Publish information about currently running builds via API

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • swarm-plugin
    • None
    • 3.21

      When using slave.jar, build nodes publish information about currently running builds via the Jenkins API. I'm not super well-versed in the API internals, but as far as I can tell, this involves publishing extra information for each executor. Otherwise, Jenkins replaces this with a PlaceholderTask, which doesn't contain any information about what is actually building, and the API consumer can only see if the executor is idle or not.

      Effectively, this means that API calls such as [{{get_running_builds}} in the python-jenkins API|]https://python-jenkins.readthedocs.io/en/latest/api.html#jenkins.Jenkins.get_running_builds return an empty list, which is not terribly useful.

          [JENKINS-60835] Publish information about currently running builds via API

          Nik Reiman created issue -
          Basil Crow made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Nik Reiman made changes -
          Resolution Original: Cannot Reproduce [ 5 ] New: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Fixed but Unreleased [ 10203 ]
          Basil Crow made changes -
          Released As New: 3.21
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            Unassigned Unassigned
            nre_ableton Nik Reiman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: