how to use regex in jenkins advanced configuration to trigger builds based on changes in specific project foldersHow to trigger a build only if changes happen on particular set of filesPreferred Github workflow for updating a pull request after code reviewHow to configure email notification for dependent projects in JenkinsCheckout multiple git repos into same Jenkins workspaceJenkins git commit for specific branch triggers build jobs for other branches toojenkins - triggering a build based on git commitJenkins pipeline code auto trigger with multiple repositories through GitHub Organization Folder PluginJenkins builds being triggered despite “Don't trigger a build on commit notifications”Jenkins trigger a build based on the commit in multiple projectsTell Jenkins I want to build a specific commit in a pipeline projectHow to clone multiple git repos into the same workspace folder in Jenkins

What does CI-V stand for?

LaTeX closing $ signs makes cursor jump

Which models of the Boeing 737 are still in production?

What do you call a Matrix-like slowdown and camera movement effect?

How does strength of boric acid solution increase in presence of salicylic acid?

Can a Warlock become Neutral Good?

What is the offset in a seaplane's hull?

What typically incentivizes a professor to change jobs to a lower ranking university?

How old can references or sources in a thesis be?

How much RAM could one put in a typical 80386 setup?

Why does Kotter return in Welcome Back Kotter?

Have astronauts in space suits ever taken selfies? If so, how?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

How is it possible to have an ability score that is less than 3?

Do I have a twin with permutated remainders?

How to write a macro that is braces sensitive?

How do I create uniquely male characters?

The use of multiple foreign keys on same column in SQL Server

Is it important to consider tone, melody, and musical form while writing a song?

To string or not to string

Test whether all array elements are factors of a number

Arthur Somervell: 1000 Exercises - Meaning of this notation

Fully-Firstable Anagram Sets

Why are electrically insulating heatsinks so rare? Is it just cost?



how to use regex in jenkins advanced configuration to trigger builds based on changes in specific project folders


How to trigger a build only if changes happen on particular set of filesPreferred Github workflow for updating a pull request after code reviewHow to configure email notification for dependent projects in JenkinsCheckout multiple git repos into same Jenkins workspaceJenkins git commit for specific branch triggers build jobs for other branches toojenkins - triggering a build based on git commitJenkins pipeline code auto trigger with multiple repositories through GitHub Organization Folder PluginJenkins builds being triggered despite “Don't trigger a build on commit notifications”Jenkins trigger a build based on the commit in multiple projectsTell Jenkins I want to build a specific commit in a pipeline projectHow to clone multiple git repos into the same workspace folder in Jenkins






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















We have a microservice project architecture where there is a single project repository with several folders. Each folder has files etc for a specific API. We would like to have that as a single repo but configure separate jobs in jenkins for each API folder. As such we would like to know how to use same repo for scm checkout in jenkins but trigger builds for commits made only to the folders where changes are made. i know it supports regex to include and exclude. But would like to know how best to use that.



So say for example i have a project sample-project with 3 folders abc, def and xyz.
we now have a job in jenkins that checkouts sample-project. Now we would like that jenkins job to be configured in a way that only when anything inside abc folder is changed or committed, it triggers that job otherwise not. How to best implement this.










share|improve this question






















  • stackoverflow.com/a/47332909/6309 should help

    – VonC
    Mar 9 at 6:13











  • #Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

    – JRichardsz
    Mar 10 at 12:17











  • Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

    – Ashley
    Mar 11 at 13:34











  • Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

    – Ashley
    Mar 11 at 22:26

















0















We have a microservice project architecture where there is a single project repository with several folders. Each folder has files etc for a specific API. We would like to have that as a single repo but configure separate jobs in jenkins for each API folder. As such we would like to know how to use same repo for scm checkout in jenkins but trigger builds for commits made only to the folders where changes are made. i know it supports regex to include and exclude. But would like to know how best to use that.



So say for example i have a project sample-project with 3 folders abc, def and xyz.
we now have a job in jenkins that checkouts sample-project. Now we would like that jenkins job to be configured in a way that only when anything inside abc folder is changed or committed, it triggers that job otherwise not. How to best implement this.










share|improve this question






















  • stackoverflow.com/a/47332909/6309 should help

    – VonC
    Mar 9 at 6:13











  • #Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

    – JRichardsz
    Mar 10 at 12:17











  • Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

    – Ashley
    Mar 11 at 13:34











  • Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

    – Ashley
    Mar 11 at 22:26













0












0








0








We have a microservice project architecture where there is a single project repository with several folders. Each folder has files etc for a specific API. We would like to have that as a single repo but configure separate jobs in jenkins for each API folder. As such we would like to know how to use same repo for scm checkout in jenkins but trigger builds for commits made only to the folders where changes are made. i know it supports regex to include and exclude. But would like to know how best to use that.



So say for example i have a project sample-project with 3 folders abc, def and xyz.
we now have a job in jenkins that checkouts sample-project. Now we would like that jenkins job to be configured in a way that only when anything inside abc folder is changed or committed, it triggers that job otherwise not. How to best implement this.










share|improve this question














We have a microservice project architecture where there is a single project repository with several folders. Each folder has files etc for a specific API. We would like to have that as a single repo but configure separate jobs in jenkins for each API folder. As such we would like to know how to use same repo for scm checkout in jenkins but trigger builds for commits made only to the folders where changes are made. i know it supports regex to include and exclude. But would like to know how best to use that.



So say for example i have a project sample-project with 3 folders abc, def and xyz.
we now have a job in jenkins that checkouts sample-project. Now we would like that jenkins job to be configured in a way that only when anything inside abc folder is changed or committed, it triggers that job otherwise not. How to best implement this.







regex jenkins github jenkins-pipeline microservices






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 9 at 2:48









AshleyAshley

889




889












  • stackoverflow.com/a/47332909/6309 should help

    – VonC
    Mar 9 at 6:13











  • #Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

    – JRichardsz
    Mar 10 at 12:17











  • Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

    – Ashley
    Mar 11 at 13:34











  • Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

    – Ashley
    Mar 11 at 22:26

















  • stackoverflow.com/a/47332909/6309 should help

    – VonC
    Mar 9 at 6:13











  • #Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

    – JRichardsz
    Mar 10 at 12:17











  • Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

    – Ashley
    Mar 11 at 13:34











  • Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

    – Ashley
    Mar 11 at 22:26
















stackoverflow.com/a/47332909/6309 should help

– VonC
Mar 9 at 6:13





stackoverflow.com/a/47332909/6309 should help

– VonC
Mar 9 at 6:13













#Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

– JRichardsz
Mar 10 at 12:17





#Ashley , Do you solved your question with # VonC suggestion? If not, Are you using free style, scripted pipeline or declarative pipeline in Jenkins? Is mandatory use just one repository for several applications? We could improve your devops flow a little bit ;)

– JRichardsz
Mar 10 at 12:17













Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

– Ashley
Mar 11 at 13:34





Thanks Richard. Yes i have gone through that link suggested by Von earlier. The problem is we use blue ocean for configuring jobs in Jenkins which allows multibranhc pipeline with automated triggers etc. We do use scripted Jenkinsfile for all the jobs. The problem is with blueocean the job configuration doesn't give the option for "Polling ignores commits in certain paths" under Additional Behaviours. What;s the best way to have such a job configured with automated triggers that trigger builds only based on changes in specific folders in Github.

– Ashley
Mar 11 at 13:34













Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

– Ashley
Mar 11 at 22:26





Ok so i was actually able to get this working for a pipeline job but that "Ignore commits for specified paths" option isn't available for multi-branch pipeline job. we want a much cleaner view under same job with multiple branches to display builds for each branch under the branch name using same configuration which is "ignore commits in certain paths". Currently using branch specifier as / under same pipeline job works fine to build all branches but you don't have that multi-branch view as its all series of builds under same window. Any suggestions here?

– Ashley
Mar 11 at 22:26












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55073537%2fhow-to-use-regex-in-jenkins-advanced-configuration-to-trigger-builds-based-on-ch%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55073537%2fhow-to-use-regex-in-jenkins-advanced-configuration-to-trigger-builds-based-on-ch%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page