{"id":1923,"date":"2022-09-23T13:20:47","date_gmt":"2022-09-23T12:20:47","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=1923"},"modified":"2023-03-03T11:46:28","modified_gmt":"2023-03-03T11:46:28","slug":"bitbucket-pipeline-trigger-for-changes-in-a-particular-folder","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/","title":{"rendered":"Bitbucket pipeline trigger only when changes made in a particular folder"},"content":{"rendered":"<h2><b>Requirement<\/b><\/h2>\r\n<p>We had a very custom use case requirement from our client asking to trigger only when there is a change in a specific folder. We checked over the internet and couldn&#8217;t find any proper document so we decided to make one that may help others on the internet.<\/p>\r\n<h2><b>Prerequisites\u00a0<\/b><\/h2>\r\n<ul>\r\n<li>Bitbucket account<\/li>\r\n<li>Yaml file (bitbucket-pipelines.yml)<\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n<h2><b>Scenario 1<\/b><\/h2>\r\n<p>We want to execute build whenever any change is done to the files or folders inside a particular directory. In the use case, we can use conditions in the <b>bitbucket-pipelines.yml <\/b>file, which allows us to execute when certain conditions or rules are satisfied. Use changesets to execute a step only if one of the files modified matches the expression in include paths.<\/p>\r\n<p>In our repo we have one folder named newbuild and bitbucket-pipeline.yml file. We want to ensure that pipeline is triggered only when the changes are made to the newbuild folder and not outside it.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/newbuild-folder-1.png\" alt=\"\" class=\"aligncenter size-full wp-image-2013\" width=\"1124\" height=\"618\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/newbuild-folder-1.png 1124w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/newbuild-folder-1-300x165.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/newbuild-folder-1-1024x563.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/newbuild-folder-1-768x422.png 768w\" sizes=\"(max-width: 1124px) 100vw, 1124px\" \/><\/p>\r\n<p>Now in the repo, the CI\/CD pipeline should trigger only when I make changes to newbuild folder and if I make changes to any other file the repo then the CICD pipeline should not trigger, the below code section shows the content of my <b>bitbucket-pipelines.yml<\/b> file which includes the <b>condition block<\/b> in the pipeline.yml file.<\/p>\r\n\r\n<pre class=\"wp-block-code\"><span>image : docker:latest<\/span><br \/><span>definitions<\/span>:<br \/> steps:<br \/> - step: &amp;build-test-trigger<br \/> name: custom trigger in bitbucket<br \/> condition:<br \/> changesets:<br \/> includePaths:<br \/> #Code block for changes to trigger on newbuild folder.<br \/> - \"newbuild\/**\"<br \/> script:<br \/> - echo \"test\"<br \/>pipelines:<br \/> branches:<br \/> master:<br \/> - step: *build-test-trigger<\/pre>\r\n\r\n<p>Below is the screenshot of the pipeline that ran the build step when I committed changes to newbuild folder.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed..png\" alt=\"\" class=\"aligncenter size-full wp-image-2015\" width=\"1542\" height=\"542\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed..png 1542w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed.-300x105.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed.-1024x360.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed.-768x270.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-files-in-newbuild-folder-is-changed.-1536x540.png 1536w\" sizes=\"(max-width: 1542px) 100vw, 1542px\" \/><\/p>\r\n<p><b>Note<\/b>: If the newbuild folder files have no changes, then that step is skipped and the pipeline prints success message but with no skipped action. As shown in the below screenshot.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder.png\" alt=\"\" class=\" wp-image-2007 alignnone\" width=\"1042\" height=\"441\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder.png 1554w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-300x127.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-1024x434.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-768x325.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-1536x650.png 1536w\" sizes=\"(max-width: 1042px) 100vw, 1042px\" \/><\/p>\r\n<h2><b>Scenario 2<\/b><\/h2>\r\n<p>Separate build steps to run for the file changes in separate folders in the same repository.<\/p>\r\n<p>Let&#8217;s say you have two folders like <b>newbuild1<\/b> and <b>newbuild2<\/b> and you want to execute separate build commands for newbuild1 folder and newbuild2 folders respectively.<\/p>\r\n<p>You can reference the below commands of <b>bitbucket-pipelines.ym<\/b>l files. Depending on which folder is committed the respective bitbucket pipeline is triggered. The below pipeline file will print test1 when the changes to newbuild1 folder is commited. The same pipeline file will print test2 when the changes to newbuild2 folder is committed, it will skip both the pipelines when a change is committed to folders other than newbuild1 and newbuild2.<\/p>\r\n\r\n<pre class=\"wp-block-code\"><span>image : docker:latest<br \/><br \/>definitions:<br \/>\u00a0steps:<br \/>\u00a0- step: &amp;build-test-trigger<br \/> name: custom trigger in bitbucket  newbuild1 folder<br \/>\u00a0condition:<br \/>\u00a0changesets:<br \/>\u00a0includePaths:<br \/> # code to monitor changes on newbuild1 folder <br \/> - \"newbuild1\/**\"<br \/>\u00a0script:<br \/>\u00a0- echo \"test1\"<br \/>\u00a0- step: &amp;build-test-trigger2<br \/> name: custom trigger in bitbucket newbuild2 folder<br \/>\u00a0condition:<br \/>\u00a0changesets:<br \/>\u00a0includePaths:<br \/> # code to monitor in newbuild2 folder<br \/> - \"newbuild2\/**\"<br \/>\u00a0script:<br \/>\u00a0- echo \"test2\"<br \/>pipelines:<br \/>\u00a0branches:<br \/>\u00a0master: <br \/>\u00a0- step: *build-test-trigger<br \/>\u00a0- step: *build-test-trigger2\r\n<\/span><\/pre>\r\n\r\n<p>The below screenshot is example of pipeline output when the changes to newbuild2 folder is committed.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed.png\" alt=\"\" class=\"aligncenter size-full wp-image-2010\" width=\"1553\" height=\"684\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed.png 1553w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed-300x132.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed-1024x451.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed-768x338.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/pipeline-run-when-newbuild2-folder-is-changed-1536x677.png 1536w\" sizes=\"(max-width: 1553px) 100vw, 1553px\" \/><\/p>\r\n<p><b>Note<\/b>: If there are some other changes done to the repo apart from the<b> newbuild1 and newbuild2<\/b> folder then both the steps are skipped and the pipeline will show as successful. As shown below.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2.png\" alt=\"\" class=\"aligncenter size-full wp-image-2011\" width=\"1554\" height=\"658\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2.png 1554w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2-300x127.png 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2-1024x434.png 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2-768x325.png 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/09\/bitbucket-skipping-build-process-when-changes-are-done-on-different-folder-2-1536x650.png 1536w\" sizes=\"(max-width: 1554px) 100vw, 1554px\" \/><\/p>\r\n<p>Please change the echo command in the pipeline codes with your build commands to run the pipelines. Thank you for visiting our blog post. You can <a href=\"https:\/\/easydeploy.io\/contact-us\">contact us<\/a> anytime if you have any custom use case and we will be able to help.<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>Feel free to share it with your colleagues.<\/p>","protected":false},"excerpt":{"rendered":"<p>Requirement We had a very custom use case requirement from our client asking to trigger only when there is a change in a specific folder. We checked over the internet and couldn&#8217;t find any proper document so we decided to make one that may help others on the internet. Prerequisites\u00a0 Bitbucket account Yaml file (bitbucket-pipelines.yml) [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":2409,"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":[26],"tags":[433],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn how Bit Bucket pipeline trigger only when folder change<\/title>\n<meta name=\"description\" content=\"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!\" \/>\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\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn how Bit Bucket pipeline trigger only when folder change\" \/>\n<meta property=\"og:description\" content=\"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-23T12:20:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-03T11:46:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Niyaz H\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Niyaz H\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\"},\"author\":{\"name\":\"Niyaz H\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/788a871d3da047e5a3c0972126706aa9\"},\"headline\":\"Bitbucket pipeline trigger only when changes made in a particular folder\",\"datePublished\":\"2022-09-23T12:20:47+00:00\",\"dateModified\":\"2023-03-03T11:46:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\"},\"wordCount\":489,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp\",\"keywords\":[\"bitbucket pipeline trigger\"],\"articleSection\":[\"DevOps\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\",\"name\":\"Learn how Bit Bucket pipeline trigger only when folder change\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp\",\"datePublished\":\"2022-09-23T12:20:47+00:00\",\"dateModified\":\"2023-03-03T11:46:28+00:00\",\"description\":\"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp\",\"width\":1280,\"height\":720,\"caption\":\"bitbucket pipeline trigger\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bitbucket pipeline trigger only when changes made in a particular folder\"}]},{\"@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\/788a871d3da047e5a3c0972126706aa9\",\"name\":\"Niyaz H\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6f0d572c1d6680b37343dbdb9b97e2dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6f0d572c1d6680b37343dbdb9b97e2dd?s=96&d=mm&r=g\",\"caption\":\"Niyaz H\"},\"sameAs\":[\"http:\/\/easydeploy.io\"],\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/niyaz\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn how Bit Bucket pipeline trigger only when folder change","description":"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!","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\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/","og_locale":"en_GB","og_type":"article","og_title":"Learn how Bit Bucket pipeline trigger only when folder change","og_description":"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!","og_url":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/","og_site_name":"easydeploy.io","article_published_time":"2022-09-23T12:20:47+00:00","article_modified_time":"2023-03-03T11:46:28+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp","type":"image\/webp"}],"author":"Niyaz H","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Niyaz H","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/"},"author":{"name":"Niyaz H","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/788a871d3da047e5a3c0972126706aa9"},"headline":"Bitbucket pipeline trigger only when changes made in a particular folder","datePublished":"2022-09-23T12:20:47+00:00","dateModified":"2023-03-03T11:46:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/"},"wordCount":489,"commentCount":2,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp","keywords":["bitbucket pipeline trigger"],"articleSection":["DevOps"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/","url":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/","name":"Learn how Bit Bucket pipeline trigger only when folder change","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp","datePublished":"2022-09-23T12:20:47+00:00","dateModified":"2023-03-03T11:46:28+00:00","description":"Problem Resolved! Now Learn how to trigger a Bit Bucket pipeline trigger only when change is made on a particular folder. Explore Now!","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2022\/11\/Easy-deploy-BITBUCKET-PIPELINE-TRIGGER-ONLY-WHEN-CHANGES-MADE-IN-A-PARTICULAR-FOLDER.webp","width":1280,"height":720,"caption":"bitbucket pipeline trigger"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/bitbucket-pipeline-trigger-for-changes-in-a-particular-folder\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Bitbucket pipeline trigger only when changes made in a particular folder"}]},{"@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\/788a871d3da047e5a3c0972126706aa9","name":"Niyaz H","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6f0d572c1d6680b37343dbdb9b97e2dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0d572c1d6680b37343dbdb9b97e2dd?s=96&d=mm&r=g","caption":"Niyaz H"},"sameAs":["http:\/\/easydeploy.io"],"url":"https:\/\/www.easydeploy.io\/blog\/author\/niyaz\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1923"}],"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\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=1923"}],"version-history":[{"count":17,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions"}],"predecessor-version":[{"id":2017,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/1923\/revisions\/2017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/2409"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=1923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=1923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=1923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}