Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17935

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

    XMLWordPrintable

Details

    • 0
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ezeidan Elias Zeidan (they/them)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: