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

Public repo should mirror OSSRH releases



    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: artifactory
    • Labels:
    • Similar Issues:


      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->                   -    -


          Issue Links


            jglick Jesse Glick created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Assignee Daniel Beck [ danielbeck ]
            teilo James Nord made changes -
            Comment [ FWIW - if the block is re-instated our nginx caching frontent should be able to rewrite/replace the user agent to be anything we want... ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            jglick Jesse Glick made changes -
            Link This issue is blocked by INFRA-1680 [ INFRA-1680 ]


              Unassigned Unassigned
              jglick Jesse Glick
              0 Vote for this issue
              2 Start watching this issue