Build details of pipeline job via API

19 views
Skip to first unread message

Graham Lyons

unread,
Feb 21, 2017, 7:09:45 AM2/21/17
to Jenkins Users
Hi,

I'm trying to get information about running builds on Jenkins agents, with and without pipelines. 'Old-style' jobs show up just fine but pipelines only ever appear as placeholder tasks:

{
   "currentExecutable": {
     "_class": "org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask$PlaceholderExecutable"
   },
   "currentWorkUnit": {

    },
   "idle": false,
   "likelyStuck": false,
   "number": 1,
   "progress": 84
 }

I'm using Jenkins ver. 2.19.1 but, looking at the source code, I don't see any changes relating to this in later versions. I could be wrong about that of course.

Is this expected? Is there a way to make it behave differently? How does the /ajaxExecutors endpoint get its data?

If anyone can help then I'd really appreciate it.

Thanks,
Graham
Reply all
Reply to author
Forward
0 new messages