Linked Questions

Popular Questions

I'm trying to build a job that will execute a program on remote agents. The program is either exe when agent is on Windows or shell script when it is on Linux. The program is already deployed on agent machines. I'm looking for a solution that would allow me to conditionally run either exe (Execute Windows batch command) or shell (Execute shell) depending on the agent's OS.

So far I found there is a run condition plugin (https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin), whuch would be great, unfortunatelly it does not have check for agent's OS.

Is there any way to accomplish that? Google tells me nothing.

Related Questions