我试图配置使用Gradle构建jar并将其部署到AWS Elastic beantalk的管道,这是我的管道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'
我的jar文件总是根据Gradle文件中的版本而变化,例如service-1.2.1-RELEASE.jar,因此无法在ZIP_FILE变量中设置静态值。
如何上传没有特定名称的文件?