Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20263

Artifact Resolver does not retrieve the latest version from central Maven Repository

    Details

    • Similar Issues:

      Description

      Despite the fact that the plugin is configured with the snapshot update policy = always (as shown in the attached screenshot), it always uses the snapshot version that is already available on the local Maven repository of the Jenkins slave.

      I consider this bug as a Major one as it is not possible to leverage this plugin to auto-deploy overnight the latest SNAPSHOT version

        Attachments

          Activity

          Hide
          tiendungitd Dennis Tran added a comment -

          I still got this issue in Jenkins 2.60.3, pls advise me how to fix it without Maven Snapshot Version Behavior: unique in Artifactory. Please advise me how to fix it

          Show
          tiendungitd Dennis Tran added a comment - I still got this issue in Jenkins 2.60.3, pls advise me how to fix it without Maven Snapshot Version Behavior: unique in Artifactory. Please advise me how to fix it
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: robertkleinschmager
          Path:
          src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java
          http://jenkins-ci.org/commit/repository-connector-plugin/6678c6838691cc154a8fe55eb909e420087fcdd6
          Log:
          [FIXED JENKINS-20263]
          Artifact Resolver does not retrieve the latest version from central Maven Repository

          • as #resolveMirrors() currently just copies the repository, we should ensure, that the policies are set BEFORE the copy was made
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: robertkleinschmager Path: src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java http://jenkins-ci.org/commit/repository-connector-plugin/6678c6838691cc154a8fe55eb909e420087fcdd6 Log: [FIXED JENKINS-20263] Artifact Resolver does not retrieve the latest version from central Maven Repository as #resolveMirrors() currently just copies the repository, we should ensure, that the policies are set BEFORE the copy was made
          Show
          barclay_reg Robert Kleinschmager added a comment - pull request submitted https://github.com/jenkinsci/repository-connector-plugin/pull/11
          Hide
          cschulz C. S. added a comment -

          Can confirm this behaviour.

          Show
          cschulz C. S. added a comment - Can confirm this behaviour.
          Hide
          barclay_reg Robert Kleinschmager added a comment -

          the problem only occured, if you repository is marked as 'Managed repository'.
          (cause lies within the usage of mirror-repository of the aether api)

          Show
          barclay_reg Robert Kleinschmager added a comment - the problem only occured, if you repository is marked as 'Managed repository'. (cause lies within the usage of mirror-repository of the aether api)

            People

            • Assignee:
              barclay_reg Robert Kleinschmager
              Reporter:
              renatodelgaudio Renato Del Gaudio
            • Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: