node-jenkins icon indicating copy to clipboard operation
node-jenkins copied to clipboard

List running executor jobs

Open pdashford opened this issue 7 years ago • 2 comments

Hi all. Is there a way to list the current jobs being executed? This library has a call to see what is queued but not what is currently executing.

pdashford avatar Jul 26 '18 14:07 pdashford

+1

spikel46 avatar Aug 20 '18 21:08 spikel46

@pdashford you can work around this using a get call to the address: example.jenkins.com/computer/api/xml?tree=computer[executors[currentExecutable[url]],oneOffExecutors[currentExecutable[url]]]&xpath=//url&wrapper=builds Credit: StackOverflow

spikel46 avatar Aug 20 '18 23:08 spikel46