Is there any method to pass a file to set Repository/Deployment level variables under pipelines?

dhruv March 27, 2020

Hi

Is there any way we can pass a file or easier method to set multiple variables at once under repository variables. We want to set more than 50 variables across multiple projects and deployments in each. This becomes a very tedious task to do copy paste all day. 

Please help if there is any easier approach.

 

Thanks

1 answer

0 votes
Radek Antoniuk
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.
March 27, 2020

Assuming that the values for those variables are all the same for all the projects, you can define variables on the Team level and then you can use them on all repositories that belong to that team - see this article for more information.

dhruv March 30, 2020

Still, there should any other way to pass variables through a file. Copying the same variables to many places is something that can be avoided. 

Radek Antoniuk
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.
March 31, 2020

Not sure what do you mean by "copying the same variables to many places".
Each Pipeline has its own definition stored in bitbucket-pipelines.yml in the repository.
You can define variables on the repository level or on the team(account) level if they are the same - that way you only add the variable once and you can use it in all repositories belonging to that team.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events