Explicitly use Atlassian repository#578
Explicitly use Atlassian repository#578basil wants to merge 1 commit intojenkinsci:masterfrom basil:repo
Conversation
basil
left a comment
There was a problem hiding this comment.
In draft pending a decision as to whether we want to create a remote repository for https://packages.atlassian.com/maven-public/ and include it in the https://repo.jenkins-ci.org/public/ virtual repository as described in jenkins-infra/helpdesk#3842 (comment).
|
I remembered this ringed a bell, we've been there before, @jglick any comments from you? |
|
I think we should add the Atlassian repository to the pom.xml of this plugin rather than mirror the contents of the Atlassian repository in the Jenkins repository because we're trying to reduce the bandwidth used by the Jenkins repository. Adding another mirror seems like it will increase the bandwidth use rather than reduce it. |
|
Well, #471 |
|
🤷 historically our policy as I understood it was to forbid use of other |
See jenkins-infra/helpdesk#3842. This plugin currently depends on JCenter for Atlassian libraries, but JFrog has asked us to stop caching JCenter dependencies. Based on this page, the dependencies we need are officially published at https://packages.atlassian.com/maven-public/ so fetch them from there directly. We choose
maven-publicrather thanmaven-externalbecause Atlassian may one day go through a similar bandwidth reduction exercise as we are currently going through right now, and in such an event they would want us to rely on public repositories for third-party libraries, so proactively anticipate such an event by using the repository that contains just Atlassian libraries.To test this, I verified that I could run
mvn clean verify -DskipTestsin a clean Docker container (without~/.m2) and without the JCenter cache:Note that the
orphansrepository is needed forjbcryptas explained in jenkins-infra/helpdesk#3842.