Skip to content

Instantly share code, notes, and snippets.

@martyngigg
Last active December 8, 2022 10:08
Show Gist options
  • Save martyngigg/4419ab664fc22c04f94965486b04c131 to your computer and use it in GitHub Desktop.
Save martyngigg/4419ab664fc22c04f94965486b04c131 to your computer and use it in GitHub Desktop.
Windows Builder Old Method

Set Up Windows Jenkins Node (old method)

  1. Set up machine with admin permissions for your user
  2. Install C++ workload of Visual Studio 2019 Build Tools. You might need to login to microsoft with your stfc credentials to find 2019 and visit https://visualstudio.microsoft.com/vs/older-downloads/
  3. Install Git (as admin in ProgramFiles)and configure long path lenths globally:
git config --system --get core.longpaths true
  1. Set regedit key for long file paths and reboot Computer\\HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD)
  2. Install Java from adoptium.net/en-GB/temurin/releases/?version=11. OS=Windows,Architecture=x64,Package Type=JRE,Version=11 and ensure it is globally on the PATH
  3. Login to jenkins, navigate/create to the node. It is recommended to create one as a copy of another and then change items such as BUILD_THREADS
  4. Visit https://builds.mantidproject.org/computer/isis-ndw2293/jenkins-agent.jnlp to download the agent installer
  5. Once downloaded open an administrator powershell prompt and change to the folder where the file downloaded
  6. Run the agent file: .\jenkins-agent.jnlp and wait for the File menu to appear
  7. Click File->Install Service
  8. Once completed the node will be connected (check by refreshing the node page)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment