Fixed Jenkinsfile
All checks were successful
Locusworks Team/commons/pipeline/head This commit looks good
All checks were successful
Locusworks Team/commons/pipeline/head This commit looks good
This commit is contained in:
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -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}"
|
globalMavenSettingsConfig: '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) {
|
||||||
|
Reference in New Issue
Block a user