Friday, September 20, 2019

Post#95.Jenkins Introduction & Installation



Jenkins
·       
Jenkins is an open source tool written in Java. It provides continuous delivery and continuous integration (CI) service for software development.
Continuous Integration (CI) is a development practice where developers integrate code into a shared repository frequently, preferably several times a day. Each integration can then be verified by an automated build and automated tests.
Jenkins supports many plugins which you can integrate such as Git, SVN, build pipeline and many more. 


Why Jenkins with Selenium?
  • Running Selenium tests in Jenkins allows you to run your tests every time your software changes and deploy the software to a new environment when the tests pass.
  • Jenkins can schedule your tests to run at specific time.
  • You can save the execution history and Test Reports.
  • Jenkins supports Maven for building and testing a project in continuous integration.
Install Jenkins
1. Navigate to: https://jenkins.io/download/
2. Download the Generic war files, choose the war file from the stable release.

3. Go to the folder in terminal/CMD where you have stored the jenkins.war file and execute below command.
java -jar jenkins.war
4. You would be able to success screen once we execute the command.

5. Navigate to the url in your browser http://localhost:8080, sometimes a it may take upto 3 minutes to open the page, so have patience if you get no page/ error page.

6. Please navigate to the highlighted path in your browser, and copy the password.

Note: In case you get to a page titled Offline, with the message "This Jenkins instance appears to be offline" and offers options to "Configure Proxy" or "Skip Plugin Installation" then refer below solution.

Solution:
Open hudson.model.UpdateCenter.xml File.


Path- C:\Users\{username}\.jenkins\hudson.model.UpdateCenter.xml
Change URL to http instead of https. Save the file.
Restart Jenkins and reload the website, it no longer shows offline.
7. Install / select plugins based on your need, you can install plugins after installation of Jenkins as well.


8. You may need to wait for 10-15 mins for completion of installation of plugins.

9. Fill the user details and click on Save and continue button.

10. Click on Save and finish button.

11. Click on Start using Jenkins button

12. Navigate to the Jenkins Dashboard (http://localhost:8080 by default). If you reached below page then you installation is successful.



No comments:

Post a Comment