Adding a new Windows machine to Jenkins - ISISComputingGroup/ibex_developers_manual GitHub Wiki

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)

Adding to Jenkins

  • Go to ​https://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 'Permanent Agent'

  • Set a root directory of C:\Jenkins

  • Set a label of 'windows'

  • Select the Launch agent by connecting it to the controller

  • Save

  • Select the slave that has just been created and make a note of secret. For an initial test make a note of the curl and java commands from Run from agent command line: (Windows)

  • in a command window in c:\jenkins run the curl and java commands

See the Jenkins website for more information.

  • Notes from John to integrate
  1. Download the slave jar from http:///jnlpJars/agent.jar
  2. Place in C:\Jenkins
  3. Run the java web start line when in node

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.

⚠️ **GitHub.com Fallback** ⚠️