It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

After I've downloaded an artifact, how do I reference it in subsequent tasks?

After I've downloaded an artifact, how do I reference it in subsequent tasks?

For example: My build plan creates a war file which I make available as an artifact and give it a name like WAR1. In my deployment plan I download the WAR1 artifact using an Artifact Download task and now want to use that artifact in a ​Deploy to Tomcat​ task. Rather then having to know the exact name of the war file for the ​WAR File​ field, can I do something like %{bamboo.artifact.WAR1} to reference the artifact?

1 answer

Hi Stephen,

After you run Artifact Download task, the artifact should be inside your working directory. If it's inside certain directory, you could just put the relative path to the war file from the working directory.

Hope it helps.

I understand that, but what if I've wildcarded the name when creating the artifact (ex. cool-app-*.war) for whatever reason (3rd party app appending version, etc.)? In this case I won't reliably be able to enter the WAR filename for automation, but Bamboo knows the object I'm talking about (the artifact).

I know I'm bumping this from the past, but this seems like a *very* common request. Is there a formal request anywhere? It's very disappointing that this isn't offered. Right now I have to use a script to rename my WAR file to something static before deploying.

Two years later - is this still not available? I'd like to scp an rpm out to the target server and then install it with the ssh command. How can I reference the RPM file in the remote SSH command?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Align

Best Practices in Jira Align

Hello Jira Align customers! In order to better serve you on your journey with Jira Align, the Community team has worked with the Jira Align team to curate the content in this collection to better s...

66 views 0 2
Read article

Community Events

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

Events near you