{"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-02-06T07:46:09","modified_gmt":"2026-02-06T06:46:09","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":"<b>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.<\/b><h2>What is CI\/CD?<\/h2><img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image6.webp\" alt=\"\" loading=\"lazy\">\n\n<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.\n<ul>\n \t<li style=\"font-weight: 400\"><b>Continuous Integration (CI) <\/b>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 \t<li style=\"font-weight: 400\"><b>Continuous Deployment (CD) <\/b>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<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><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<h2>Why use Jenkins?<\/h2>\nJenkins is highly popular for automating repetitive tasks and aiding <b>developers<\/b> and DevOps teams. Here are the primary reasons why Jenkins is an essential choice:\n\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image4.webp\" alt=\"\" loading=\"lazy\">\n<h3>Open-source and flexible tool<\/h3>\nJenkins is entirely open-source, meaning it&#8217;s free and supported by an active community that continuously contributes to its enhancement.\n\nIts modular architecture is backed by thousands of plugins, allowing it to be adapted to any requirement.\n\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image1.webp\" alt=\"\" loading=\"lazy\">\n<h3>Automation and time-saving<\/h3>\nJenkins 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.\n\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image3.webp\" alt=\"\" loading=\"lazy\">\n<h3>Continuous Integration and Continuous Delivery (CI\/CD)<\/h3>\nJenkins 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.\n\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image5.webp\" alt=\"\" loading=\"lazy\">\n<h3>Compatibility with all platforms<\/h3>\nJenkins 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.\n\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image2.webp\" alt=\"\" loading=\"lazy\">\n<h3>Advanced pipeline management with Jenkinsfile<\/h3>\nWith Jenkins, you can define CI\/CD pipelines as code through a file called Jenkinsfile. This file allows you to:\n<ul>\n \t<li style=\"font-weight: 400\">Precisely describe pipeline steps (build, tests, validation, deployment).<\/li>\n \t<li style=\"font-weight: 400\">Easily version and share pipeline configurations.<\/li>\n \t<li style=\"font-weight: 400\">Facilitate collaboration between DevOps teams and developers.<\/li>\n<\/ul>\n<img decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image7.webp\" alt=\"\" loading=\"lazy\">\n<h3>An active community and extensive support<\/h3>\nAs a mature open-source project, Jenkins boasts a vast community that contributes to its improvement and regularly offers updates and new plugins.\n\nFor companies requiring advanced support, several third-party services also offer commercial solutions based on Jenkins.\n\n<a href=\"\/en\/courses\/cloud-dev\/devops-engineer\">\nKnow how to use Jenkins for CI\/CD\n<\/a>\n<h2>Installation and configuration<\/h2>\nJenkins 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.\n<h3>Installation<\/h3>\n<h4>1. First, it is necessary to add the Jenkins repository and update the packages:<\/h4>\n<pre>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<\/pre>\n<h4>2. Jenkins installation is then done as follows:<\/h4>\n<pre>sudo apt install -y jenkins<\/pre>\n<h4>3. Start the Jenkins service and check its status:<\/h4>\n<pre>sudo systemctl start jenkins\nsudo systemctl status jenkins<\/pre>\n<h4>4. Access its web interface:<\/h4>\nIt is available here by default: <a href=\"\/\">http:\/\/localhost:8080<\/a>.\n\n<img decoding=\"async\" width=\"601\" height=\"431\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2025\/04\/image8.webp\" alt=\"\" loading=\"lazy\">\n\nIf you prefer installation via Docker, the command is as follows:\n<pre>docker run -p 8080:8080 -p 50000:50000 -d --name jenkins jenkins\/jenkins:lts<\/pre>\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\"><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<h3>Initial configuration<\/h3>\nUpon first accessing Jenkins, an initial password will be required. It is available via this command:\n<pre>sudo cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/pre>\nYou will then be able to create new users and modify the administrator account.\n\nSubsequently, some plugins that may be essential include:\n<ul>\n \t<li style=\"font-weight: 400\"><a href=\"https:\/\/liora.io\/en\/all-about-data-pipeline\"><b>Pipeline<\/b><\/a>: to manage CI\/CD workflows.<\/li>\n \t<li style=\"font-weight: 400\"><b>Git<\/b>: for integration with <a href=\"https:\/\/liora.io\/en\/github-what-is-it\">GitHub<\/a>\/GitLab\/Bitbucket repositories.<\/li>\n \t<li style=\"font-weight: 400\"><a href=\"https:\/\/liora.io\/en\/docker-definition-and-tutorial\"><b>Docker<\/b><\/a>: if you want to run builds in containers.<\/li>\n \t<li style=\"font-weight: 400\"><b>Blue Ocean<\/b>: a modern interface for managing pipelines.<\/li>\n<\/ul>\n<h4>Creating the first job<\/h4>\nIn the Jenkins interface, select <b>New Job<\/b>. After providing a name, select <b>Freestyle Project<\/b>.\n\nThen add a repository in <b>Source Code Management<\/b>, for example <a href=\"https:\/\/github.com\/dst-project.git\">https:\/\/github.com\/dst-project.git<\/a>\n\nAdd a simple shell script to test, for example:\n<pre>echo \"Build en cours...\"\nmvn clean package<\/pre>\nAfter saving, click on <b>Run build<\/b> to see Jenkins perform the actions.\n<h2>In conclusion<\/h2>\nJenkins is an essential tool for <b>continuous integration and deployment<\/b>. Its flexibility, rich plugin ecosystem, and active community make it a preferred solution for teams wishing to accelerate and secure their <b>development cycles<\/b>.\n\n<a href=\"\/en\/courses\/cloud-dev\/cloud-engineer\">\nDiscover our cloud courses\n<\/a>","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":205564,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/194929\/revisions\/205564"}],"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}]}}