Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59972

Can I automate 'launch of Java web start slave agent ' to run selenium jenkins jobs.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: _unsorted
    • 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.
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          fedepell Federico Pellegrin added a comment -

          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>
          Show
          fedepell Federico Pellegrin added a comment - 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>

            People

            • Assignee:
              Unassigned
              Reporter:
              subhadeep24 subhadeep dutta
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: