Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17756

Nexus Jenkins plugin fails requests when repository manager is not at base webapp context path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.13.0
    • Fix Version/s: None
    • Environment:
      Plugin version 3.3.20180912-170211.be90294

      Description

      Front Nexus repository manager 3 with a webapp context path that is not "/". For example is "/nexus" instead.

      In this scenario, connections to list repositories from the Nexus Platform Plugin for Jenkins fail.

      Nexus Repository Manager 3.x connection failed
      com.sonatype.nexus.api.dr: Not Found
      	at com.sonatype.nexus.api.ds.handleResponse(SourceFile:51)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(SourceFile:223)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(SourceFile:165)
      	at com.sonatype.nexus.api.dn.a(SourceFile:84)
      Caused: com.sonatype.nexus.api.exception.RepositoryManagerException: Get repositories was unsuccessful (404 response from server)
      	at com.sonatype.nexus.api.dn.a(SourceFile:106)
      	at com.sonatype.nexus.api.dn.a(SourceFile:87)
      	at com.sonatype.nexus.api.dm.getRepositories(SourceFile:123)
      	at com.sonatype.nexus.api.repository.v3.RepositoryManagerV3Client$getRepositories.call(Unknown Source)
      	at org.sonatype.nexus.ci.util.Nxrm3Util.getApplicableRepositories(Nxrm3Util.groovy:49)
      	at org.sonatype.nexus.ci.util.Nxrm3Util$getApplicableRepositories.callStatic(Unknown Source)
      	at org.sonatype.nexus.ci.config.Nxrm3Configuration$DescriptorImpl.doVerifyCredentials(Nxrm3Configuration.groovy:79)
      
      

      Expected

      Nexus may be hosted at any level of webapp context path ( ie. /nexus/server/1/ - connections to it must expect this and handle it normally.

        Attachments

          Activity

            People

            Assignee:
            cpeters Collin Peters
            Reporter:
            KWright Kristofer Wright [X] (Inactive)
            Last Updated By:
            Peter Lynch
            Team:
            NXRM - Cypher
            Votes:
            5 Vote for this issue
            Watchers:
            14 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title