24 lines
556 B
Groovy
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|