I have a spring boot application and i want to deploy it using the aws-elasticbeanstalk-deploy image provided by atlassian.
The problem is that my generated artifact has no static filename. The filename is postfixed with the version name. (e.g.: target/my-application-1.0.0.SNAMPSHOT.jar)
I build my JAR using:
- mvn -B clean package
And this would be the deployment step:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.5
How can i get the correct filename for the "ZIP_FILE" parameter?
@coduo_warmbold you should be able to create the value for the ZIP_FILE dynamically, here is an example building the zip archive with the build number:
- zip application-$BITBUCKET_BUILD_NUMBER.zip * - pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.5 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: 'us-east-1' APPLICATION_NAME: 'my-app-name' ENVIRONMENT_NAME: 'production' ZIP_FILE: 'application-$BITBUCKET_BUILD_NUMBER.zip'
Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...
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