Skip to content

Commit

Permalink
Merge pull request #690 from dduportal/chore/pipeline-use-acp
Browse files Browse the repository at this point in the history
chore(pipeline) use Artifact Caching Proxy to speed up CI build
  • Loading branch information
jglick authored Dec 19, 2024
2 parents 7e55887 + dd30f6a commit 20ddd26
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ def runTests(Map params = [:]) {
}
stage("Build (${stageIdentifier})") {
ansiColor('xterm') {
def args = ['-Dstyle.color=always', '-Prun-its', '-Dmaven.test.failure.ignore', 'clean', 'install', 'site']
if (publishing) {
args += '-Dset.changelist'
}
// Needed for correct computation of JenkinsHome in RunMojo#execute.
withEnv(['JENKINS_HOME=', 'HUDSON_HOME=']) {
infra.runMaven(args, params['jdk'], null, null, false)
infra.withArtifactCachingProxy(true) {
def args = ['-Dstyle.color=always', '-Prun-its', '-Dmaven.test.failure.ignore', 'clean', 'install', 'site']
if (publishing) {
args += '-Dset.changelist'
}
// Needed for correct computation of JenkinsHome in RunMojo#execute.
withEnv(['JENKINS_HOME=', 'HUDSON_HOME=']) {
infra.runMaven(args, params['jdk'], null, null, false)
}
}
}
}
Expand Down

0 comments on commit 20ddd26

Please sign in to comment.