I an trying to configure a pipeline that build a jar using Gradle and then deploy it to AWS elastic beanstalk, this is my pipeline yml:
image: openjdk:8
pipelines:
default:
- step:
name: "Build Jar"
caches:
- gradle
script:
- bash ./gradlew build
artifacts:
- build/libs/*.jar
- step:
name: "Deploy"
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.9
variables:
AWS_ACCESS_KEY_ID: **
AWS_SECRET_ACCESS_KEY: **
AWS_DEFAULT_REGION: **
APPLICATION_NAME: **
ENVIRONMENT_NAME: **
ZIP_FILE: 'build/libs/*.jar'
My jar file always changing based on the version in the Gradle file, ex: service-1.2.1-RELEASE.jar, so I can't set static value in ZIP_FILE variable.
How can I upload the file without a specific name?