OK, so it looks like the /ajaxExecutors endpoint just uses the progress 
value from this data which is why that works.

Any help on the other points would be gratefully received.

Ta,
G

On Monday, 20 February 2017 17:19:25 UTC, Graham Lyons wrote:
>
> 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
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/c966091d-ad41-4ef0-afc7-e8457ae183dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to