It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't figure out how to cache mysql-client in bitbucket pipelines

I am fairly new to pipelines and I am having trouble caching my dependencies to speed up my builds. I have looked over the documentation for pipelines and dependency caching specifically and don't quite understand what my path needs to be in the definitions section in order to correctly cache mysql-client after I install it?

I am using the following lines to install mysql and the mysqli extension:

- apt-get install -y unzip mysql-client
- docker-php-ext-install mysqli

 Ultimately, I am executing a php script that uses mysqli functions to access a remote database and perform tests/updates after each commit. The download and installation process of mysql takes 2/3 of build time, so I desperately need to cache it, I just don't understand how.

I am not very familiar with linux or bash commands, so cross-referencing the documentation is only getting me so far. Any help would be greatly appreciated!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

1,088 views 3 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you