• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 8.1.1
    • Bamboo Specs
    • None
    • 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.

      Problem Definition

      YAML can be configured with multiple repositories through checkout task. However, trigger in YAML could not be configured to enable trigger for certain repository only.

      If a single repository is used to manage YAML Specs for multiple plans, a Specs change in a plan will trigger normal builds for all the related plans (if there are 50 plans affected, 50 builds will be added to the queue). This will flood the queue and will take some time for the agents to clear the queue.

      Suggested Solution

      Configurable trigger setting in YAML so that only certain repository change will trigger the plan

      Workaround

      Configure exclude function at Administration >> Linked repositories >> <repoName> >> Change detection options to exclude file pattern "bamboo-specs/.*"

            [BAM-20932] Trigger repository configuration in YAML

            Michael Langer added a comment - - edited

            I tried that, but the YAML output looked the same regardless of my Bitbucket Server trigger settings, but I guess the issue Okke Hendriks mentioned explains that I'll wait for the fix, thanks!

            Michael Langer added a comment - - edited I tried that, but the YAML output looked the same regardless of my Bitbucket Server trigger settings, but I guess the issue Okke Hendriks mentioned explains that I'll wait for the fix, thanks!

            Okke Hendriks added a comment - - edited

            You'll have to wait/upgrade to a bamboo version which includes this fix though: https://jira.atlassian.com/browse/BAM-21559

            Okke Hendriks added a comment - - edited You'll have to wait/upgrade to a bamboo version which includes this fix though: https://jira.atlassian.com/browse/BAM-21559

            a1ba67f2822d , configure your plan triggers with UI and then use View as YAML Specs button to see exact code to configure trigger repositories

            Alexey Chystoprudov added a comment - a1ba67f2822d , configure your plan triggers with UI and then use View as YAML Specs button to see exact code to configure trigger repositories

            I'd like to setup a plan that only triggers a build on code changes for certain repositories. If I understand this issue correctly that is exacly what it proposed.

            I'm on Bamboo Server 8.1.1 (build 80108 - 14 Dec 21), but I can't figure out how to do that in YAML Specs. I also can't find this mentioned anywhere in the Bamboo Specs Reference (https://docs.atlassian.com/bamboo-specs-docs/8.1.1/specs.html?yaml#repository-triggers-a-build-on-commit).

            Michael Langer added a comment - I'd like to setup a plan that only triggers a build on code changes for certain repositories. If I understand this issue correctly that is exacly what it proposed. I'm on Bamboo Server 8.1.1 (build 80108 - 14 Dec 21), but I can't figure out how to do that in YAML Specs. I also can't find this mentioned anywhere in the Bamboo Specs Reference ( https://docs.atlassian.com/bamboo-specs-docs/8.1.1/specs.html?yaml#repository-triggers-a-build-on-commit ).

            okkehendriks , it possible but then you need to add it explicitly

            triggers:
            - cron:
                expression: 0 0 1 ? * *
            - polling:
                period: '180'
            

            Alexey Chystoprudov added a comment - okkehendriks , it possible but then you need to add it explicitly triggers: - cron: expression: 0 0 1 ? * * - polling: period: '180'

            Also I would like to be able to enable both the 'build on linked repository commit'-trigger and another (periodic nightly build) trigger. Which is currently not possible I think? Because when I set any other trigger the 'build on linked repository commit'-trigger is removed?

            Okke Hendriks added a comment - Also I would like to be able to enable both the 'build on linked repository commit'-trigger and another (periodic nightly build) trigger. Which is currently not possible I think? Because when I set any other trigger the 'build on linked repository commit'-trigger is removed?

            Great! Thanks for collecting the issue. +1 from me.

            Thomas Baumann added a comment - Great! Thanks for collecting the issue. +1 from me.

              achystoprudov Alexey Chystoprudov
              klfoong Foong (Inactive)
              Votes:
              19 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: