Skip to content

Instantly share code, notes, and snippets.

@cbednarski
Created October 11, 2013 06:51
Show Gist options
  • Save cbednarski/6930569 to your computer and use it in GitHub Desktop.
Save cbednarski/6930569 to your computer and use it in GitHub Desktop.
Install Jenkins on Ubuntu

Install Jenkins on Ubuntu

sudo apt-get install openjdk-7-jre-headless nginx -y
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
echo "deb http://pkg.jenkins-ci.org/debian binary/" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install jenkins -y

Nginx config

server {
    root /usr/share/nginx/www;
    index index.html index.htm;

    # Make site accessible from http://localhost/
    server_name localhost;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment