Paddykool
Paddykool

Reputation: 15

How to get a Jenkins slave to open a windows server session

I'm trying to get a Jenkins slave to open a session on a windows server. Basically, What I'm try to achieve is:

What I have done:

When I build the project in Jenkins I was expecting that the slave would be able to open a session and run C:\GUITest.exe. But, I'm missing something.

Anyone any ideas, or know if it is possible (plugins I may need ??)

Any advise / direction much appreciated.

Upvotes: 0

Views: 2893

Answers (2)

George Cimpoies
George Cimpoies

Reputation: 1004

You must ensure that whatever process runs the GUI tests (might be a java / cmd / ssh process if you're connected to Jenkins) is not running on session 0 as it won't have access to Desktop and the Windows UI in general. I was in a similar situation and running the same process as a scheduled task instead of service solved it for me.

Upvotes: 0

Andy Chen
Andy Chen

Reputation: 361

Looks like you want to run GUI test on windows session. It won't work if you run Jenkins Slave as service, you have to run JNLP agent on your windows server. Also if you want to run in unattended mode, meaning that the windows remote session would be disconnected, you need some other setup as well. Please provide more information on what you are trying to do.

Upvotes: 1

Related Questions