This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-23 02:05:06 +00:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'openjdk:11-jdk'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2020-08-23 02:23:17 +00:00
|
|
|
sh './gradlew build'
|
2020-08-23 02:05:06 +00:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
archiveArtifacts artifacts: 'build/libs/*', fingerprint: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Publish') {
|
|
|
|
when {
|
|
|
|
expression {
|
|
|
|
return sh(returnStdout: true, script: 'git tag --contains').trim().length() > 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh './gradlew publish'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|