From 8f7f6c8653def0d295f38efb796a99c7533b3d32 Mon Sep 17 00:00:00 2001 From: Isaac Parenteau Date: Fri, 22 May 2020 22:59:23 -0500 Subject: [PATCH] Fixed Jenkinsfile --- Jenkinsfile | 17 +++++++++-------- pom.xml | 41 +++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3467d80..3b19af3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -108,17 +108,18 @@ def getSha1() { } def mvn(args) { - // add node and maven tools to path before calling maven - def mvnHome = tool name: 'maven-3.6.1' - env.PATH = "${mvnHome}/bin:${env.PATH}" - sh "mvn ${args}" + withMaven( + maven: 'maven-3.6.1', + globalMavenSettingsConfig: 'locusworks-settings' + ) { + + sh "mvn ${args}" + + } } def mvn_initial(args) { - // add node and maven tools to path before calling maven - def mvnHome = tool name: 'maven-3.6.1' - env.PATH = "${mvnHome}/bin:${env.PATH}" - sh "mvn ${args}" + mvn(args) } def set_result(status) { diff --git a/pom.xml b/pom.xml index 4f76df7..890f233 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ ${project.basedir} 1.8 1.8 - http://nexus.locusworks.net + https://nexus.locusworks.net @@ -48,19 +48,6 @@ - - - nexus-proxy-public - ${nexus.repo}/repository/maven-public/ - - - - - nexus-proxy-public - ${nexus.repo}/repository/maven-public/ - - - nexus-snapshot @@ -72,4 +59,30 @@ + + + locusworks-public + locusworks-public + ${nexus.repo}/repository/locusworks-public/ + + true + + + true + + + + + + + locusworks-public + ${nexus.repo}/repository/locusworks-public/ + + true + + + true + + + \ No newline at end of file