X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=Jenkinsfile;fp=Jenkinsfile;h=6775f35db0c78f6dcc8eb0fdb8584792fbf42768;hp=0000000000000000000000000000000000000000;hb=acf40290db822d7cbdaed590850f692953f51ac1;hpb=d1d44c47da8cd6c2452d5fd0cf6b7f56cdf5d2b4 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6775f35 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +pipeline { + agent any + + options { + timestamps() + } + + stages { + stage('Build') { + steps { + sh './gradlew clean classes testClasses' + } + } + stage('Test') { + steps { + sh './gradlew test' + } + post { + always { + junit 'build/test-results/test/*.xml' + } + } + } + stage('Binary') { + steps { + sh './gradlew fatJar' + archiveArtifacts artifacts: 'build/libs/sone*-jar-with-dependencies.jar', fingerprint: true + } + } + stage('Reports') { + steps { + sh './gradlew jacocoTestReport findbugsMain countLines' + jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/' + findbugs canComputeNew: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', pattern: '**/findbugs/main.xml', unHealthy: '' + sloccountPublish encoding: '', pattern: 'build/reports/cloc/*.xml' + } + } + } +}