Files
jpacrepo/Jenkinsfile
2024-02-24 18:17:19 +08:00

29 lines
659 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"
}
}
}
post {
always {
cleanWs deleteDirs: true, skipWhenFailed: true
}
}
}