Skip to content

Commit b64f346

Browse files
author
lerndevops
authored
Update Install-Java-Jenkins-ubuntu.txt
1 parent 2d14c8f commit b64f346

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jenkins/Install/Install-Java-Jenkins-ubuntu.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ Install JAVA
1010

1111
Install Jenkins
1212

13-
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
13+
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
1414
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
1515
sudo apt-get update
1616
sudo apt-get install jenkins
17-
sudo systemctl start jenkins
18-
sudo systemctl stop/status jenkins
17+
1918

2019
Install Maven ( on Jenkins machine )
2120

@@ -31,3 +30,6 @@ Set JAVA_HOME & MAVEN_HOME as environment variables on Jenkins machine
3130
sudo echo "JAVA_HOME=\"/usr/lib/jvm/java-8-openjdk-amd64\"" >> /etc/profile
3231
sudo echo "PATH=\$JAVA_HOME/bin:\$MAVEN_HOME/bin:\$PATH" >> /etc/profile
3332
source /etc/profile
33+
34+
sudo systemctl start jenkins
35+
sudo systemctl stop/status jenkins

0 commit comments

Comments
 (0)