Skip to content

Commit

Permalink
Merge pull request #162 from jglick/prepareToPublishIncrementals
Browse files Browse the repository at this point in the history
prepareToPublishIncrementals
  • Loading branch information
jglick authored Sep 3, 2019
2 parents e10ad3f + c55ed78 commit 4f8ea2c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
node('docker') {
node('maven') {
timeout(time: 1, unit: 'HOURS') {
deleteDir()
checkout scm
def tmp = pwd tmp: true
// TODO or can do explicitly something like: docker run -v "$TMP"/m2repo:/var/maven/.m2/repository --rm -u $(id -u):$(id -g) -e MAVEN_CONFIG=/var/maven/.m2 -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3.6.1-jdk-8 mvn -Duser.home=/var/maven …
docker.image('maven:3.6.1-jdk-8').inside {
withEnv(["TMP=$tmp"]) {
// TODO Azure mirror
sh 'mvn -B -Dmaven.repo.local="$TMP"/m2repo -ntp -e -Dset.changelist -Dexpression=changelist -Doutput="$TMP"/changelist -Dmaven.test.failure.ignore help:evaluate clean install'
}
}
// TODO Azure mirror
sh 'mvn -B -ntp -e -Dset.changelist -Dmaven.test.failure.ignore clean install'
junit '**/target/surefire-reports/TEST-*.xml'
def changelist = readFile("$tmp/changelist")
dir("$tmp/m2repo") {
archiveArtifacts "**/*$changelist/*$changelist*"
}
infra.prepareToPublishIncrementals()
}
}
infra.maybePublishIncrementals()

0 comments on commit 4f8ea2c

Please sign in to comment.