Skip to content

Adding a new Windows machine to Jenkins

John Holt edited this page Sep 30, 2016 · 18 revisions

WikiJenkins Build ServerAdding a new Windows machine to Jenkins

These are instructions for adding a new Windows machine as a node to be used by Jenkins.

Initial Preparation

  • First set up the machine so it can be used to build the back-end system manually by following these instructions

  • Delete the EPICS subdirectory that was created in the previous step (maintaining C:\Instrument\Apps)

  • Add the builders password as a environment variable (system variable) called BUILDERPW

Adding to Jenkins

  • Go to ​http://epics-jenkins.isis.rl.ac.uk/computer/ and log in to Jenkins

  • Create a New Node with the Node Name as the computer name, select 'Dumb Slave'

  • Set a root directory of C:\Jenkins

  • Set a label of 'windows'

  • Select the Launch slave agents via Java Web Start under the Launch methods

  • Save

  • Select the slave that has just been created and click the 'Launch agent from browser on slave' button

  • This should launch a Java window from which, select File, Install as Windows Service

See the Jenkins website for more information.

Special Notes on Jenkins for GUI Tests

The GUI test currently run on NDWRENO. The test behaviour is different when Jenkins is running as a service, so instead it is run as a command from a batch file. The batch file is located on the desktop for the user builder. On first start up this shows running in a console Window, but this is unintentionally hidden the the system tests. (I am not sure that this is true anymore - John)

In case NDWRENO goes offline the command to run the slave is also shown at http://epics-jenkins.isis.rl.ac.uk/computer/ndwreno/.

Clone this wiki locally