In our main code repo, we have a build step that zips up the build artefacts and sends them to S3 for storage. Up to now we had a build box which then downloaded these and built our containers.
I am trying to move away from that step, and not utilise the ` - pipe: atlassian/trigger-pipeline:4.2.1` to call a custom pipeline in my build repo.
I would like, if possible to pass the build artifacts from the previous step:
To my custom pipeline, is this possible?
The custom Pipeline is a Docker build:
- step: &build-wildfly
name: Build Wildfly Container
- echo "Building Wildfly $HYP_VERSION Container"
I know artifacts are passed between steps, but I am not certain if they would automatically passed to the trigger-pipeline
Hello @Dave Gilmore , welcome to the Atlassian Community!
Yes, like you wrote artifacts can be passed along the steps of a pipeline. But they are not passed from one pipeline to another. The support document is Use artifacts in steps.
Most easy it is that you have one pipeline with multiple steps so you have the artifacts directly at hand. For this YAML anchors could help you to keep duplication low, just seeing the `Build Wildfly Container` has already an anchor.
Manual or Deployment steps could also be helpful so that you must not always run further steps if you don't like. Manual steps have artifacts support like any other step.
Another option is that the artifacts of the last pipeline step are stored for 14 days. So the other pipeline could download these. I do not know however how well this is supported by the REST API but this could be something worth to look into. Also there is a feature in Bitbucket called Downloads, see Deploy build artifacts to Bitbucket Downloads for more info.
I do see this might not be the answer you've been hoping for, so I hope you can find some new options in my answer that helps you get going.
Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events