enkins is a self-contained Java-based program, ready to run out-of-the-box, with packages for Windows, Mac OS X and other Unix-like operating systems. As an extensible automation server, Jenkins can be used as a simple CI server or turned into the continuous delivery hub for any project.
- EC2 Instance / VM With Internet Access
- Security Group with Port 8080 open for internet
- Java 11 should be installed
sudo apt udpate
sudo apt-get install openjdk-11-jdk
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
/etc/apt/sources.list.d/jenkins.list'
sudo apt-get update && sudo apt-get install jenkins -y
service jenkins start
# for Status:
service jenkins status
sudo systemctl enable jenkins
http://public-ip:8080
- The default Username is admin
- Grab the default password
- Password Location:
/var/lib/jenkins/secrets/initialAdminPassword
- Skip Plugin Installation; We can do it later
- Change admin password
- Admin > Configure > Password
- Configure java path
- Manage Jenkins > Global Tool Configuration > JDK
- Create another admin user id
- Create “new item”
- Enter an item name –
My-First-Project
- Chose
Freestyle
project
- Chose
- Under the Build section Execute shell: echo "Welcome to Jenkins Demo"
- Save your job
- Build job
- Check "console output"