{"id":3628,"date":"2024-05-23T09:07:22","date_gmt":"2024-05-23T08:07:22","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=3628"},"modified":"2024-05-24T10:53:41","modified_gmt":"2024-05-24T09:53:41","slug":"how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/","title":{"rendered":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS"},"content":{"rendered":"<h1><\/h1>\n<h1>INTRODUCTION:<\/h1>\n<p>In this article we are going to <strong>setup jenkins CI\/CD pipeline to automate build and deployment for ECS, &#8211;<\/strong><span><strong>Jenkins<\/strong> is an open-source automation server widely used for building, testing, and deploying software projects. It allows developers to automate various parts of the software development process, including building code, running tests, and deploying applications. Jenkins can be integrated with version control systems like Git, enabling automatic triggering of builds whenever new code is committed.<\/span><\/p>\n<p><span>If you would like to follow a video tutorial please use our YouTube video.<\/span><\/p>\n<div class=\"wpex-responsive-embed\"><iframe loading=\"lazy\" title=\"Hands-on: How to setup Jenkins pipeline for bitbucket repository | Easydeploy.io\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/y3E6AA61HWg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<h1>WHAT IS ECS:<\/h1>\n<p><span><strong>ECS<\/strong> is a fully managed container orchestration service provided by <strong>Amazon Web Services<\/strong>. It enables you to run, stop, and manage Docker containers on a cluster of virtual machines that are managed by AWS. <strong>ECS<\/strong> simplifies the process of deploying, managing, and scaling containerized applications.<\/span><\/p>\n<h1>WHAT IS ECR:<\/h1>\n<p><span><strong>ECR<\/strong> is a fully managed Docker container registry service provided by <strong>Amazon Web Services<\/strong>. It allows you to store, manage, and deploy Docker container images securely. <strong>ECR<\/strong> is tightly integrated with other AWS services, particularly <strong>Amazon ECS<\/strong> and <strong>Amazon Elastic Kubernetes Service<\/strong>, making it easy to deploy containerized applications on AWS infrastructure.<\/span><\/p>\n<h1>PREREQUISITES:<\/h1>\n<ul>\n<li>AWS account.<\/li>\n<li>AWS account with ecr and ecs full access.<\/li>\n<li>Basic knowledge about Jenkins.<\/li>\n<\/ul>\n<h1>INTENDED AUDIENCE:<\/h1>\n<ul>\n<li>Engineer<\/li>\n<\/ul>\n<h1>JENKINS-INSTALLING PLUGINS:<\/h1>\n<p><strong>Go inside jenkins<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877.png\" alt=\"Jenkins dashboard\" width=\"1919\" height=\"975\" class=\"alignnone wp-image-3638 size-full\" title=\"Jenkins dashboard\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877-1024x520.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-110913-e1716444239877-1536x780.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>Click on manage jenkins &gt; plugins &gt; Available plugins<\/p>\n<p>Install the plugins shown below<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707.png\" alt=\"installing plugins\" width=\"1919\" height=\"975\" class=\"alignnone wp-image-3640 size-full\" title=\"installing plugins\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707-1024x520.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-111226-1-e1716444211707-1536x780.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/h3>\n<h1>ADDING WEBHOOKS:<\/h1>\n<p>Go to the Reactjs soure code in Bitbucket &gt; click on Repository settings<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989.png\" alt=\"Repository settings\" width=\"1918\" height=\"971\" class=\"alignnone wp-image-3641 size-full\" title=\"Repository setting\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989-1024x518.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112330-e1716444270989-1536x778.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/h3>\n<p>Click on Webhooks &gt; give a name to webhook &gt; paste the url of the jenkins in the url section &gt; click on generate secret &gt; create webhook<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363.png\" alt=\"Adding webhooks\" width=\"1918\" height=\"962\" class=\"alignnone wp-image-3642 size-full\" title=\"Adding webhooks\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363-300x150.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363-1024x514.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363-768x385.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-112613-e1716444301363-1536x770.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<h1>CREATING NEW ITEM:<\/h1>\n<p>Now go to the jenkins server &gt; click on new item &gt; select pipeline &gt; click ok<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139.png\" alt=\"Adding new Item\" width=\"1918\" height=\"974\" class=\"alignnone wp-image-3643 size-full\" title=\"Adding new Item\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139-1024x520.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-113229-e1716444459139-1536x780.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>In general settings enable Github projects and paste the repository url where we have the source code of react js<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022.png\" alt=\"Enable github project\" width=\"1917\" height=\"962\" class=\"alignnone wp-image-3644 size-full\" title=\"Enable github project\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022.png 1917w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022-300x151.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022-1024x514.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022-768x385.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114022-1536x771.png 1536w\" sizes=\"(max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>In build trigger enable build when a change is pushed to bitbucket and paste the repository url<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446.png\" alt=\"Build Triggers\" width=\"1862\" height=\"618\" class=\"alignnone wp-image-3645 size-full\" title=\"Build Triggers\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446.png 1862w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446-300x100.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446-1024x340.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446-768x255.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114446-1536x510.png 1536w\" sizes=\"(max-width: 1862px) 100vw, 1862px\" \/><\/p>\n<p>Enable poll scm and enter five <span>asterisk symbol\u00a0<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754.png\" alt=\"Poll SCM\" width=\"1916\" height=\"967\" class=\"alignnone wp-image-3646 size-full\" title=\"Poll SCM\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754.png 1916w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754-300x151.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754-1024x517.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754-768x388.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-114754-1536x775.png 1536w\" sizes=\"(max-width: 1916px) 100vw, 1916px\" \/><\/p>\n<p>In pipeline definition select pipeline script from scm &gt; In scm select Git &gt; paste the repository link<\/p>\n<p>add the credentials that is user name and password of the bitbucket<\/p>\n<h3><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302.png\" alt=\"Pipeline configuration\" width=\"1918\" height=\"846\" class=\"alignnone wp-image-3647 size-full\" title=\"Pipeline configuration\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302-300x132.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302-1024x452.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302-768x339.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115302-1536x678.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/h3>\n<p>Finally add the script path &gt; apply and save<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808.png\" alt=\"Applly and save\" width=\"1918\" height=\"1078\" class=\"alignnone wp-image-3648 size-full\" title=\"Applly and save\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808-300x169.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808-1024x576.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808-768x432.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-115808-1536x863.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<h1>BUILDING AND DEPLOYING THE APPLICATION USING PIPELINES:<\/h1>\n<p>Go back to jenkins server and click on Build now<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205.png\" alt=\"build now\" width=\"1917\" height=\"971\" class=\"alignnone wp-image-3649 size-full\" title=\"build now\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205.png 1917w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120205-1536x778.png 1536w\" sizes=\"(max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>our pipeline is running and ecs is successfully deployed.<\/p>\n<p>Now go to the ecs console &gt; go inside the cluster you created &gt; go inside task and copy the public ip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757.png\" alt=\"copy task public ip\" width=\"1918\" height=\"972\" class=\"alignnone wp-image-3650 size-full\" title=\"copy task public ip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-120757-1536x778.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Now search the public ip.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030.png\" alt=\"React js app\" width=\"1919\" height=\"972\" class=\"alignnone wp-image-3651 size-full\" title=\"React js app\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030-300x152.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030-1024x519.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030-768x389.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121030-1536x778.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>React app is successfully running.<\/p>\n<p>Now change the source code and see whether the pipeline is automatically running<\/p>\n<p>click on commit<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223.png\" alt=\"Changing source code\" width=\"1918\" height=\"977\" class=\"alignnone wp-image-3652 size-full\" title=\"Changing source code\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223-1024x522.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223-768x391.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121223-1536x782.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602.png\" alt=\"ECS Deployment\" width=\"1918\" height=\"978\" class=\"alignnone wp-image-3653 size-full\" title=\"ECS Deployment\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602-1024x522.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602-768x392.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121602-1536x783.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>You can see that the pipeline got triggered automatically and deployed ECS<\/p>\n<p>Now go to the ecs console &gt; go inside the cluster we created &gt; go inside the newly created task &gt; copy the public ip<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758.png\" alt=\"Copy task public ip\" width=\"1918\" height=\"975\" class=\"alignnone wp-image-3654 size-full\" title=\"Copy task public ip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758.png 1918w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758-300x153.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758-1024x521.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758-768x390.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-121758-1536x781.png 1536w\" sizes=\"(max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p>Now search the public ip &gt; react js is successfully running<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049.png\" alt=\"React js app\" width=\"1919\" height=\"968\" class=\"alignnone wp-image-3655 size-full\" title=\"React js app\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049.png 1919w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049-300x151.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049-1024x517.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049-768x387.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-122049-1536x775.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>The content is changed automatically when we changed the source code.<\/p>\n<p>The pipeline got auto triggered and changed the content.<\/p>\n<p>&nbsp;<\/p>\n<h1>DO YOU HAVE ANY QUESTIONS?<\/h1>\n<p>Should you require help in performing the Jenkins pipeline steps, feel free to contact at our email id<span>\u00a0<\/span><a href=\"mailto:contact@easydeploy.io\">contact@easydeploy.io<\/a><\/p>\n<p>Website \u2013\u00a0<a href=\"https:\/\/www.easydeploy.io\/contact-us\">www.easydeploy.io\/contact-us<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>INTRODUCTION: In this article we are going to setup jenkins CI\/CD pipeline to automate build and deployment for ECS, &#8211;Jenkins is an open-source automation server widely used for building, testing, and deploying software projects. It allows developers to automate various parts of the software development process, including building code, running tests, and deploying applications. Jenkins [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":3636,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,441,128,3,26,459,1],"tags":[466],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io\" \/>\n<meta property=\"og:description\" content=\"INTRODUCTION: In this article we are going to setup jenkins CI\/CD pipeline to automate build and deployment for ECS, &#8211;Jenkins is an open-source automation server widely used for building, testing, and deploying software projects. It allows developers to automate various parts of the software development process, including building code, running tests, and deploying applications. Jenkins [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-23T08:07:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-24T09:53:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1919\" \/>\n\t<meta property=\"og:image:height\" content=\"1079\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Yuvasakthi S\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yuvasakthi S\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\"},\"author\":{\"name\":\"Yuvasakthi S\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c\"},\"headline\":\"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS\",\"datePublished\":\"2024-05-23T08:07:22+00:00\",\"dateModified\":\"2024-05-24T09:53:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\"},\"wordCount\":578,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png\",\"keywords\":[\"jenkins ci\/cd pipeline\"],\"articleSection\":[\"Amazon Web Services\",\"Client use cases\",\"Cloud Computing\",\"Cloud Hosting Services\",\"DevOps\",\"IAC\",\"News\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\",\"name\":\"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png\",\"datePublished\":\"2024-05-23T08:07:22+00:00\",\"dateModified\":\"2024-05-24T09:53:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png\",\"width\":1919,\"height\":1079},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c\",\"name\":\"Yuvasakthi S\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g\",\"caption\":\"Yuvasakthi S\"},\"sameAs\":[\"https:\/\/www.easydeploy.io\/\"],\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/yuvasakthi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/","og_locale":"en_GB","og_type":"article","og_title":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io","og_description":"INTRODUCTION: In this article we are going to setup jenkins CI\/CD pipeline to automate build and deployment for ECS, &#8211;Jenkins is an open-source automation server widely used for building, testing, and deploying software projects. It allows developers to automate various parts of the software development process, including building code, running tests, and deploying applications. Jenkins [&hellip;]","og_url":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/","og_site_name":"easydeploy.io","article_published_time":"2024-05-23T08:07:22+00:00","article_modified_time":"2024-05-24T09:53:41+00:00","og_image":[{"width":1919,"height":1079,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png","type":"image\/png"}],"author":"Yuvasakthi S","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yuvasakthi S","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/"},"author":{"name":"Yuvasakthi S","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c"},"headline":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS","datePublished":"2024-05-23T08:07:22+00:00","dateModified":"2024-05-24T09:53:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/"},"wordCount":578,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png","keywords":["jenkins ci\/cd pipeline"],"articleSection":["Amazon Web Services","Client use cases","Cloud Computing","Cloud Hosting Services","DevOps","IAC","News"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/","url":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/","name":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS | easydeploy.io","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png","datePublished":"2024-05-23T08:07:22+00:00","dateModified":"2024-05-24T09:53:41+00:00","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2024\/05\/Screenshot-2024-05-23-104241.png","width":1919,"height":1079},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/how-to-setup-jenkins-ci-cd-pipeline-to-automate-build-and-deployment-for-ecs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"how to setup jenkins CI\/CD pipeline to automate build and deployment for ECS"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/eea1a4016a2ed0c49ef592d1d4604d4c","name":"Yuvasakthi S","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7690a4d989dc75b0356b63c7183932e3?s=96&d=mm&r=g","caption":"Yuvasakthi S"},"sameAs":["https:\/\/www.easydeploy.io\/"],"url":"https:\/\/www.easydeploy.io\/blog\/author\/yuvasakthi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3628"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=3628"}],"version-history":[{"count":11,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3628\/revisions"}],"predecessor-version":[{"id":3934,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3628\/revisions\/3934"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/3636"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=3628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=3628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=3628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}