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.
FreshCoffee/Jenkinsfile
TheBrokenRail e8ddaeca81
All checks were successful
FreshCoffee/pipeline/head This commit looks good
Fix Jenkinsfile
2020-08-22 22:23:17 -04:00

30 lines
667 B
Groovy

pipeline {
agent {
docker {
image 'openjdk:11-jdk'
}
}
stages {
stage('Build') {
steps {
sh './gradlew build'
}
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'
}
}
}
}