Skip to content
Permalink
Browse files
Don't run deploy within Docker, credentials not available
  • Loading branch information
seelmann committed Jan 20, 2019
1 parent 373400a commit 9119e92125ea07620bd02706e7b8a04f570b1bb6
Showing 1 changed file with 8 additions and 6 deletions.
@@ -119,14 +119,16 @@ pipeline {
}
stage ('Deploy') {
agent {
docker {
label 'ubuntu'
image 'apachedirectory/maven-build:jdk-8'
args '-v $HOME/.m2:/var/maven/.m2'
}
label 'ubuntu'
}
// https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix
// https://cwiki.apache.org/confluence/display/INFRA/Maven+Installation+Matrix
steps {
sh 'mvn -V clean deploy'
sh '''
export JAVA_HOME=/home/jenkins/tools/java/latest1.8
export MAVEN_OPTS="-Xmx512m"
/home/jenkins/tools/maven/latest3/bin/mvn -V clean install source:jar deploy
'''
}
post {
always {

0 comments on commit 9119e92

Please sign in to comment.