Skip to content

Instantly share code, notes, and snippets.

@matthiasroos
Last active March 21, 2024 08:49
Show Gist options
  • Save matthiasroos/d002bd4cc970ccb529e8ba3d3a58d14a to your computer and use it in GitHub Desktop.
Save matthiasroos/d002bd4cc970ccb529e8ba3d3a58d14a to your computer and use it in GitHub Desktop.
Install Jenkins on Raspberry Pi
#!/bin/bash
sudo apt-get update
sudo apt-get install oracle-java8-jdk
get -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

Install Jenkins on Raspberry Pi

  1. Update the APT packages lists

    sudo apt-get update
  2. Install the Oracle Java SDK

    sudo apt-get install oracle-java8-jdk
  3. Download the key for the repository

    get -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
  4. Add the Jenkins repository to the APT sources (using the Stable LTS version for Debian)

    sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
  5. Update the APT packages list

    sudo apt-get update
  6. Install Jenkins

    sudo apt-get install jenkins
Based on https://raspberrytips.com/install-jenkins-raspberry-pi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment