Lab 1 : Setting up Jenkins Environment
Download from FTP : bitnami-jenkins OR Download the Virtual Machine from URL https://bitnami.com/redirect/to/587138/bitnami-jenkins-2.176.1-0-r56-linux-debian-9-x86_64.ova
-
Import the OVA file into Virtual Box (10 Minutes)
-
Start The VM
-
Wait for the screen to display Jenkins Username, password and IP address
-
Open Web Browser and Visit the IP address
-
After wait for may be 3/4 minutes you should get jenkins dashboard giving TWO options for plugins installation:
1. Install Recommanded/Suggested Plugins 2. Install Selected pluginning (Choose This) Choose "NONE" for plugins Choose "GIT" then Install
-
User name & Password for Login:
Get username and password for VirtualBox VM HINT: Username is "user"
-
Goto "Manage Jenkins" > "Manage Users" > Create User Enter user details
-
Go back to Jenkins Dashboard and click on "New Item"
Type: Freestyle project Name: project1
-
Under General TAB:
Write Description for current project
-
Source Code Management TAB:
Choose NONE
-
Build Triggers TAB:
Choose "Build Periodically" Pattern: * * * * *
-
Build TAB:
Choose from Drop Down: "Execute Shell"
NOTE: On Windows System use "Execute Windows Batch Command"
Write the Shell script:
``` echo "Building $JOB_NAME" echo "Hello World" ```
-
Click SAVE button.