Explicitly set 'on linked repository change'-trigger via YAML specs

Okke Hendriks January 10, 2022

How to explicitly set the 'on linked repository change'-trigger, just like the default? I want to do this in order to combine it with other trigger(s). The default trigger seems to be removed when setting other triggers.

The documentation (https://docs.atlassian.com/bamboo-specs-docs/8.1.1/specs.html?yaml#repository-triggers-a-build-on-commit) seems not to indicate how? Or am I misinterpreting something?

Also see https://jira.atlassian.com/browse/BAM-20932.


1 answer

1 accepted

1 vote
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2022

It's possible by defining few triggers

 

...
triggers: - cron: expression: 0 0 1 ? * * - polling: period: '180'
Okke Hendriks January 10, 2022

Thanks for your reply.

I did that as a workaround, but this is based on polling and not a trigger on commit? Or is that what happens by default? I think not because with polling you get the following 'Repository Polling' trigger (when viewing the configuration via GUI):
repo_polling.jpg


And not this `Bitbucket Server repository triggered` trigger:
repo_triggered.jpg

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2022

Yes, missed that part when made improvements to Triggers support in YAML Specs.

Will address it shortly, please track https://jira.atlassian.com/browse/BAM-21559 for updates.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events