Hi there,
I would like to know if there is a way to share/volume or access the cached resources inside my bitbucket pipe
I do have gradle resources that I wanted to be accessible from my pipe container:
definitions:
caches:
gradlewrapper: ~/.gradle/wrapper
steps:
- step: &download-gradle-wrapper
name: Download Gradle Wrapper to speed up subsequent uses of wrapper
caches:
- docker
- gradle
- gradlewrapper
script:
- ./gradlew
- step: &gradle-build
name: Build artifact with gradle into docker image
caches:
- docker
- gradle
- gradlewrapper
script:
- docker login ....
- pipe: docker://some-docker-image:latest --command build
variables:
SOME_VARIABLE: $SOME_VARIABLE
Hi Bruno and welcome to the community!
You can check my reply to the following post that provides details on how to do so:
My answer there is specific to the pip cache, which is located at ~/.cache/pip
The gradle cache is located at ~/.gradle/caches and you have defined gradlewrapper for ~/.gradle/wrapper
So, instead of the .cache directory in the commands I provide, you can use .gradle instead.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.