Access build artifact during build

Hello, guys.

I am trying to send the build artifact via email as the last step of the build. I am able to send a link to an artifact, but it is not very convenient. What I would like to do is to include actual file as attachment to the mail. What I have tried:

artifactFolder=/opt/bamboo/artifacts/${bamboo.planKey}/${bamboo.shortJobKey}/build-00${bamboo.buildNumber} /apk

artifactPath=$artifactFolder/app-release.apk

But what I got is:

/opt/bamboo/artifacts/FNM-FNMA/JOB1/build-137/apk/app-release.apk: No such file or directory


I am sure I have the correct path, as I can seen this file AFTER build is completed. Can you please tell me how I can access the artifact DURING build? Thank you.

1 answer

This widget could not be displayed.

At the end of the build, the artifact is published to the server, and stored in the /artifacts directory.
So the artifact is not yet there when the build is going through all tasks.

However, you decide which files make up the artifact, and those files are available in your tasks.
So instead of trying to attach the not yet published artifact, try to attach the original file/s that will be collected to become the artifact.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

63 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you