stages {
stage('Build') {
+ tools {
+ jdk 'OpenJDK 8'
+ }
steps {
sh './gradlew clean classes testClasses'
}
}
stage('Test') {
+ tools {
+ jdk 'OpenJDK 8'
+ }
steps {
sh './gradlew test'
}
}
}
stage('Binary') {
+ tools {
+ jdk 'OpenJDK 8'
+ }
steps {
sh './gradlew fatJar'
archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true
}
}
stage('Reports') {
+ tools {
+ jdk 'OpenJDK 8'
+ }
steps {
sh './gradlew jacocoTestReport findbugsMain countLines'
jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/'