Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload maven artifacts to my repo?

Dev Ops
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2023

I have a pom parent project on BitBucket (BB). I am using BB pipeline to Build and Test (mvn install) the project. I have another jar project that uses the previous pom project as parent but I cannot build this project since in the new container it loses the awereness of the parent pom project. So Ideally I need to push my pom artifact into BB so the jar project can pull it. Any suggestions on how to setup my pipeline, pom.xml and BB to achieve this if at all possible. Thank you.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2023

Hi @Dev Ops!

It's not clear if the pom project and the jar project are part of the same Bitbucket repo. If they are, and if you have one pipeline with multiple steps, you can share files produced in one step with the following steps by using Bitbucket artifacts:

If you want to share files between different pipelines of the same repo or between pipelines of different repos, you could use an API call to upload a file to the Downloads section of the repo (in the step that produces this file):

Then, with a curl or wget command, you can download the file in the second pipeline.

Please keep in mind that if you use our API to upload a file to the Downloads section and a file with that name already exists there, then it will be replaced by the new file you upload.

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events