(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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have shared your feedback with the community managers, thank you for sharing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.