Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Pipelines: how to provide custom keys from YAML?

Radu Cristescu April 18, 2025

(This post has been reposted here for better relevance: https://community.atlassian.com/forums/Forge-for-Bitbucket-Cloud/Dynamic-Pipelines-how-to-provide-custom-keys-from-YAML/m-p/3003230#M180 )

I'm developing a dynamic pipeline and I just noticed that the input request is filtered, and it doesn't include any custom keys.

What are some good ways for the bitbucket-pipelines.yml file of a repository to communicate some settings, needs, and desires to the dynamic pipeline function?

At the moment, for the `script:` key I can look for a special keyword (DSL), and replace it with one or more commands (e.g to wait for a db and initialise it, but without copying those commands to every repository that needs the database in the pipeline). If I see the database keyword, then I can also inject a database service in the `definitions:services:`.

I could use special keywords in `script:` for other things too, like running `npm` stuff for frontend projects.

But if I wanted the repository to communicate to me that it wants to do a cartesian product between several PHP versions and several Laravel versions, how would I do that without typing all the combinations into different steps - even if I were to then use DSL to expand the command list?

At the most extreme, I'd like to have no entries under `pipelines:` and populate them with stuff that was declared by other means.

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2025

Hi Radu,

I haven't been involved with development of dynamic pipelines, so I'm afraid I can't answer your question. However, I wanted to suggest posting your question to the following group:

This group is specifically for Forge for Bitbucket Cloud and the team there is better equipped to answer your question.

Kind regards,
Theodora

Radu Cristescu April 22, 2025

Thanks for mentioning that group. I joined it now, but the UX for posting a question there is confusing. I only see the "Ask a question" button at the tops, which allows me to post in one of four product categories: Confluence, Jira, Bitbucket (Cloud), Trello. No Forge group appeared in the list, and no separate button to create a new post in the group exists that I can see.

So... when I open an existing thread, it's only then that the "Post in Group" button appears for me.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2025

Thank you for the feedback, Radu. I will forward your comment to my team, I understand that this can be confusing.

You can also select the link Let's discuss right below the group name to create a new post in the group, see screenshot below:

 Screenshot 2025-04-22 at 13.02.00.png


Kind regards,
Theodora

Like Radu Cristescu likes this
Radu Cristescu April 22, 2025

That card did not jump at me at all. My brain made it invisible to me in a manner similar to how I perceive ads.

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2025

I have shared your feedback with the community managers, thank you for sharing.

0 votes
Radu Cristescu April 18, 2025

I guess, lacking any other options, I could have a special step with just DSL in it, and in my pipeline I interpret it, remove it, and add the actual steps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events