We have a plan which builds a tarball artifact that needs to be used in a later stage. The tarball filename depends on some numbers internal to the application source code. We can't calculate this name from Bamboo variables.
I need to untar the file and deploy the application to the server in a later stage in the plan, but I can't figure out how to get the artifact name into the deployment job. Since there is only one tarball artifact I tried using a wildcard with tar. This of course works in bash, but not from Bamboo.
I can't find any Bamboo variable that stores the name of the artifact.
How can I get the exact filename of a certain artifact so I can refer to it in a later stage?
You can't do it directly. You can download the artifact to a separate directory and assume everything under it is your artifact. Then just use script tasks to do whatever you need.
Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...
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