Skip to content

Commit

Permalink
Use artifact caching proxy for Jenkins Core builds (jenkinsci#7649)
Browse files Browse the repository at this point in the history
* Use artifact caching proxy for Jenkins Core builds

* pipeline library PR merged

* restore empty line
  • Loading branch information
lemeurherve authored Feb 18, 2023
1 parent b0041ce commit 1305b24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ builds.ath = {
// Just to be safe
deleteDir()
checkout scm
sh 'bash ath.sh'
infra.withArtifactCachingProxy {
sh 'bash ath.sh'
}
junit testResults: 'target/ath-reports/TEST-*.xml', testDataPublishers: [[$class: 'AttachmentPublisher']]
}
}
Expand Down
7 changes: 5 additions & 2 deletions ath.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ cd "$(dirname "$0")"
# https://github.com/jenkinsci/acceptance-test-harness/releases
export ATH_VERSION=5497.vca_4a_876045ce

# TODO use Artifactory proxy?
MVN='mvn -B -ntp -Pquick-build -am -pl war package'
if [[ -n ${MAVEN_SETTINGS-} ]]; then
MVN="${MVN} -s ${MAVEN_SETTINGS}"
fi

[[ -f war/target/jenkins.war ]] || mvn -B -ntp -Pquick-build -am -pl war package
[[ -f war/target/jenkins.war ]] || $MVN

mkdir -p target/ath-reports
chmod a+rwx target/ath-reports
Expand Down

0 comments on commit 1305b24

Please sign in to comment.