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

Bitbucket pipeline caching dependencies across repository

Nitin Vavdiya November 27, 2018

Let's say I have 2 repository in my bitbucket account in the same project

1. common-api
2. common-web

Now, common-core has a dependency of common-api at compile time.

In this scenario, In local, I can publish common-api to maven local so it available to common-core.

But with bucket pipeline with Gradle its says common-api not found.

Any solution or workaround for this without using public artifactory/repository?

My bitbucket.pipelines.yml

image: openjdk:8

pipelines:
default:
- step:
caches:
- gradle
script: # Modify the commands below to build your repository.
# You must commit the Gradle wrapper to your repository
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
- bash ./gradlew build -i -x javadoc

 

2 answers

1 accepted

0 votes
Answer accepted
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 2, 2018

Hi Nitin,

Pipelines currently does not support caching across repositories. An external artifactory or repository will be required.

You can also open a feature request with information about your use-case. We'll let that soak and see if there's wider interest in the feature.

Thanks,

Phil

Nitin Vavdiya May 16, 2019

thanks

Phil

2 votes
George Chen July 14, 2020

Hi 

Is this pipeline caching dependencies across repository resolved?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events