This is an automated email from the ASF dual-hosted git repository. stephenc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git
The following commit(s) were added to refs/heads/master by this push: new 07c5b9f Add initial draft standard build from episode 5 07c5b9f is described below commit 07c5b9f80ebeffb33af8110a19f14ea969d03af8 Author: Stephen Connolly <stephen.alan.conno...@gmail.com> AuthorDate: Sun Nov 26 22:22:00 2017 +0000 Add initial draft standard build from episode 5 --- vars/asfMavenTlpStdBuild.groovy | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy new file mode 100644 index 0000000..80c2db6 --- /dev/null +++ b/vars/asfMavenTlpStdBuild.groovy @@ -0,0 +1,37 @@ +def call(Map params = [:]) { + def oses = params.containsKey('os') ? params.os : ['linux', 'windows'] + def jdks = params.containsKey('jdks') ? params.jdks : ['7','8'] + def maven = params.containsKey('maven') ? params.maven : '3.x.x' + def failFast = params.containsKey('failFast') ? params.failFast : true + Map tasks = [failFast: failFast] + boolean first = true + for (String os in oses) { + for (def jdk in jdks) { + String label = jenkinsEnv.labelForOS(os); + String jdkName = jenkinsEnv.jdkFromVersion(os, "${jdk}") + String mvnName = jenkinsEnv.mvnFromVersion(os, "${maven}") + if (label == null || jdkName == null || mvnName == null) { + continue; + } + String stageId = "${os}-jdk${jdk}" + tasks[stageId] = { + node(label) { + stage("Checkout ${stageId}") { + checkout scm + } + stage("Build ${stageId}") { + withMaven(jdk:jdkName, maven:mvnName, mavenLocalRepo:'.repository') { + if (isUnix()) { + sh 'mvn clean verify' + } else { + bat 'mvn clean verify' + } + } + } + } + } + first = false + } + } + return parallel(tasks) +} \ No newline at end of file -- To stop receiving notification emails like this one, please contact ['"commits@maven.apache.org" <commits@maven.apache.org>'].