Custom archiver

This commit is contained in:
Gabriele C 2018-07-18 13:22:37 +02:00
parent e3b6ce1ad1
commit ebc2c0105a

5
Jenkinsfile vendored
View File

@ -34,7 +34,8 @@ pipeline {
jdk: 'OracleJDK 8',
maven: 'Maven 3',
globalMavenSettingsConfig: 'e5b005b5-be4d-4709-8657-1981662bcbe3',
mavenOpts: '-Xmx4G'
mavenOpts: '-Xmx4G',
options: [artifactsPublisher(disabled: true)]
) {
withCredentials([string(credentialsId: 'authme-coveralls-token', variable: 'COVERALLS_TOKEN')]) {
sh 'mvn -B clean package javadoc:aggregate-jar source:jar deploy coveralls:report -DrepoToken=$COVERALLS_TOKEN'
@ -43,7 +44,7 @@ pipeline {
}
post {
success {
archiveArtifacts artifacts: '**/target/*.jar', excludes: '**/target/*-noshade.jar', fingerprint: true
archiveArtifacts artifacts: '**/target/*.jar', excludes: '**/target/*-noshade.jar, **/target/original-*.jar', fingerprint: true
step([
$class: 'JavadocArchiver',
javadocDir: 'target/apidocs',