{"id":194929,"date":"2025-04-29T06:30:00","date_gmt":"2025-04-29T05:30:00","guid":{"rendered":"https:\/\/liora.io\/en\/?p=194929"},"modified":"2026-08-08T14:42:45","modified_gmt":"2026-08-08T13:42:45","slug":"all-about-jenkins","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/all-about-jenkins","title":{"rendered":"Jenkins: What is it? How to use it?"},"content":{"rendered":"\n<p><strong>Jenkins is a widely used open-source automation server for continuous development, testing, and deployment of applications. It automates repetitive tasks and facilitates code integration within a project, ensuring better productivity and a reduction in human errors. With a modular architecture and a vast number of plugins, Jenkins seamlessly integrates with popular tools.<\/strong><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-ci-cd\">What is CI\/CD?<\/h2>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for What is CI\/CD?\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image6.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<p><a href=\"https:\/\/liora.io\/en\/all-about-ci-cd\">CI\/CD, or &#8220;Continuous Integration \/ Continuous Delivery&#8221;<\/a>, is a development practice aimed at automating the stages of an application\u2019s lifecycle. It minimizes human errors, speeds up delivery times, and enhances application quality.<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Continuous Integration (CI) <\/strong>allows developers to frequently commit code to a shared repository. Jenkins automatically ensures each change is compiled, tested, and validated before being integrated into the main project.<\/li>\n<li><strong>Continuous Deployment (CD) <\/strong>ensures that once the code is validated, it is automatically made available for deployment, whether in a test, pre-production, or production environment.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/cloud-dev\/devops-engineer\">Learn all about CI\/CD<\/a><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"why-use-jenkins\">Why use Jenkins?<\/h2>\n\n\n<p>Jenkins is highly popular for automating repetitive tasks and aiding <strong>developers<\/strong> and DevOps teams. Here are the primary reasons why Jenkins is an essential choice:<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Why use Jenkins?\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image4.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"open-source-and-flexible-tool\">Open-source and flexible tool<\/h3>\n\n\n<p>Jenkins is entirely open-source, meaning it&#8217;s free and supported by an active community that continuously contributes to its enhancement.<\/p>\n\n\n<p>Its modular architecture is backed by thousands of plugins, allowing it to be adapted to any requirement.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Open-source and flexible tool\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image1.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"automation-and-time-saving\">Automation and time-saving<\/h3>\n\n\n<p>Jenkins enables automation of the entire development cycle, from the initial build to the final deployment. It can execute complex tasks without human intervention, enabling teams to focus on coding and innovation rather than repetitive manual processes.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Automation and time-saving\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image3.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"continuous-integration-and-continuous-delivery-ci-cd\">Continuous Integration and Continuous Delivery (CI\/CD)<\/h3>\n\n\n<p>Jenkins is one of the most utilized tools for setting up CI\/CD pipelines. These pipelines facilitate faster and more reliable integration, testing, and delivery of code.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Continuous Integration and Continuous Delivery (CI\/CD)\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image5.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"compatibility-with-all-platforms\">Compatibility with all platforms<\/h3>\n\n\n<p>Jenkins is cross-platform. It can be installed locally, run in a Docker container, deployed on on-premise servers, or hosted in the cloud. This flexibility allows teams to use it in varied infrastructures, regardless of their working environment.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Compatibility with all platforms\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image2.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"advanced-pipeline-management-with-jenkinsfile\">Advanced pipeline management with Jenkinsfile<\/h3>\n\n\n<p>With Jenkins, you can define CI\/CD pipelines as code through a file called Jenkinsfile. This file allows you to:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li>Precisely describe pipeline steps (build, tests, validation, deployment).<\/li>\n<li>Easily version and share pipeline configurations.<\/li>\n<li>Facilitate collaboration between DevOps teams and developers.<\/li>\n<\/ul>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:512px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for Advanced pipeline management with Jenkinsfile\" decoding=\"async\" height=\"512\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image7.webp\" style=\"width:512px;max-width:100%;height:auto\" width=\"512\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"an-active-community-and-extensive-support\">An active community and extensive support<\/h3>\n\n\n<p>As a mature open-source project, Jenkins boasts a vast community that contributes to its improvement and regularly offers updates and new plugins.<\/p>\n\n\n<p>For companies requiring advanced support, several third-party services also offer commercial solutions based on Jenkins.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installation-and-configuration\">Installation and configuration<\/h2>\n\n\n<p>Jenkins is a powerful yet simple tool to install. This guide explains how to install Jenkins on Linux, along with its initial configuration to get started.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"installation\">Installation<\/h3>\n\n\n<h4 class=\"wp-block-heading\" id=\"1-first-it-is-necessary-to-add-the-jenkins-repository-and-update-the-packages\">1. First, it is necessary to add the Jenkins repository and update the packages:<\/h4>\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt install -y fontconfig openjdk-17-jre\nwget -q -O - https:\/\/pkg.jenkins.io\/debian-stable\/jenkins.io.key | sudo apt-key add -\nsudo sh -c 'echo deb http:\/\/pkg.jenkins.io\/debian-stable binary\/ &gt; \/etc\/apt\/sources.list.d\/jenkins.list'\nsudo apt update<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"2-jenkins-installation-is-then-done-as-follows\">2. Jenkins installation is then done as follows:<\/h4>\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y jenkins<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"3-start-the-jenkins-service-and-check-its-status\">3. Start the Jenkins service and check its status:<\/h4>\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start jenkins\nsudo systemctl status jenkins<\/code><\/pre>\n\n\n<h4 class=\"wp-block-heading\" id=\"4-access-its-web-interface\">4. Access its web interface:<\/h4>\n\n\n<p>It is available here by default: http:\/\/localhost:8080.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:601px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for 4. Access its web interface:\" decoding=\"async\" height=\"431\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image8.webp\" style=\"width:601px;max-width:100%;height:auto\" width=\"601\"\/><\/figure>\n\n\n<p>If you prefer installation via Docker, the command is as follows:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>docker run -p 8080:8080 -p 50000:50000 -d --name jenkins jenkins\/jenkins:lts<\/code><\/pre>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/cloud-dev\/devops-engineer\">Master CI\/CD automation with Jenkins<\/a><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"initial-configuration\">Initial configuration<\/h3>\n\n\n<p>Upon first accessing Jenkins, an initial password will be required. It is available via this command:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>sudo cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/code><\/pre>\n\n\n<p>You will then be able to create new users and modify the administrator account.<\/p>\n\n\n<p>Subsequently, some plugins that may be essential include:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/liora.io\/en\/all-about-data-pipeline\"><strong>Pipeline<\/strong><\/a>: to manage CI\/CD workflows.<\/li>\n<li><strong>Git<\/strong>: for integration with <a href=\"https:\/\/liora.io\/en\/github-what-is-it\">GitHub<\/a>\/GitLab\/Bitbucket repositories.<\/li>\n<li><a href=\"https:\/\/liora.io\/en\/docker-definition-and-tutorial\"><strong>Docker<\/strong><\/a>: if you want to run builds in containers.<\/li>\n<li><strong>Blue Ocean<\/strong>: a modern interface for managing pipelines.<\/li>\n<\/ul>\n\n\n<h4 class=\"wp-block-heading\" id=\"creating-the-first-job\">Creating the first job<\/h4>\n\n\n<p>In the Jenkins interface, select <strong>New Job<\/strong>. After providing a name, select <strong>Freestyle Project<\/strong>.<\/p>\n\n\n<p>Then add a repository in <strong>Source Code Management<\/strong>, for example <a href=\"https:\/\/github.com\/dst-project.git\">https:\/\/github.com\/dst-project.git<\/a><\/p>\n\n\n<p>Add a simple shell script to test, for example:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>echo \"Build en cours...\"\nmvn clean package<\/code><\/pre>\n\n\n<p>After saving, click on <strong>Run build<\/strong> to see Jenkins perform the actions.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"in-conclusion\">In conclusion<\/h2>\n\n\n<p>Jenkins is an essential tool for <strong>continuous integration and deployment<\/strong>. Its flexibility, rich plugin ecosystem, and active community make it a preferred solution for teams wishing to accelerate and secure their <strong>development cycles<\/strong>.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Jenkins is a widely used open-source automation server for continuous development, testing, and deployment of applications. It automates repetitive tasks and facilitates code integration within a project, ensuring better productivity and a reduction in human errors. With a modular architecture and a vast number of plugins, Jenkins seamlessly integrates with popular tools. What is CI\/CD? [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":194931,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2434],"class_list":["post-194929","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-dev"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/194929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=194929"}],"version-history":[{"count":5,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/194929\/revisions"}],"predecessor-version":[{"id":210684,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/194929\/revisions\/210684"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/194931"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=194929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=194929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}