{"id":3400,"date":"2023-05-26T11:33:04","date_gmt":"2023-05-26T08:33:04","guid":{"rendered":"https:\/\/www.virtono.com\/community\/?p=3400"},"modified":"2023-05-23T13:36:47","modified_gmt":"2023-05-23T10:36:47","slug":"how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/","title":{"rendered":"How to build a CI\/CD Pipeline with Jenkins on Ubuntu 20.04"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this tutorial, we will guide you through the process of building a CI\/CD pipeline with Jenkins on Ubuntu, empowering you to automate your software delivery process and streamline your development workflow. In today&#8217;s fast-paced software development world, Continuous Integration and Continuous Delivery (CI\/CD) have become crucial practices for ensuring the efficiency and quality of software releases. Jenkins, a popular open-source automation server, is widely used for setting up CI\/CD pipelines.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_1_Installing_Jenkins_on_Ubuntu\" title=\"Section 1: Installing Jenkins on Ubuntu\">Section 1: Installing Jenkins on Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_2_Starting_Jenkins\" title=\"Section 2: Starting Jenkins\">Section 2: Starting Jenkins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_3_Accessing_Jenkins\" title=\"Section 3: Accessing Jenkins\">Section 3: Accessing Jenkins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_4_Configuring_Jenkins\" title=\"Section 4: Configuring Jenkins\">Section 4: Configuring Jenkins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_5_Creating_a_Jenkins_Job\" title=\"Section 5: Creating a Jenkins Job\">Section 5: Creating a Jenkins Job<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_6_Extending_the_Pipeline_for_CD\" title=\"Section 6: Extending the Pipeline for CD\">Section 6: Extending the Pipeline for CD<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Section_7_Running_the_Pipeline\" title=\"Section 7: Running the Pipeline\">Section 7: Running the Pipeline<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/#Final_thoughts\" title=\"Final thoughts\">Final thoughts<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_1_Installing_Jenkins_on_Ubuntu\"><\/span>Section 1: Installing Jenkins on Ubuntu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To begin, we need to install Jenkins on Ubuntu machine. Open a terminal and execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code># sudo apt update\n\n# sudo apt install fontconfig openjdk-11-jre -y\n\n# curl -fsSL https:\/\/pkg.jenkins.io\/debian-stable\/jenkins.io-2023.key | sudo tee \\\n    \/usr\/share\/keyrings\/jenkins-keyring.asc > \/dev\/null\n\n# echo deb &#91;signed-by=\/usr\/share\/keyrings\/jenkins-keyring.asc] \\\n    https:\/\/pkg.jenkins.io\/debian-stable binary\/ | sudo tee \\\n    \/etc\/apt\/sources.list.d\/jenkins.list > \/dev\/null\n\n# sudo apt install ca-certificates\n\n# sudo apt update\n\n# sudo apt install jenkins -y<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These commands will update the package list, install Java Development Kit (JDK), add the Jenkins repository key, add the Jenkins repository to your sources, update the package list again, and finally, install Jenkins on Ubuntu <a href=\"https:\/\/virtono.com\/cloud-vps\" target=\"_blank\" rel=\"noopener\">machine<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_2_Starting_Jenkins\"><\/span>Section 2: Starting Jenkins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once Jenkins on Ubuntu is installed, we need to start its service. Execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo systemctl start jenkins\nsudo systemctl enable jenkins<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These commands will start Jenkins on Ubuntu service and configure it to start automatically on system boot.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_3_Accessing_Jenkins\"><\/span>Section 3: Accessing Jenkins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To access the Jenkins web interface, open a web browser and enter <code>http:\/\/localhost:8080<\/code> or <code>http:\/\/&lt;your-server-IP>:8080<\/code> if you are accessing Jenkins remotely. You will be prompted to enter an initial administrator password.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"409\" data-attachment-id=\"3401\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/attachment\/screenshot-2023-05-23-at-12-55-23\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.23.png?fit=596%2C409&amp;ssl=1\" data-orig-size=\"596,409\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-05-23-at-12.55.23\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.23.png?fit=596%2C409&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.23.png?resize=596%2C409&#038;ssl=1\" alt=\"How to build a CI\/CD Pipeline with Jenkins on Ubuntu\" class=\"wp-image-3401\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.23.png?w=596&amp;ssl=1 596w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.23.png?resize=300%2C206&amp;ssl=1 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Retrieve the password by executing the following command in the terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code has-white-color has-black-background-color has-text-color has-background\"><code>sudo cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"159\" data-attachment-id=\"3402\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/attachment\/screenshot-2023-05-23-at-12-55-55\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?fit=1634%2C346&amp;ssl=1\" data-orig-size=\"1634,346\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-05-23-at-12.55.55\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?fit=750%2C159&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?resize=750%2C159&#038;ssl=1\" alt=\"Jenkins on Ubuntu\" class=\"wp-image-3402\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?resize=1024%2C217&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?resize=300%2C64&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?resize=768%2C163&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?resize=1536%2C325&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.55.55.png?w=1634&amp;ssl=1 1634w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Copy the password and paste it into the Jenkins web interface to proceed with the setup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_4_Configuring_Jenkins\"><\/span>Section 4: Configuring Jenkins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have entered the initial administrator password, Jenkins will guide you through the setup wizard. Follow the on-screen instructions to install suggested plugins or choose specific plugins that suit your requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After plugin installation, create an admin user and provide the necessary details.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"439\" data-attachment-id=\"3403\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/attachment\/screenshot-2023-05-23-at-12-34-49\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?fit=1023%2C599&amp;ssl=1\" data-orig-size=\"1023,599\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-05-23-at-12.34.49\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?fit=750%2C439&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?resize=750%2C439&#038;ssl=1\" alt=\"Jenkins on Ubuntu Plugins\" class=\"wp-image-3403\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?w=1023&amp;ssl=1 1023w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?resize=300%2C176&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.34.49.png?resize=768%2C450&amp;ssl=1 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_5_Creating_a_Jenkins_Job\"><\/span>Section 5: Creating a Jenkins Job<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let&#8217;s create a Jenkins job to define our CI\/CD pipeline. Follow these steps:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"587\" data-attachment-id=\"3404\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-build-a-ci-cd-pipeline-with-jenkins-on-ubuntu-20-04\/attachment\/screenshot-2023-05-23-at-12-46-26\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?fit=792%2C620&amp;ssl=1\" data-orig-size=\"792,620\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot-2023-05-23-at-12.46.26\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?fit=750%2C587&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?resize=750%2C587&#038;ssl=1\" alt=\"\" class=\"wp-image-3404\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?w=792&amp;ssl=1 792w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?resize=300%2C235&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/Screenshot-2023-05-23-at-12.46.26.png?resize=768%2C601&amp;ssl=1 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\">\n<li>Click on &#8220;Create new jobs&#8221; on the Jenkins dashboard.<\/li>\n\n\n\n<li>Provide a name for your job and select the &#8220;Freestyle project&#8221; option.<\/li>\n\n\n\n<li>Click &#8220;OK&#8221; to proceed.<\/li>\n\n\n\n<li>In the configuration page, under the &#8220;Source Code Management&#8221; section, choose your preferred version control system (e.g., Git).<\/li>\n\n\n\n<li>Specify the repository URL and credentials, if required.<\/li>\n\n\n\n<li>Under the &#8220;Build Triggers&#8221; section, choose the appropriate trigger options (e.g., Poll SCM or webhook).<\/li>\n\n\n\n<li>In the &#8220;Build&#8221; section, define the build steps according to your project&#8217;s requirements. For example, you can add commands to compile the code, run tests, or package the application.<\/li>\n\n\n\n<li>Save the configuration.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_6_Extending_the_Pipeline_for_CD\"><\/span>Section 6: Extending the Pipeline for CD<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To extend the pipeline for Continuous Delivery, we need to add deployment steps. Follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to your Jenkins job configuration page.<\/li>\n\n\n\n<li>Under the &#8220;Post-build Actions&#8221; section, click &#8220;Add post-build action.&#8221;<\/li>\n\n\n\n<li>Choose the appropriate deployment action based on your deployment strategy (e.g., SSH, FTP, or containerization).<\/li>\n\n\n\n<li>Configure the deployment parameters such as the target server, credentials, and destination directory.<\/li>\n\n\n\n<li>Save the configuration.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Section_7_Running_the_Pipeline\"><\/span>Section 7: Running the Pipeline<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To run the CI\/CD pipeline, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the Jenkins dashboard.<\/li>\n\n\n\n<li>Locate your Jenkins job and click on it.<\/li>\n\n\n\n<li>Click on the &#8220;Build Now&#8221; button to trigger a manual build.<\/li>\n\n\n\n<li>Jenkins will execute the defined build steps, run tests, and deploy the application (if configured).<\/li>\n\n\n\n<li>Monitor the build console output for any errors or issues.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading has-accent-color has-text-color\"><span class=\"ez-toc-section\" id=\"Final_thoughts\"><\/span>Final thoughts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! You have successfully built a CI\/CD pipeline with Jenkins on Ubuntu using the provided Linux commands. By automating your software delivery process, you can improve productivity and ensure high-quality releases. Continue exploring Jenkins and its vast ecosystem of plugins to further enhance your CI\/CD pipeline and optimize your development workflow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will guide you through the process of building a CI\/CD pipeline with Jenkins on Ubuntu, empowering you to automate your software delivery process and streamline your development workflow. In today&#8217;s fast-paced software development world, Continuous Integration and Continuous Delivery (CI\/CD) have become crucial practices for ensuring<\/p>\n","protected":false},"author":8,"featured_media":3405,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[408,407,409,405,406],"class_list":["post-3400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to","tag-install-jenkins","tag-install-jenkins-on-ubuntu","tag-install-jenkins-ubuntu-20-04","tag-jenkins-on-ubuntu","tag-jenkins-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-build-a-CI-CD-Pipeline-with-Jenkins-on-Ubuntu.png?fit=600%2C330&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-SQ","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2922,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-nginx-on-ubuntu-20-04\/","url_meta":{"origin":3400,"position":0},"title":"How To Install Nginx on Ubuntu 20.04","author":"George B.","date":"July 29, 2022","format":false,"excerpt":"What is Nginx? Nginx, abbreviated NGI\u0418X, is a web server that also functions as a reverse proxy, load balancer, mail proxy, and HTTP cache. Igor Sysoev created the software, which was made public in 2004. Nginx is free and open-source software distributed under the terms of the 2-clause BSD license.\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Nginx-Logo.jpeg?fit=1200%2C578&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2759,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/froxlor-on-ubuntu-20\/","url_meta":{"origin":3400,"position":1},"title":"Install Froxlor on Ubuntu 20.04","author":"George B.","date":"July 14, 2022","format":false,"excerpt":"What is Froxlor? Froxlor: The server administration software for your needs. Lightweight and fast - manage customers, IPs, domains, SSL, emails, databases, FTP accounts, and more. Froxlor installation and configuration for Ubuntu 20.04 Step 1 - Install the requirements on your server using the apt tool sudo apt -y install\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/1628625477276.jpeg?fit=1200%2C585&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/1628625477276.jpeg?fit=1200%2C585&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/1628625477276.jpeg?fit=1200%2C585&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/1628625477276.jpeg?fit=1200%2C585&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/1628625477276.jpeg?fit=1200%2C585&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2927,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-node-js-on-ubuntu-20-04\/","url_meta":{"origin":3400,"position":2},"title":"How To Install Node.js on Ubuntu 20.04","author":"George B.","date":"August 3, 2022","format":false,"excerpt":"What is Node.js? Node.js is a back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside of a web browser and was designed to build scalable network applications. Step 1 - Update the server package index sudo apt update Step 2 - Install Node.js on\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/nodejs-new-pantone-black.png?fit=1200%2C735&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/nodejs-new-pantone-black.png?fit=1200%2C735&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/nodejs-new-pantone-black.png?fit=1200%2C735&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/nodejs-new-pantone-black.png?fit=1200%2C735&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/nodejs-new-pantone-black.png?fit=1200%2C735&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":2857,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-ispmanager-on-ubuntu-20-04\/","url_meta":{"origin":3400,"position":3},"title":"Install ISPmanager on Ubuntu 20.04","author":"George B.","date":"July 19, 2022","format":false,"excerpt":"What is ISPmanager? ISPmanager is well-known as a commercial back-end dashboard built on Linux. The panel was created in 1997, and its functionality is comparable to those of other panels like cPanel or Plesk. Like other control panels, ISPmanager offers capabilities for managing websites, creating users, managing domains, emails, databases,\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-15-at-11.41.16.png?fit=694%2C607&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-15-at-11.41.16.png?fit=694%2C607&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/Screenshot-2022-07-15-at-11.41.16.png?fit=694%2C607&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":2897,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-apache-on-ubuntu-20-04%ef%bf%bc\/","url_meta":{"origin":3400,"position":4},"title":"How To Install Apache on\u00a0Ubuntu 20.04\ufffc","author":"George B.","date":"July 21, 2022","format":false,"excerpt":"What is Apache HTTP? The Apache HTTP Server is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.\u00a0 Step 1 - Updating the system\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/what-is-apache-1.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/what-is-apache-1.png?fit=1200%2C600&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/what-is-apache-1.png?fit=1200%2C600&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/what-is-apache-1.png?fit=1200%2C600&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2022\/07\/what-is-apache-1.png?fit=1200%2C600&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3308,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-ispconfig-on-ubuntu-20-04\/","url_meta":{"origin":3400,"position":5},"title":"How To Install ISPConfig on Ubuntu 20.04","author":"George B.","date":"April 25, 2023","format":false,"excerpt":"This article will guide you through the process of installing ISPConfig on Ubuntu 20.04. If you are looking for an easy-to-use, open-source web hosting control panel, ISPConfig may be the right choice for you. ISPConfig is a free and open-source hosting control panel that allows you to manage multiple servers\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-ISPConfig-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-ISPConfig-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-ISPConfig-on-Ubuntu.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=3400"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3400\/revisions"}],"predecessor-version":[{"id":3406,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/3400\/revisions\/3406"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/3405"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=3400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=3400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=3400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}