Setup:
- Master is on Windows VM "A"
- Slave is on Windows VM "B"
- Slave connects to master using java -jar agent.jar -jnlpUrl http://path/to/this/slave-agent.jnlp -secret thisisasecret -workDir "C:\my-work-dir"
- The Jenkins Job executes a batch command. The command runs Nunit console, which executes selenium tests
The Job that I'm executing is a selenium script, which opens a chrome instance on "B"
This is what I'm doing when it works:
- Log into "B" using windows RDP
- Open jenkins and trigger the selenium Job
- I can see the Job executing on "B" and completes with no issues in about 4 minutes
This is when it DOES NOT work:
- I DO NOT log into "B"
- Open jenkins and trigger the selenium Job
- Jenkins interface shows that the Job is executing but it runs indefinitely
Now if I log into "B" while the job is still running, as soon as I log in, I can see the chromedriver cmd appear and a chrome instance is brought up and the job is run and completes with no issues.
Does anybody know what could be causing this? Thanks!