update automation script & test

This commit is contained in:
TONY_All 2023-06-16 11:44:18 +08:00
parent 60295330de
commit 1d753801dd
No known key found for this signature in database
GPG Key ID: B868A344D7435E88
1 changed files with 10 additions and 4 deletions

View File

@ -1,10 +1,16 @@
job("Build and run tests") { job("Build and run tests") {
// run 'gradlew build' // run 'gradlew build'
gradlew("azul/zulu-openjdk:17", "build") { gradlew("azul/zulu-openjdk:17", "build", "--no-daemon") {
mountDir = "/root"
cache {
storeKey = "dot-gradle"
localPath = "/root/.gradle"
}
fileArtifacts { fileArtifacts {
localPath = "build" localPath = "build/libs"
archive = true archive = false
remotePath = "{{ run:number }}/build.zip" remotePath = "{{ run:number }}/build"
onStatus = OnStatus.SUCCESS onStatus = OnStatus.SUCCESS
} }
} }