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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 2 hours ago in Off-topic

Friday Fun: Board Games

Hey everyone!  Background: I had a power outage that knocked out my internet woohoo. Since my job is primarily working remote this meant no work, so I went searching for coffee shops to vi...

18 views 1 3
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