jenkinsインストール
wget -q -O – http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | \
sudo apt-key add –
echo deb http://pkg.jenkins-ci.org/debian-stable binary/ | \
sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt update -y
sudo apt install -y openjdk-8-jdk
sudo apt install -y jenkins
jenkins設定
sudo cp /etc/default/jenkins /etc/default/jenkins.org
vi /etc/default/jenkins
vi /etc/default/jenkins
diff -u /etc/default/jenkins.org /etc/default/jenkins
— /etc/default/jenkins.org 2019-03-13 05:22:17.989028312 +0000
+++ /etc/default/jenkins 2019-03-13 05:23:32.926587262 +0000
@@ -60,7 +60,8 @@
# UMASK=027
# port for HTTP connector (default 8080; disable with -1)
-HTTP_PORT=8080
+#HTTP_PORT=8080
+HTTP_PORT=18080
# servlet context, important if you want to use apache proxying
sudo systemctl stop jenkins
sudo systemctl status jenkins
sudo apt install npm
sudo npm install jflint -g
sudo usermod -aG docker jenkins