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

Cannot upload plugin to repo.jenkins.ci

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I am trying to upload my first release of https://github.com/jenkinsci/material-theme-plugin, but it's failing with the `mvn release:perform -e` step.
      My permissions diff has been accepted: https://github.com/jenkins-infra/repository-permissions-updater and I have waited a few hours for it to propigate (I think I saw an issue earlier which said to wait at least an hour).

      The error is:
      ```
      [INFO] — maven-deploy-plugin:2.8.2:deploy (default-deploy) @ material-theme —
      Uploading to maven.jenkins-ci.org: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/material-theme/0.3.0/material-theme-0.3.0.hpi
      Uploading to maven.jenkins-ci.org: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/material-theme/0.3.0/material-theme-0.3.0.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 24.137 s
      [INFO] Finished at: 2020-10-07T11:16:38+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project material-theme: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:material-theme:hpi:0.3.0 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/io/jenkins/plugins/material-theme/0.3.0/material-theme-0.3.0.hpi -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      ```

      My jenkins LDAP user is `canuck1987`, but my github user is `timbrown5` - i think I also have an old `timbrown5` LDAP account (which i could switch to in the furture if it's easier).

      I have added my LDAP credentials to `~/m2/settings.pom`
      ```
      <settings xmlns="https://maven.apache.org/SETTINGS/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://maven.apache.org/SETTINGS/1.0.0
      https://maven.apache.org/xsd/settings-1.0.0.xsd">
      <servers>
      <server>
      <id>maven.jenkins-ci.org</id>
      <username>canuck1987</username>
      <password>...</password>
      </server>
      </servers>

      <pluginGroups>
      ...
      ```
      I have also added a new SSH key to GitHub and added it to my ssk-agent (i think I wouldn't get this far if that wasn't working).

      I just wanted to check if there is something I am missing or if I need to be more patient .

      P.S. sorry if this is the wrong component. I looked at a number of INFRA-xxx issues and they seemed to have different components, so I tried to pick the one I thought best suited.

        Attachments

          Activity

          Hide
          canuck1987 Tim Brown added a comment -

          ```
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project material-theme: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:material-theme:hpi:0.3.0 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Authorization failed for https://repo.jenkins-ci.org/releases/io/jenkins/plugins/material-theme/0.3.0/material-theme-0.3.0.hpi 403 Forbidden -> [Help 1]
          ```
          I tried again this morning (on a different machine) and for a 403. I found this previous issue https://issues.jenkins-ci.org/browse/INFRA-1254, which points to these docs:
          https://wiki.jenkins.io/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues

          I double-checked the yml and I think the path is incorrect, so I have submitted a PR to fix this: https://github.com/jenkins-infra/repository-permissions-updater/pull/1703

          Show
          canuck1987 Tim Brown added a comment - ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project material-theme: Failed to deploy artifacts: Could not transfer artifact io.jenkins.plugins:material-theme:hpi:0.3.0 from/to maven.jenkins-ci.org ( https://repo.jenkins-ci.org/releases/): Authorization failed for https://repo.jenkins-ci.org/releases/io/jenkins/plugins/material-theme/0.3.0/material-theme-0.3.0.hpi 403 Forbidden -> [Help 1] ``` I tried again this morning (on a different machine) and for a 403. I found this previous issue https://issues.jenkins-ci.org/browse/INFRA-1254 , which points to these docs: https://wiki.jenkins.io/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues I double-checked the yml and I think the path is incorrect, so I have submitted a PR to fix this: https://github.com/jenkins-infra/repository-permissions-updater/pull/1703
          Hide
          canuck1987 Tim Brown added a comment -

          The PR has now landed and I am ablw to push to the repo. For anyone who finds this in the future, make sure the path attributes patches you package namespace, not the code namespace:
          My package groupId is `io.jenkins.plugins` and artifactId is `material-theme`, which means the path should be: `` https://github.com/jenkinsci/material-theme-plugin/tree/master/src/main/java/io/jenkins/plugins/materialtheme
          In the package, I have classes in `java/io/jenkins/plugins/materialtheme` (which is what was confusing me). https://github.com/jenkinsci/material-theme-plugin/tree/master/src/main/java/io/jenkins/plugins/materialtheme

          Show
          canuck1987 Tim Brown added a comment - The PR has now landed and I am ablw to push to the repo. For anyone who finds this in the future, make sure the path attributes patches you package namespace, not the code namespace: My package groupId is `io.jenkins.plugins` and artifactId is `material-theme`, which means the path should be: `` https://github.com/jenkinsci/material-theme-plugin/tree/master/src/main/java/io/jenkins/plugins/materialtheme In the package, I have classes in `java/io/jenkins/plugins/materialtheme` (which is what was confusing me). https://github.com/jenkinsci/material-theme-plugin/tree/master/src/main/java/io/jenkins/plugins/materialtheme

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            canuck1987 Tim Brown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: