Jenkins – Java application, Platform independent.
used: Continuous integration and continuous delivery.
Jenkins pull code from git, if build unsuccessful it inform developers. If build successful: post build actions unit test, developers will get status report.
- Steps to Install Jenkins:
Step1: Download Jenkins
download war file
step 2: Place war file in any location on system
step 3: go to command/terminal
– goto folder where jenkins.war is
– Run: java -jar jenkins.war
– copy password: save it
you will find same password in .jenkins/secrets/initialAdmin Password
step 4: Goto browser: http://localhost:8080, paste password
step 5: Install suggested plugins or select plugins to install
step 6: Create First Admin user
Step 7: Start using Jenkins
Step 8: All config, logs, Plugin in jenkin Directory: it is hidden and found in your home folder i.e. here in my case /Users/vijay/.jenkins
- Setup Jenkins on Tomcat:
Why on Tomcat? start all applications on same server. Most applications on tomcat
Step 1: Tomcat 5 and above, need java7 and above should be avaliable
Download tomcat:goto tomcat.apache.org, download tomcat 8
unzip and place Tomcat folder at any location
step 2: Copy and paste the jenkins folder inside Tomcat/Webapps folder
Step 3: Goto Command prompt/Termina
goto tomcat/bin directory
– make all files executable chmod +x *.sh
Step 4: Start Tomcat: ./startup.sh, to shutdown ./shutdown.sh
Step 5: Verify if Tomcat started goto http://localhost:8080
Step 6: Verify if jenkins is running on tomcat http://locathost:8080/jenkins, enter username as admin and password
Step 7: To start jenkins on standalone on different port : goto folder where jenkins.war file is, #java -jar jenkins.war –httpPort=8181
Step 9: go to http://localhost:8181 and check you will see it is running.