Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Programmatically determine if agent is running? #4165

JShelton ·

Is it possible, using code, to determine if a build agent is currently running any steps/builds? I've looked through GridNode and AgentManager but am not seeing any functionality to support that.

  • replies 1
  • views 312
  • stars 0
robinshen ADMIN ·

Below statement can check whether or not "someagent:8811" running some steps:

!system.buildEngine.getRunningSteps("someagent:8811").isEmpty()