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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,309
Community Members
 
Community Events
176
Community Groups

Bitbucket Pipeline configuration to source dotfiles

Is there a pattern or configuration that would always source in dotfiles from the repository for any bitbucket pipeline image/container?

For example, if I have a repository with .bashrc/.bash_profile along with some other shared dotfiles that contain functions useful for multiple different pipelines that all use different Docker container types. I'd like to always source in these files so that every pipeline, and corresponding Docker container has these functions available.

I don't want to create a custom Docker image for every type of container I may use in my pipelines with these files.

I'm looking for something that Bitbucket Pipelines supports out-of-the-box rather than including a script step that does `source .bashrc` or `source dotfiles/.shared_functions`

 

1 answer

0 votes

Hi Michael,

I'm afraid that there is no configuration to do that at the moment. If creating multiple custom Docker images is not a viable solution, then you will need to source these files by adding a command in the script of each step where these functions are needed.

You are more than welcome to raise a feature request in our issue tracker for that functionality for our product managers to consider:

https://jira.atlassian.com/secure/Dashboard.jspa

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events