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'
We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...
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