Deploy Tomcat Application snapshot artifacts

Hello,

We are using the deploy tomcat app to deploy nightly builds (snapshots). The war file gets saved as an artifact with the name product-1.0.0-SNAPSHOT.war

Is there any to get this to be version agnostic? I would like to do: product-*.war, it's the only artifact but it won't work. I would rather not have to update builds when the version number changes.

Thanks!

2 answers

1 accepted

This widget could not be displayed.

Why not use a script task that runs before the Tomcat deployment task to copy or move the file from product-X.Y-SNAPSHOT.war to product.war?

Artifact sharing is enabled, that is how I moved it into the artifacts directory, perhaps I need to call it something else?

That would work, how do get the reference to the artifact directory?

mv ./artifacts/product*.war ./artifacts/product.war

Doesn't work....

How does the move fail? It cant find the file?

The problem appears to be using the directory name 'artifacts' once I change it to something else it worked fine.

Thanks!

This widget could not be displayed.

How does the move fail? It cant find the file?

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 Wednesday 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...

130 views 2 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