]> source.dussan.org Git - archiva.git/commitdiff
add jdk11 build
authorolivier lamy <olamy@apache.org>
Fri, 14 Dec 2018 02:15:52 +0000 (12:15 +1000)
committerolivier lamy <olamy@apache.org>
Fri, 14 Dec 2018 02:15:52 +0000 (12:15 +1000)
Signed-off-by: olivier lamy <olamy@apache.org>
Jenkinsfile

index 3f41256c1e6fd08fbad92c678f5eb0e273e39ae4..dd19aa7720f7aa41b3493869e4a0195dc83cc8cb 100644 (file)
@@ -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']]
+                        }
+                    }
+                }
             }
         }