Saturday, May 16, 2020

Shell script for setting up Jenkins in Ubuntu instance | Setup Jenkins using Shell Script

# Shell script for installing Java, Jenkins and Maven in Ubuntu EC2 instance

# Command for installing Java 11
sudo apt-get update
sudo apt-get install default-jdk -y

# Command for installing maven
sudo apt-get install maven -y

# Script for Jenkins installation

#Add Repository key to the system
wget -q -O - | sudo apt-key add -

#  Append debian package repo address to the system
echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
# Install Jenkins

sudo apt-get install jenkins -y

echo "Jenkins installed successfully.."

No comments:

Post a Comment

Create Freestyle job in Jenkins | How to create build job in Jenkins to automate Java build and deployment of WAR into Tomcat | Bitbucket Jenkins Integration

Jenkins is popular open source Continuous integration tool. It was written entirely in Java. Jenkins is a self-contained automation server u...