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