This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ubuntu Xenial | |
if [ ! -f /etc/init.d/jenkins ];then | |
curl -L http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list | |
apt-get -y update | |
apt-get install -y openjdk-8-jdk jenkins | |
# wait jenkins http port | |
echo "wait Jenkins service " | |
while [ "`netstat -tunl|grep 8080`" = "" ];do echo -n "."; sleep 1; done |