BLD FIX docker agent jenkins home volume
de.nclazz/maven-boot/pipeline/head There was a failure building this commit Details
NClazz/maven-boot/pipeline/head This commit looks good Details

develop
Niclas Thobaben 2020-12-01 00:53:19 +01:00
parent 3b7a30722f
commit fc5a42a54e
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -1,6 +1,7 @@
pipeline { pipeline {
environment { environment {
JAVA_TOOL_OPTIONS = "-Duser.home=/var/maven" JAVA_TOOL_OPTIONS = "-Duser.home=/var/maven"
MVN_SET = credentials('maven_settings')
} }
agent { agent {
docker { docker {
@ -14,20 +15,19 @@ pipeline {
stage('Check Container') { stage('Check Container') {
steps { steps {
sh 'mvn --version' sh 'mvn --version'
sh 'whoami' sh "mvn -s $MVN_SET help::effective-settings"
} }
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'mvn clean package' sh 'mvn -s $MVN_SET clean package'
} }
} }
stage('deploy') { stage('deploy') {
steps { steps {
sh 'mvn help:effective-settings' sh 'mvn -s $MVN_SET deploy'
sh 'mvn deploy'
} }
} }
} }