Files
jpacrepo/Jenkinsfile
2022-06-08 23:47:37 +08:00

24 lines
556 B
Groovy

import java.nio.file.Path
import java.nio.file.Files
pipeline {
agent any
stages {
stage("Build") {
steps {
sh "./gradlew clean assemble"
archiveArtifacts artifacts: 'build/libs/*.war',
allowEmptyArchive: true,
fingerprint: true,
onlyIfSuccessful: true
}
}
stage("Publish") {
steps {
sh "./gradlew publish"
}
}
}
}