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

Error publishing StackRox jenkins plugin artifact to the plugin index

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: jenkins.io
    • Labels:
      None
    • Similar Issues:

      Description

      mvn release:prepare release:perform command fails on the stackrox-container-image-scanner-plugin repository fails with the error:

      Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project stackrox-container-image-scanner: Failed to deploy artifacts: Could not transfer artifact org.jenkins-ci.plugins:stackrox-container-image-scanner:hpi:1.2.3 from/to maven.jenkins-ci.org (https://repo.jenkins-ci.org/releases/): Access denied to: https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/stackrox-container-image-scanner/1.2.3/stackrox-container-image-scanner-1.2.3.hpi -> [Help 1]

       

      I just reset the password, logged into artifactory after that, and copied over the encrypted password into ~/.m2/settings.xml

        Attachments

          Activity

          stackrox StackRox Inc. created issue -
          Hide
          stackrox StackRox Inc. added a comment -

          Can someone from Infra please take a look, this is blocking our release of the Jenkins plugin. Thanks!

          Show
          stackrox StackRox Inc. added a comment - Can someone from Infra please take a look, this is blocking our release of the Jenkins plugin. Thanks!
          Hide
          stackrox StackRox Inc. added a comment -

          Alex Earl would you be able to help route this to the appropriate group/persons? Thank you so much.

          Show
          stackrox StackRox Inc. added a comment - Alex Earl would you be able to help route this to the appropriate group/persons? Thank you so much.
          Show
          slide_o_mix Alex Earl added a comment - You are using this username? https://github.com/jenkins-infra/repository-permissions-updater/blob/master/permissions/plugin-stackrox-container-image-scanner.yml#L6
          Hide
          stackrox StackRox Inc. added a comment - - edited

          No, using `stackrox` as the username in `~.m2/settings.xml`. Should I submit a PR to change? (I think we had renamed our username at some point), or should I try editing the .~m2/settings.xml to have `srox_plugin` as the username?

          Show
          stackrox StackRox Inc. added a comment - - edited No, using `stackrox` as the username in `~.m2/settings.xml`. Should I submit a PR to change? (I think we had renamed our username at some point), or should I try editing the .~m2/settings.xml to have `srox_plugin` as the username?
          Hide
          slide_o_mix Alex Earl added a comment -

          The username you use has to match up with what is in that file in the repository-permissions-updater repo. I didn't know our infra allowed renaming users, how did you do it? You logged into Artifactory with the stackrox username? You can submit a PR to change the permissions file I linked to, or try with the srox_plugin username.

          Show
          slide_o_mix Alex Earl added a comment - The username you use has to match up with what is in that file in the repository-permissions-updater repo. I didn't know our infra allowed renaming users, how did you do it? You logged into Artifactory with the stackrox username? You can submit a PR to change the permissions file I linked to, or try with the srox_plugin username.
          Hide
          stackrox StackRox Inc. added a comment -

          Yes, I can log into artifactory with stackrox as the username, I'll submit a PR to change it in the repository-permissions-updater repo. (I think we edited the profile of our user on jenkins.io but it has been a while so not sure I remember clearly). Fwiw: I did try editing the .m2/settings.xml to have srox_plugin as the username and I still got a 401 when I run mvn release:prepare release:perform

          Show
          stackrox StackRox Inc. added a comment - Yes, I can log into artifactory with stackrox as the username, I'll submit a PR to change it in the repository-permissions-updater repo. (I think we edited the profile of our user on jenkins.io but it has been a while so not sure I remember clearly). Fwiw: I did try editing the .m2/settings.xml to have srox_plugin as the username and I still got a 401 when I run mvn release:prepare release:perform
          Hide
          stackrox StackRox Inc. added a comment -

          Trying to submit a PR for the username change in the repository-permissions-updater repo, but seems like I need elevated privileges?

           

          $ git push --set-upstream origin stackrox-username-update

          ERROR: Permission to jenkins-infra/repository-permissions-updater.git denied to clickboo.

          fatal: Could not read from remote repository.

           

          Please make sure you have the correct access rights

          and the repository exists.

          Show
          stackrox StackRox Inc. added a comment - Trying to submit a PR for the username change in the repository-permissions-updater repo, but seems like I need elevated privileges?   $ git push --set-upstream origin stackrox-username-update ERROR: Permission to jenkins-infra/repository-permissions-updater.git denied to clickboo. fatal: Could not read from remote repository.   Please make sure you have the correct access rights and the repository exists.
          Hide
          slide_o_mix Alex Earl added a comment -
          Show
          slide_o_mix Alex Earl added a comment - Please use this guide for creating a pull request. https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            stackrox StackRox Inc.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: