🔖 Update version for release of version 79
[Sone.git] / Jenkinsfile
1 pipeline {
2     agent any
3
4     options {
5         timestamps()
6     }
7
8     stages {
9         stage('Build') {
10             steps {
11                 sh './gradlew clean classes testClasses'
12             }
13         }
14         stage('Test') {
15             steps {
16                 sh './gradlew test'
17             }
18             post {
19                 always {
20                     junit 'build/test-results/test/*.xml'
21                 }
22             }
23         }
24         stage('Binary') {
25             steps {
26                 sh './gradlew fatJar'
27                 archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true
28             }
29         }
30         stage('Reports') {
31             steps {
32                 sh './gradlew jacocoTestReport findbugsMain countLines'
33                 jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/'
34                 findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/findbugs/main.xml', unHealthy: ''
35                 sloccountPublish encoding: '', pattern: 'build/reports/cloc/*.xml'
36             }
37         }
38     }
39 }