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

This widget could not be displayed.

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
Community showcase
Posted 6m ago in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

4 views 0 0
View post

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