Install Jenkins

4
[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

description

Install Jenkins

Transcript of Install Jenkins

Page 1: Install Jenkins

[Jenkins] How to install Jenkins on new computersReference 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 administratorClick 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 createdright 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 againDO NOT PROCEED if C:\jenkins does not appear

Page 2: Install Jenkins

5. Close the “Connected” iconGo 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” iconright click and choose “save target as…” on slave.jarput 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 SchedulerAction -> 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”

Page 3: Install Jenkins

click OK

8. Restart your computer and log on again with “hk_validation”Your computer should be automatically connected to Jenkins ServerA black window with “Connected” in the text message should be shown

Do not close this black window if connection to Jenkins server is requiredClick on slave-agent.jnlp on desktop to reconnect to Jenkins Server if this black window is closed