Allow Stash/Bitbucket Server Repository Trigger to use Subdirectory instead of full Repository

XMLWordPrintable

    • 0
    • 1

      Problem Definition

      Currently, the Repository Trigger for Stash/Bitbucket Server will trigger a build on any change in a repository. This can be an issue for users with large repositories, where a certain Build Plan only relates to a subdirectory.

      Suggested Solution

      Add functionality to trigger on changes to a specific subdirectory of a repository.

      Workaround

      In the Linked Repository settings, you can use the "Include/exclude files" option:

      1. Go to Administration >> Linked repositories
      2. Select your repository, or create a new one
      3. Under "Advanced options" select "Include only changes that matches to the following pattern"
      4. Input a regular expression to search for, which could be your subdirectory (you may need to escape some characters):
        sub/directory/*

      See also

      Please see this Atlassian Answer for more detail and discussion on this workaround.

            Assignee:
            Unassigned
            Reporter:
            Ellie Z
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: