Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Add simple install_jenkins script
Browse files Browse the repository at this point in the history
It's a simple script, but provides a centralized location in case we need to change it in the future
  • Loading branch information
ejizba committed Mar 29, 2017
1 parent fd840ef commit 5839d44
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This repository contains utility scripts to run/configure DevOp systems in Azure
* [unsecure-jenkins-instance.sh](jenkins/unsecure-jenkins-instance.sh): Disables the security of a Jenkins instance.
* [Jenkins-Windows-Init-Script.ps1](powershell/Jenkins-Windows-Init-Script.ps1): Sample script on how to setup your Windows Azure Jenkins Agent to communicate through JNLP with the Jenkins master.
* [Migrate-Image-From-Classic.ps1](powershell/Migrate-Image-From-Classic.ps1): Migrates an image from the classic image model to the new Azure Resource Manager model.
* [install_jenkins.sh](jenkins/install_jenkins.sh): Simple script to install Jenkins on a Linux VM.
* Spinnaker
* [add_k8s_pipeline.sh](spinnaker/add_k8s_pipeline/): Adds a Kubernetes pipeline with three main stages:
1. Deploy to a development environment
Expand Down
5 changes: 5 additions & 0 deletions jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ If you accidentally set up security realm / authorization in such a way that you
***Don't make your instance publicly available when running this script! Anyone can access your unsecure Jenkins instance!***
For more informations see the [Jenkins documentation](https://jenkins.io/doc/book/operating/security/#disabling-security)

## Install Jenkins
> [install_jenkins.sh](install_jenkins.sh)
Bash script that installs Jenkins.

## Questions/Comments? [email protected]
7 changes: 7 additions & 0 deletions jenkins/install_jenkins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update --yes
sudo apt-get install jenkins --yes
sudo apt-get install jenkins --yes # sometime the first apt-get install jenkins command fails, so we try it twice
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ if [ -z "$repository" ]; then
fi

#install jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update --yes
sudo apt-get install jenkins --yes
sudo apt-get install jenkins --yes # sometime the first apt-get install jenkins command fails, so we try it twice
curl --silent "${artifacts_location}jenkins/install_jenkins.sh${artifacts_location_sas_token}" | sudo bash -s

#install git
sudo apt-get install git --yes

#install docker if not already installed
Expand Down

0 comments on commit 5839d44

Please sign in to comment.