Notes:
Why?
Running Jenkins standalone (jetty/winstone) vs Running Jenkins on Tomcat
Pre-requisite
***Tomcat 5 or above***
***java(7 or above) should be available***
(https://www.youtube.com/watch?v=FqpmH8MVO6A&list=PLhW3qG5bs-L_qj1L5hnHvJYeFpQ_g4UuU)
Step 1
Download Tomcat
Step 2
Unzip and place tomcat folder at any location
Step 3
Copy/Place the jenkins.war file inside tomcat/webapps folder
Step 4
Goto commandpromt (cmd) – windows | terminal – mac
– goto tomcat/bin directory
– make all files executable : chmod +x *.sh
In case of windows this command will not work. This step might not be needed if you are on windows. Else you can right click on the file/folder goto security tab and change the permissions.
Can watch –
TOMCAT – How to install and run on Windows | Change Port | Run app
Step 5
Start Tomcat : ./startup.sh
(to shutdown tomcat : ./shutdown.sh)
Step 6
Verify if tomcat started : browser – http://localhost:8080
Step 7
Verify if jenkins is running on tomcat : http://localhost:8080/jenkins
*** To start jenkins (standalone) on a diff port***
java -jar jenkins.war – – httpPort=9090
Jenkins Beginner Playlist : https://www.youtube.com/playlist?list=PLhW3qG5bs-L_ZCOA4zNPSoGbnVQ-rp_dG
Send me your comments and feedback