added configFileProvider

This commit is contained in:
matthewpdias 2018-03-07 15:11:47 -08:00
parent d996061554
commit 79b053c200

View file

@ -16,8 +16,10 @@ pipeline {
}
}
steps {
sh 'mvn clean install'
}
configFileProvider([configFile(fileId: 'nexus', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS clean deploy -DskipTests=true -B'
}
}
}
stage('Build container') {
agent any
@ -47,11 +49,5 @@ pipeline {
sh 'sleep 4'
}
}
stage('Stop local container') {
agent any
steps {
sh 'docker rm -f petclinic-tomcat-temp || true'
}
}
}
}