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.
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
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.