Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to trigger the imported pipeline with custom variable export?

A Sai Shree Anjan June 17, 2024

Actual import pipeline in main project from shared pipeline.

pipelines:
custom:
import-pipeline:
import: bitbucket-shared-pipelines:main:set-environment-variables
is there a way to trigger the imported pipeline based on branches like dev, qa along with assigning the custom variables during the build time.

3 answers

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2024

Hello @A Sai Shree Anjan ,

and welcome to the Community!

My understanding is that you are importing a shared pipelines as a custom pipelines, and would like to have the ability to provide the value of the custom variables in the UI when triggering that pipeline. If that is the case, I'm afraid it's not yet possible, as this is currently a limitation on custom shared pipelines as per Share pipelines configuration documentation :

Note: There is a known limitation with using Variables in Custom Pipelines that utilize a shared Pipeline Configuration. If a repository imports a shared Pipeline Configuration and uses it as part of a Custom Pipeline, variable values specified at runtime via the UI will not pass to the pipeline execution. Instead, the default values specified in the exported Pipeline configuration will be used instead.

We do have an enhancement request with our engineering team to include that functionality (BCLOUD-22869). We encourage you to add your vote there to increase the visibility of that feature and to help our product team to understand the interest. You also have the option to mark yourself as a watcher to be notified of any future updates.

Thank you, @A Sai Shree Anjan !

Patrik S

0 votes
Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2024

Hi @A Sai Shree Anjan

Not sure if I understood you question correctly, but we do support a more flexible way of triggering pipelines via our addon which might be helpful to your question.

0 votes
A Sai Shree Anjan June 17, 2024

Along with the import I want to export few variables, is it possible ?

Suggest an answer

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

Atlassian Community Events