Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-1224

Public repo should mirror OSSRH releases

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: artifactory
    • Labels:
      None
    • Similar Issues:

      Description

      For my company's internal repository manager, our group repositories include a mirror of https://oss.sonatype.org/content/repositories/releases/ (the OSSRH releases repository which gets synched periodically to Central). This is very handy because if we do a release to OSSRH—for example, mvn -f .../groovy-cps release:{prepare,perform}—then CI jobs pick it up immediately, without needing to wait for the Central synch.

      Unfortunately the Jenkins repository does not seem to do this, resulting in failures like https://ci.jenkins.io/job/Plugins/job/workflow-cps-plugin/job/PR-143/2/consoleFull

      Failed to execute goal on project workflow-cps: Could not resolve dependencies for project org.jenkins-ci.plugins.workflow:workflow-cps:hpi:2.35-SNAPSHOT: Could not find artifact com.cloudbees:groovy-cps:jar:1.15 in azure (https://repo.azure.jenkins.io/public/)
      

      In this case https://oss.sonatype.org/content/repositories/releases/com/cloudbees/groovy-cps/1.15/groovy-cps-1.15.jar is a 200 while https://repo.maven.apache.org/maven2/com/cloudbees/groovy-cps/1.15/groovy-cps-1.15.jar is a 404 for a while, as is our https://repo.jenkins-ci.org/public/com/cloudbees/groovy-cps/1.15/groovy-cps-1.15.jar and so we have to wait a little while before being able to do integration testing.

      I see that http://repo.jenkins-ci.org/oss.sonatype.org-releases/com/cloudbees/groovy-cps/ exists but has nothing since January...?

      Now the artifact has appeared on Central but our mirror is still a 404; the https://repo.jenkins-ci.org/public/com/cloudbees/groovy-cps/ directory listing shows

      ...
      1.14-SNAPSHOT/            02-Jun-2017 22:28    -
      1.15/->                       -    -
      1.15-SNAPSHOT/            09-Jun-2017 19:09    -
      ...
      

      and https://repo.jenkins-ci.org/public/com/cloudbees/groovy-cps/1.15/ shows the right artifacts but all looking like broken symlinks, which is even weirder:

      ...
      groovy-cps-1.15-tests.jar.sha1->            -    -
      groovy-cps-1.15.jar->                       -    -
      groovy-cps-1.15.jar.asc->                   -    -
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: