init/jenkins-install.sh

12 lines
311 B
Bash

#!/bin/sh
set -e
echo "Jenkins Install..."
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install epel-release # repository that provides 'daemonize'
yum install jenkins
gpasswd -a jenkins docker