You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/05/19 17:49:34 UTC
[archiva] 02/02: Adding JDK>=9 builds to Jenkinsfile
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git
commit c87933a4a65667dd47e2643b37070a1e0f6d767a
Author: Martin Stockhammer <ma...@apache.org>
AuthorDate: Sat May 19 19:49:28 2018 +0200
Adding JDK>=9 builds to Jenkinsfile
---
Jenkinsfile | 67 ++++++++++++++++++++++++++++++++++++++++++++-----------------
1 file changed, 49 insertions(+), 18 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index dafce91..88887bc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -29,6 +29,8 @@
*/
LABEL = 'ubuntu'
buildJdk = 'JDK 1.8 (latest)'
+buildJdk9 = 'JDK 1.9 (latest)'
+buildJdk10 = 'JDK 10 (latest)'
buildMvn = 'Maven 3.5.2'
deploySettings = 'DefaultMavenSettingsProvider.1331204114925'
INTEGRATION_PIPELINE = "Archiva-IntegrationTests-Gitbox"
@@ -40,21 +42,6 @@ pipeline {
stages {
-
- stage('Checkout') {
- steps {
- script {
- echo "Info: Job-Name=${JOB_NAME}, Branch=${BRANCH_NAME}, Workspace=${PWD}"
- }
- checkout scm
- }
- post {
- failure {
- notifyBuild("Checkout failure (${currentBuild.currentResult})")
- }
- }
- }
-
stage('BuildAndDeploy') {
steps {
timeout(120) {
@@ -105,13 +92,57 @@ pipeline {
}
}
+ stage('JDKs') {
+ parallel {
+ stage('JDK9') {
+ steps {
+ ws("${env.JOB_NAME}-JDK9") {
+ checkout scm
+ timeout(120) {
+ withMaven(maven: buildMvn, jdk: buildJdk9,
+ mavenSettingsConfig: deploySettings,
+ mavenLocalRepo: ".repository",
+ options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
+ findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
+ invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
+ junitPublisher(disabled: true, ignoreAttachments: false),
+ openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
+ )
+ {
+ sh "mvn clean install -B -U -e -fae -T2"
+ }
+ }
+ }
+ }
+ }
+ stage('JDK10') {
+ steps {
+ ws("${env.JOB_NAME}-JDK10") {
+ checkout scm
+ timeout(120) {
+ withMaven(maven: buildMvn, jdk: buildJdk10,
+ mavenSettingsConfig: deploySettings,
+ mavenLocalRepo: ".repository",
+ options: [concordionPublisher(disabled: true), dependenciesFingerprintPublisher(disabled: true),
+ findbugsPublisher(disabled: true), artifactsPublisher(disabled: true),
+ invokerPublisher(disabled: true), jgivenPublisher(disabled: true),
+ junitPublisher(disabled: true, ignoreAttachments: false),
+ openTasksPublisher(disabled: true), pipelineGraphPublisher(disabled: true)]
+ )
+ {
+ sh "mvn clean install -B -U -e -fae -T2"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
post {
unstable {
notifyBuild("Unstable Build")
}
- always {
- cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
- }
success {
script {
def previousResult = currentBuild.previousBuild?.result
--
To stop receiving notification emails like this one, please contact
martin_s@apache.org.