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

develop
Niclas Thobaben 2020-12-01 00:22:41 +01:00
parent 2ae370e9e2
commit d86cc8086f
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -2,7 +2,7 @@ pipeline {
agent {
docker {
image 'maven:3-alpine'
args '-v $HOME/.m2:/root/.m2:z -u root'
args '-v /var/jenkins_home/.m2:/root/.m2:z -u root'
reuseNode true
}
}
@ -11,6 +11,7 @@ pipeline {
stage('Check Container') {
steps {
sh 'mvn --version'
sh 'whoami'
sh 'cat /root/.m2/settings-docker.xml'
sh 'mvn help:effective-settings'
sh 'ls -l /root/.m2'
@ -25,7 +26,7 @@ pipeline {
stage('deploy') {
steps {
sh 'mvn help:effective-settings '
sh 'mvn help:effective-settings'
sh 'mvn deploy'
}
}