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 {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'maven:3-alpine'
|
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
|
reuseNode true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@ pipeline {
|
||||||
stage('Check Container') {
|
stage('Check Container') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn --version'
|
sh 'mvn --version'
|
||||||
|
sh 'whoami'
|
||||||
sh 'cat /root/.m2/settings-docker.xml'
|
sh 'cat /root/.m2/settings-docker.xml'
|
||||||
sh 'mvn help:effective-settings'
|
sh 'mvn help:effective-settings'
|
||||||
sh 'ls -l /root/.m2'
|
sh 'ls -l /root/.m2'
|
||||||
|
@ -25,7 +26,7 @@ pipeline {
|
||||||
|
|
||||||
stage('deploy') {
|
stage('deploy') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn help:effective-settings '
|
sh 'mvn help:effective-settings'
|
||||||
sh 'mvn deploy'
|
sh 'mvn deploy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue