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

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',
mavenSettingsConfig: '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) {