You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2016/12/19 14:11:17 UTC
maven git commit: Add windows builds to Jenkinsfile (hopefully)
Repository: maven
Updated Branches:
refs/heads/master 0185e2bec -> 7d1d8ac0c
Add windows builds to Jenkinsfile (hopefully)
Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/7d1d8ac0
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/7d1d8ac0
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/7d1d8ac0
Branch: refs/heads/master
Commit: 7d1d8ac0c14bdea6c92356436bfc6f8548cbae8b
Parents: 0185e2b
Author: Stephen Connolly <st...@gmail.com>
Authored: Mon Dec 19 14:11:11 2016 +0000
Committer: Stephen Connolly <st...@gmail.com>
Committed: Mon Dec 19 14:11:11 2016 +0000
----------------------------------------------------------------------
Jenkinsfile | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven/blob/7d1d8ac0/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 7d6fdf6..a7de771 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -73,14 +73,46 @@ parallel linuxJava7:{
}
}
}, winJava7: {
- node('windows') {
+ node('Windows') {
def MAVEN_WIN_J7=tool name: 'Maven 3.3.9', type: 'hudson.tasks.Maven$MavenInstallation'
def JAVA_WIN_J7=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
+ dir('test') {
+ def WORK_DIR=pwd()
+ git(url:'https://git-wip-us.apache.org/repos/asf/maven-integration-testing.git', branch: 'master')
+ batch "rmdir /s /q it-local-repo"
+ batch "rmdir /s /q it-local-maven"
+ batch "rmdir /s /q apache-maven-*"
+ batch "del /q apache-maven-*-bin.zip"
+ unstash 'dist'
+ batch "$JAVA_WIN_J7/bin/jar xf apache-maven-*-bin.zip"
+ batch "del /q apache-maven-*-bin.zip"
+ batch "ren apache-maven-* it-local-maven"
+ withEnv(["PATH+MAVEN=$MAVEN_WIN_J7/bin","PATH+JDK=$JAVA_WIN_J7/bin"]) {
+ batch "mvn clean verify -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -Dmaven.home=$WORK_DIR/it-local-maven"
+ junit allowEmptyResults: true, testResults:'**/target/*-reports/*.xml'
+ }
+ }
}
}, winJava8: {
- node('windows') {
+ node('Windows') {
def MAVEN_WIN_J8=tool name: 'Maven 3.3.9', type: 'hudson.tasks.Maven$MavenInstallation'
def JAVA_WIN_J8=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
+ dir('test') {
+ def WORK_DIR=pwd()
+ git(url:'https://git-wip-us.apache.org/repos/asf/maven-integration-testing.git', branch: 'master')
+ batch "rmdir /s /q it-local-repo"
+ batch "rmdir /s /q it-local-maven"
+ batch "rmdir /s /q apache-maven-*"
+ batch "del /q apache-maven-*-bin.zip"
+ unstash 'dist'
+ batch "$JAVA_WIN_J8/bin/jar xf apache-maven-*-bin.zip"
+ batch "del /q apache-maven-*-bin.zip"
+ batch "ren apache-maven-* it-local-maven"
+ withEnv(["PATH+MAVEN=$MAVEN_WIN_J8/bin","PATH+JDK=$JAVA_WIN_J8/bin"]) {
+ batch "mvn clean verify -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -Dmaven.home=$WORK_DIR/it-local-maven"
+ junit allowEmptyResults: true, testResults:'**/target/*-reports/*.xml'
+ }
+ }
}
}
} finally {