-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from jglick/prepareToPublishIncrementals
prepareToPublishIncrementals
- Loading branch information
Showing
1 changed file
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |