aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolivier lamy <olamy@apache.org>2018-12-14 12:15:52 +1000
committerolivier lamy <olamy@apache.org>2018-12-14 12:15:52 +1000
commit128ae30df634c791c6947947f378258bb5cfed56 (patch)
treed2227bc4cdf40f94d05f68f91d6c980758d6954a
parentb10c3a71105c6eadf703d998074c6f44ebcafb11 (diff)
downloadarchiva-128ae30df634c791c6947947f378258bb5cfed56.tar.gz
archiva-128ae30df634c791c6947947f378258bb5cfed56.zip
add jdk11 build
Signed-off-by: olivier lamy <olamy@apache.org>
-rw-r--r--Jenkinsfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 3f41256c1..dd19aa772 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,6 +31,7 @@ LABEL = 'ubuntu'
buildJdk = 'JDK 1.8 (latest)'
buildJdk9 = 'JDK 1.9 (latest)'
buildJdk10 = 'JDK 10 (latest)'
+buildJdk11 = 'JDK 11 (latest)'
buildMvn = 'Maven 3.5.2'
deploySettings = 'archiva-uid-jenkins'
localRepository = "../.archiva-master-repository"
@@ -177,6 +178,36 @@ pipeline {
}
}
}
+ stage('JDK11') {
+ environment {
+ ARCHIVA_USER_CONFIG_FILE = '/tmp/archiva-master-jdk-11-${env.JOB_NAME}.xml'
+ }
+ steps {
+ ws("${env.JOB_NAME}-JDK10") {
+ checkout scm
+ timeout(120) {
+ withMaven(maven: buildMvn, jdk: buildJdk11,
+ mavenSettingsConfig: deploySettings,
+ mavenLocalRepo: ".repository",
+ publisherStrategy: 'EXPLICIT',
+ mavenOpts: mavenOpts,
+ options: [junitPublisher(disabled: false, ignoreAttachments: false)]
+ )
+ {
+ sh "mvn clean install -U -B -e -fae -Dmaven.compiler.fork=true -Pci-build"
+ }
+ }
+ }
+ }
+ post {
+ always {
+ sh "rm -f /tmp/archiva-master-jdk-11-${env.JOB_NAME}.xml"
+ }
+ success {
+ cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
+ }
+ }
+ }
}
}