BLD FIX docker agent jenkins home volume
de.nclazz/maven-boot/pipeline/head There was a failure building this commit
Details
de.nclazz/maven-boot/pipeline/head There was a failure building this commit
Details
parent
2ae370e9e2
commit
d86cc8086f
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue