Total Steps:
- Step1, Download java 8 or 11 as Jenkins supports that
- Step2, Download Apache Tomcat Server
- Step3, Download Jenkins.war file
- Step4, Copy Jenkins.war to "webapps" folder of folder of Apache Tomcat Server
- Step5, Start Apache Tomcat Server
- Step6, Hit Tomcat URL
- Step7, Launch Jenkins from Apache URL
- Step8, Install plugins
- Step9, Shutdown running Tomcat server
Step1, Download java 8 or 11 as Jenkins supports that
Step2, Download Apache Tomcat Server
- download:https://tomcat.apache.org/
- select proper version and platform(windows or linux or mac)
- if windows then could select core : "64-bit_windows_zip"
Step3, Download Jenkins.war file
- download:?https://www.jenkins.io/download/
- select/choose "Generic Java package(.war)" to download in part "Long-term Support(LTS)"
Step4, Copy Jenkins.war to "webapps" folder of folder of Apache Tomcat Server
- find "webapps" folder in?Apache Tomcat (ex: apache-tomcat-9.0xxx-windows-x64)
- copy "Jenkins.war" to "webapps" of?Apache Tomcat?(ex: apache-tomcat-9.0xxx-windows-x64)
Step5, Start Apache Tomcat Server
- startup – To start tomcat server. By default it starts at 8080 port
- shutdown – To shutdown running tomcat server
- change default port 8080 to any port(ex:8010). if not change, it will conflict and prompt Error.
- how to change port? solution is: 1) go to?conf folder in Apache tomcat folder 2) find server.xml file,content like?<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />. 3) only change port ="8080" to "8010"
- click "startup.bat" to start server, and it will deploy Jenkins.war file as well.?
- Note: as first setup Jenkins, an initial passord like "daf9aaxxxxxxxxxxxxx" will be provided to unlock jenkins in console(also include the password path stored), keep the password in mind.?A?new folder "jenkins" is created in "webapps"
Step6, Hit Tomcat URL - (localhost:8080)
- Open a browser and input localhost:8080
Step7, Launch Jenkins from Apache URL
- Unlock Jenkins page will be prompted. find initial password "daf9aaxxxxxxxxxxxxx" according to page prompted path OR?get the information from?Step5. Then Input it.
Step8, Install plugins
- It will ask you to Customize jenkins by installing a good number of plugins. You can manually choose or install all suggested plugins. I will recommend to go for “Install suggested plugins“
- Plugin installation will take time. Let it be completed. Now it will ask you to create first admin user.?Set Username and passowd then keep it in mind. then create and click on “Save and Continue” button.
- Go through steps, then "Jenkins is ready!", click "Start using Jenkins", then "Welcome to Jenkins!" will be showed.?
|