You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.