LightBlog

Jenkins - What is Jenkins & How to Install Jenkins


What is Continuous Integration?
·         Developers commit code to a shared repository on a regular basis
·         Version control system is being monitored. When a commit is detected, a build will be triggered automatically.
·         If the build is not green, developers will be notified immediately.


from above Diagram,
·         Automated builds are scheduled on a regular basis.
·         Build script compiles the application and runs a set of automated tests.
·         Developers now commit their changes regularly.
·         A build is triggered whenever new code is committed to the central repository.
·         Build servers would alert the team members in case of build failure.
·         Broken builds are usually treated as a high priority issue and are fixed quickly.


Continuous Integration
The practice of merging development work with the main branch constantly.

Continuous Delivery
Continual delivery of code to an environment once the code is ready to ship. This could be staging or production. The idea is the product is delivered to a user base, which can be QAs or customers for review and inspection.

Continuous Deployment
The deployment or release of code to production as soon as it is ready.



What is Jenkins
·         Jenkins is a continuous integration and build server.
·         It is used to manually, periodically, or automatically build software development projects.
·         It is an open source Continuous Integration tool written in Java.
·         Jenkins is used by teams of all different sizes, for projects with various languages.


Features
·         Easy to use
·         Support different version control systems
·         Code quality metrics
·         Build notifiers
·         UI customization



Installing Jenkins

·         Check Java 8 (either a JRE or Java Development Kit (JDK) is fine)
·         Download Jenkins.
·         Open up a terminal in the download directory.
·         Run java -jar jenkins.war --httpPort=8181, Copy the code from commandline
*************************************************************

Jenkins initial setup is required. lease use the following password to proceed to installation:

2d4dd377b9d34f36adfc23f1e4a60d9f

This may also be found at: C:\Users\satya\.jenkins\secrets\initialAdminPassword

*************************************************************

·         Browse to http://localhost:8181, paste the code

·         Follow the instructions to complete the installation.

For java 10.x use
java --add-modules java.xml.bind -jar jenkins.war --enable-future-java --httpPort=8080 --prefix=/jenkins


Jenkins Dashboard
Let's understand the dashboard parameters:
·         New Item: To create new build job, pipeline or build flow in Jenkins 2.
·         Manage Jenkins: Allows Jenkins 2 administrator to manage plugins, users, security, nodes, credentials, global tools configuration and so on.
·         To know about existing nodes that are used for build execution, click on Manage Nodes. master node entry will be available. It is the node where Jenkins is installed. We can add multiple slave node to distribute the load.
Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment