[JIRA] (JENKINS-49644) API does not return all running builds

2 views
Skip to first unread message

graham@grahamlyons.com (JIRA)

unread,
Feb 20, 2018, 6:08:03 AM2/20/18
to jenkinsc...@googlegroups.com
Graham Lyons created an issue
 
Jenkins / Bug JENKINS-49644
API does not return all running builds
Issue Type: Bug Bug
Assignee: Unassigned
Components: core, pipeline
Created: 2018-02-20 11:07
Environment: Jenkins 2.89.3, Pipeline 2.5
Priority: Major Major
Reporter: Graham Lyons

Fetching node information from a node running a pipeline build returns very little information about the executor.

Hitting this URL - https://JENKINS_URL/computer/<NODE_NAME>/api/json?depth=2 - returns this about the executors:

...
"executors": [{
    "currentExecutable": null,
    "idle": false,
    "likelyStuck": false,
    "number": 0,
    "progress": 5
  }, {
    "currentExecutable": {
      "_class": "hudson.model.FreeStyleBuild",
      "actions": [{
        "_class": "hudson.model.CauseAction",
        "causes": [{
          "_class": "hudson.triggers.TimerTrigger$TimerTriggerCause",
          "shortDescription": "Started by timer"
        }]
      }, {
        "_class": "jenkins.metrics.impl.TimeInQueueAction"
      },
...

The problem with this comes when we use the Python SDK because that uses the currentExecutable key to gather information about running builds:
https://github.com/openstack/python-jenkins/blob/16007e01858cc5d36afdc31d22b5644f91a1f935/jenkins/__init__.py#L1149

We discovered this because the automation we use to scale our build cluster up and down doesn't see any jobs running on nodes which are running pipeline builds and so they get terminated mid-build.

This did work with previous versions of Jenkins/Pipeline but I can't find any mention of a regression anywhere.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 20, 2018, 3:36:04 PM2/20/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: workflow-durable-task-step-plugin
Component/s: core
Component/s: pipeline

mikeyang@sifive.com (JIRA)

unread,
Apr 13, 2020, 1:10:03 PM4/13/20
to jenkinsc...@googlegroups.com
Mike Yang commented on Bug JENKINS-49644
 
Re: API does not return all running builds

This seems to be working again in `2.222.1`.  And I think it was still broken as of `2.204`.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages