Jenkins Notes
Jenkins Notes
Jenkins Notes
« Jenkins is an open-source project written in Java, that runs on Windows, macOS, and
other Unix-like OS. Itis a free community supported and might be your first choice tool for CI
(Continuous Integration).
« Jenkins automates the entire software development life cycle.
« Jenkins was originally developed by Sun Microsystem in 2004 under the name Hudson.
« The project was later named Jenkins when oracle bought Microsystems.
« It can run on any major platform without any compatibility issues.
« Wherever developers write code, we integrate all that code and then build, test, and
deliver/deploy to the client. This process is called CIICD.
« Because of Cl, bugs will be reported fast and get rectified fast: So the entire software development
happens fast.
@ Workflow of Jenkins
« Once developers put code in GitHub, Jenkins pulls that code and sends it to Maven for Build or
other build tools.
« Once the build is done, Jenkins pulls that code and sends it to Selenium for testing.
+ Once testing is done, Jenkins wil pull that code and send it to Artifactory as per requirement.
@ Advantages of Jenkins
« Jenkins is not just a tool. Itis a framework, i.e. you can do whatever you want. All you need is just
plugins,
« We can attach slaves (nodes) to Jenkins's master. It instructs others (slaves) to do Jobs. If slaves are
not available, Jenkins itself does the Job.
« Jenkins also behaves as a Cron Server replacement, i.e- can do the scheduled task.
@ What is Node
« A machine that is part of the Jenkins environment and capable of executing Pipelines or jobs. Both
the Controller and Agents
@ What is Node
« A machine that is part of the Jenkins environment and capable of executing Pipelines or jobs. Both
the Controller and Agents
« An agent is typically a machine, or container, which connects to a Jenkins controller and executes
tasks when directed by the
controller
@ What is Pipeline - A pipeline is a collection of steps or jobs which are interlinked with one another
in a sequence.
Scripted: Scripted was the first and most traditional implementation of the pipeline as a code in
Jenkins. It was designed as a
Install Jenkins
Install java
Add Keys
Install Jenkins