Fixed jenkins issue
Some checks failed
app-logger/pipeline/head There was a failure building this commit
Locusworks Team/app-logger/pipeline/head There was a failure building this commit

This commit is contained in:
Isaac Parenteau
2020-05-22 19:35:27 +01:00
parent 74c5be70df
commit f1baf6cbc9

17
Jenkinsfile vendored
View File

@ -108,17 +108,18 @@ def getSha1() {
} }
def mvn(args) { def mvn(args) {
// add node and maven tools to path before calling maven withMaven(
def mvnHome = tool name: 'maven-3.6.1' maven: 'maven-3.6.1',
env.PATH = "${mvnHome}/bin:${env.PATH}" mavenSettingsConfig: 'locusworks-settings'
sh "mvn ${args}" ) {
sh "mvn ${args}"
}
} }
def mvn_initial(args) { def mvn_initial(args) {
// add node and maven tools to path before calling maven mvn(args)
def mvnHome = tool name: 'maven-3.6.1'
env.PATH = "${mvnHome}/bin:${env.PATH}"
sh "mvn ${args}"
} }
def set_result(status) { def set_result(status) {