[JIRA] (JENKINS-59972) Can I automate 'launch of Java web start slave agent ' to run selenium jenkins jobs.

4 views
Skip to first unread message

subhadeep.dutta@aviva.com (JIRA)

unread,
Oct 29, 2019, 7:13:02 AM10/29/19
to jenkinsc...@googlegroups.com
subhadeep dutta created an issue
 
Jenkins / Bug JENKINS-59972
Can I automate 'launch of Java web start slave agent ' to run selenium jenkins jobs.
Issue Type: Bug Bug
Assignee: Unassigned
Components: _unsorted
Created: 2019-10-29 11:12
Environment: Jenkins master version is : 2.176.2 and hosted in RHEL 7.
Jenkins slave is running in Windows 2012 system.
Everything is hosted in AWS cloud environment.
Labels: slave jenkins configuration
Priority: Blocker Blocker
Reporter: subhadeep dutta

Hi,

We have jenkins jobs to open IE for Selenium. We have configured java web start slave agent for this. As per current set up, before executing the jobs, we need to login to slave system and run the bat file manually to bring the slave connected with master and then we will run our jobs. We have tried to  configure it as service but we do that, jenkins is unable to open IE browser for selenium execution. But for chrome browser, same job is working fine even we are running jenkins as service. In some of the blogs, I have seen that we need to create a powershell script and add that to startup directory to connect java web start agent to master but I did not get any specific solution for that. Can anyone please help to fix this issue. We have huge number of jenkins jobs and at present, we need to login to slave to run the bat file manually but we need to automate this. If anyone has faced this issue earlier, kindly help.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

fede.evol@gmail.com (JIRA)

unread,
Nov 25, 2019, 10:16:02 PM11/25/19
to jenkinsc...@googlegroups.com
Federico Pellegrin commented on Bug JENKINS-59972
 
Re: Can I automate 'launch of Java web start slave agent ' to run selenium jenkins jobs.

One easy (working) solution, it may fit or not your case security wise:

  • Configure the machine to login automatically as a given user
  • Put in the Startup folder of that user a batch file that starts the agent, something like (of course modify the URL and credentials per your needs):
java -jar C:\slave.jar -jnlpUrl "http://jenkins.site.url:8080/computer/MACHINEXYZ/slave-agent.jnlp" -jnlpCredentials <USER>:<PASS>

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 9, 2020, 8:41:02 AM2/9/20
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Not A Defect
 

Please don't use the issue tracker to ask questions. The mailing list and the chat system are better suited to questions. They have more people watching the messages and a greater chance of receiving an answer.

Change By: Mark Waite
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages