Skip to content

Instantly share code, notes, and snippets.

@tfoote
Last active May 16, 2020 13:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save tfoote/caaa9a5c31246ec5a06a to your computer and use it in GitHub Desktop.
Save tfoote/caaa9a5c31246ec5a06a to your computer and use it in GitHub Desktop.
Installing jenkins on an EC2 Windows slave
  • Create a Windows instance
  • Use the aws console to get username and password
  • log in via rdp
  • Turn off IE Enhanced security control
  • Open server settings, local server, turn it off
  • install chrome
  • Install java: https://www.java.com/en/download/
  • Create C:\Jenkins
  • go to jenkins instance
  • log in as admin
  • create a new node
  • Set root director as C:\Jenkins
  • set it up to web launch via jnlp
  • launch via jnlp
  • in applet click File > Install as a Slave Service

Bootstrap install

  • Install chocolatey https://github.com/chocolatey/choco/wiki/Installation

  • choco install -y curl

  • choco install -y git

  • choco install -y python

  • choco install -y cmake

  • So, push the windows key and type environment, then select "Edit the system environment variables". Then select the "Environment Variables..." button and edit the entry for the PATH under the "system environment variable", adding C:\tools\python\Scripts; to the end. You need to open a new cmd prompt for this to take effect.

  • pip3 install vcstool empy

  • Restart the jenkins slave service (via local server -> tools -> services -> jenkins-slave)

  • Install opensplice as defined here: https://github.com/ros2/examples/wiki/Windows-Development-Setup

  • Install Visual Studio 2015 Preview

  • pip install -U setuptools

  • pip install -U pip

  • pip install -U nose

  • pip install -U coverage

  • pip install -U mock

Example cmd output

set PYTHONUNBUFFERED=1 curl -sk https://raw.githubusercontent.com/ros2/examples/windows/ros2.repos -o ros2.repos md src vcs import src < ros2.repos

call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 call C:\dev\opensplice\HDE\x86_64.win64\release.bat rmdir /S /Q build install python src\ament\ament_tools\scripts\ament.py build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment