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-redback-components-spring-cache.git
The following commit(s) were added to refs/heads/master by this push: new 45eec1e Improved pipeline 45eec1e is described below commit 45eec1eb69b9760caeb277be795a973744f10f20 Author: Martin Stockhammer <m.stockham...@web.de> AuthorDate: Sun Apr 15 22:41:04 2018 +0200 Improved pipeline --- Jenkinsfile | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5c1918..6f81537 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,17 +22,41 @@ * Jenkins Pipeline configuration. * */ -node { - stage ('Build') { +/** + * + * Jenkins Pipeline configuration. + * + */ + +def labels = 'ubuntu' +def buildJdk = 'JDK 1.8 (latest)' +def buildMvn = 'Maven 3.5.2' +def deploySettings = 'DefaultMavenSettingsProvider.1331204114925' - git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-spring-cache.git' +node(labels) { + stage ('Clone Sources') { + git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git' + } + + stage ('Build') { withMaven( - // Maven installation declared in the Jenkins "Global Tool Configuration" - maven: 'Maven 3.5.2') { + maven: buildMvn, + jdk: buildJdk + ) { // Run the maven build - sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false -Pci-build" + sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false" + } // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe & FindBugs reports... + } + stage ('Deploy') { + withMaven( + maven: buildMvn, + jdk: buildJdk, + mavenSettingsConfig: deploySettings + ) { + // Run the maven build + sh "mvn clean deploy -Dmaven.test.skip=true -B -U -e -fae -Dmaven.compiler.fork=false" } // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe & FindBugs reports... } } \ No newline at end of file -- To stop receiving notification emails like this one, please contact marti...@apache.org.