Skip to content

Commit

Permalink
#121 - Set user.name and user.home for CI jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregturn committed Jun 25, 2019
1 parent 82aad7c commit f6e94cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 117 deletions.
110 changes: 0 additions & 110 deletions .mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

18 changes: 11 additions & 7 deletions Jenkinsfile
Expand Up @@ -20,8 +20,10 @@ pipeline {
args '-u root -v /var/run/docker.sock:/var/run/docker.sock' // root but with no maven caching
}
}
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh "./mvnw -Pci,all-dbs clean dependency:list test -Dsort -Dbundlor.enabled=false -B"
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw -Pci,all-dbs clean dependency:list test -Dsort -Dbundlor.enabled=false -B'
sh "chown -R 1001:1001 target"
}
}
Expand All @@ -34,18 +36,19 @@ pipeline {
}
agent {
docker {
label 'data'
image 'adoptopenjdk/openjdk8:latest'
args '-v $HOME/.m2:/root/.m2'
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
}
}
options { timeout(time: 20, unit: 'MINUTES') }

environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
}

steps {
sh "./mvnw -Pci,snapshot deploy -Dmaven.test.skip=true -B"
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw -Pci,snapshot deploy -Dmaven.test.skip=true -B'
}
}

Expand All @@ -55,18 +58,19 @@ pipeline {
}
agent {
docker {
label 'data'
image 'adoptopenjdk/openjdk8:latest'
args '-v $HOME/.m2:/root/.m2'
args '-v $HOME/.m2:/tmp/spring-data-maven-repository'
}
}
options { timeout(time: 20, unit: 'MINUTES') }

environment {
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
}

steps {
sh "./mvnw -Pci,snapshot deploy -Dmaven.test.skip=true -B"
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/spring-data-maven-repository" ./mvnw -Pci,snapshot deploy -Dmaven.test.skip=true -B'
}
}
}
Expand Down

0 comments on commit f6e94cd

Please sign in to comment.