You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
In my stack i have a lot of repositories and teams, so i have a template pipeline that and
we want everyone in the company to use this same template passing only parameters.
So, what would be the best approach in this case?
Hi Rafael and welcome to the community!
- I would have a bitbucket-pipeline.yml (default) and in it I would have all the steps differentiating only the arguments?
- Or is it possible to include another .yml from another repository?
At the moment, it is not possible to share the same bitbucket-pipeline.yml among multiple repsoitories, each repository uses its own bitbucket-pipeline.yml file. You can of course create the same bitbucket-pipeline.yml file for each repo, but there is no way to enforce all repos of a workspace to use the same template.
We have a feature request in our issue tracker for the ability to have centrally managed and customizable templates for the bitbucket-pipeline.yml file:
- It is possible to block anyone from writing to the bitbucket-pipeline.yml file
I'm afraid this is not possible either. In case you'd be interested in that in order to have more control over deployments or who can access certain variables, one solution could be deployment permissions (deployments can be restricted to admins only) and the use of deployment variables https://bitbucket.org/blog/deployment-permissions-now-available-in-bitbucket-pipelines. Please note that this feature is available for the Premium plan.
We have a feature request for what you are asking as well:
If the reason you're asking for this feature is different, you can share it in the feature request for our product managers to take into account.
I would also suggest adding your vote (by selecting the Vote for this issue link) to both feature requests to further express your interest. You can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
If you have any questions, please feel free to let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.