Skip to content

Adding a new Windows machine to Jenkins

Matt Clarke edited this page Aug 14, 2017 · 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

  • Nicos requires a specific version of Visual Studio from here

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/.

System tests need the RCPTT plugin this is downloaded from here (http://www.eclipse.org/rcptt/download/), currently on 2.1.0. Once downloaded extract them to C:\Jenkins\RCPTT_Runner (set in runner.cmd). The current version appears to need java 1.8 and because the instrument add the latest JDK you need to install JDK 1.8. The version of java that jenkins slave uses is set in jenkins-clas.xml in c:\jenkins.

Clone this wiki locally