added configFileProvider

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

View file

@ -16,7 +16,9 @@ pipeline {
} }
} }
steps { 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') { stage('Build container') {
@ -47,11 +49,5 @@ pipeline {
sh 'sleep 4' sh 'sleep 4'
} }
} }
stage('Stop local container') {
agent any
steps {
sh 'docker rm -f petclinic-tomcat-temp || true'
}
}
} }
} }