0% found this document useful (0 votes)
38 views

(Jenkins) How To Install Jenkins On New Computers

Jenkins can be installed on new computers by following these steps: 1. Ensure the latest version of Java is installed and Jenkins is required on the target computer. 2. Create a new node in Jenkins that matches the computer name and choose "Copy Existing Node". 3. Save the "Launch" file to the desktop and run it to connect the computer as a Jenkins slave.

Uploaded by

hagasy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

(Jenkins) How To Install Jenkins On New Computers

Jenkins can be installed on new computers by following these steps: 1. Ensure the latest version of Java is installed and Jenkins is required on the target computer. 2. Create a new node in Jenkins that matches the computer name and choose "Copy Existing Node". 3. Save the "Launch" file to the desktop and run it to connect the computer as a Jenkins slave.

Uploaded by

hagasy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

[Jenkins] How to install Jenkins on new

computers
Reference link: http://jenkins-ci.org/
Ensure Jenkins is required on the computer that you are going to install (1 click computers)
Ensure latest version of Java has been installed
1. Log on to Jenkins http://cnhkg-ev-hudson:8080/ as administrator
Click on an existing Slave, and then click on nodes
2. click New Node ->
Type a name same with the computer name (CNHKG-ED-HKVA**)
Choose Copy Existing Node (consult supervisor to choose from a node) -> OK
3. click on the Slave you just created
right click and choose save target as on the orange icon Launch
put this file on desktop

4. Click on slave-agent.jnlp on desktop and wait for the icon Connected (Successfully
connection will mark the slave status as online and idle)

A folder C:\jenkins should appear afterwards;


if not, follow the procedure above to install Jenkins again
DO NOT PROCEED if C:\jenkins does not appear
5. Close the Connected icon
Go back to the Jenkins webpage and click on the Slave you just created
Connection was broken should be shown after you have closed the Connected icon
right click and choose save target as on slave.jar
put slave.jar into C:\jenkins
Slave connection to the Jenkins Master could be disconnected when Jenkins icon on Slave
computer is closed.

Invoke Connection to Jenkins Master automatically


1. Start -> computer (right click) -> Manage -> Task Scheduler
Action -> Create Basic Task
2. Type Jenkins Slave as Name
Click Next
3. choose When I log on (Ensure you are currently log on as hk_validation)
Click Next
4. choose Start a program
click Next
5. click Browse and then choose C:\Program Files (x86)\Java\jre7\bin\java.exe
Type the following in the text box of Add arguments (optional):
-jar C:\jenkins\slave.jar -jnlpUrl http://cnhkg-ev-hudson:8080/computer/[your computer
name]/slave-agent.jnlp
You should copy the jnlpUrl from the webpage
click Next
6. check the box Open the Properties dialog for this task when I click Finish
click Finish

7. Setting ->
a) Uncheck the box Stop the task if it runs longer than
b) Check the box Run task as soon as possible after a scheduled start is missed
click OK
8. Restart your computer and log on again with hk_validation
Your computer should be automatically connected to Jenkins Server
A black window with Connected in the text message should be shown
Do not close this black window if connection to Jenkins server is required
Click on slave-agent.jnlp on desktop to reconnect to Jenkins Server if this black window is
closed

You might also like