Fixed Jenkinsfile
All checks were successful
Locusworks Team/commons/pipeline/head This commit looks good

This commit is contained in:
Isaac Parenteau
2020-05-22 23:18:14 -05:00
parent c7c3f3c6bd
commit d3f59ab4ed

15
Jenkinsfile vendored
View File

@ -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}"
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) {