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

Unable to download credentials-plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Summary:

      • Downloaded file is not a valid ZIP
      • Unable to resolve dependencies for credentials-plugin

      Description:

      During the day I was trying to redeploy our jenkins as code and I noticed that the credentials-plugin is not being able to be downloaded. We are running our jenkins inside a Kubernetes cluster and i was able to retrieve the logs from the init container.

       

      disable Setup Wizard
      remove all plugins from shared volume
      download plugins
      Downloading plugin credentials-plugin from url: https://updates.jenkins.io/download/plugins/credentials-plugin/2.4.1/credentials-plugin.hpi
      Downloaded file is not a valid ZIP
      Unable to resolve dependencies for credentials-plugin
      

       

       

      When i try to access the url from where the credentials plugin is being downloaded i get redirected to https://get.jenkins.io/plugins/credentials-plugin/2.4.1/credentials-plugin.hpi and a "Not Found" message is being displayed. I tried to download other plugins and they apparently work fine and i don't get redirected to the second url.

      I also tried to curl the download url from the logs and this is the output.

       

      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>302 Found</title>
      </head><body>
      <h1>Found</h1>
      <p>The document has moved <a href="https://get.jenkins.io/plugins/credentials-plugin/2.4.1/credentials-plugin.hpi">here</a>.</p>
      </body></html>

       

       

      Currently, we are not being able to redeploy our jenkins in order to follow the normal cicd flow.

      Jenkins Version: 2.263.1-lts

      Credentials plugin version: 2.4.1

       

        Attachments

          Activity

          Hide
          tiagomichaelsousa Tiago added a comment -

          For those that are using jenkins as code, the plugin isn't called credentials-plugin anymore, it's actually just credentials.

          If you try to access the urls on the description of the ticket with credentials instead of credentials-plugin, you should be able to list and download the files.

          https://get.jenkins.io/plugins/credentials/

          Show
          tiagomichaelsousa Tiago added a comment - For those that are using jenkins as code, the plugin isn't called credentials-plugin anymore, it's actually just credentials . If you try to access the urls on the description of the ticket with credentials instead of credentials-plugin , you should be able to list and download the files. https://get.jenkins.io/plugins/credentials/
          Hide
          tiagomichaelsousa Tiago added a comment -

          credentials-plugin was renamed to credentials

          Show
          tiagomichaelsousa Tiago added a comment - credentials-plugin was renamed to credentials
          Hide
          markewaite Mark Waite added a comment - - edited

          I'm not aware of any renaming of the credentials plugin. It has always been 'credentials' according to the 9 years of history in the GitHub repository and on mirrors like https://mirror.xmission.com/jenkins/plugins/credentials/ .

          The current plugins page on https://updates.jenkins.io/ lists the plugin name as credenitals.hpi and provides the download link as https://updates.jenkins.io/latest/credentials.hpi . From my location, that resolves to https://mirror.xmission.com/jenkins/plugins/credentials/2.4.1/credentials.hpi

          What is displayed when you open https://updates.jenkins.io/latest/credentials.hpi?mirrorlist ?

          My screen shows:

          Show
          markewaite Mark Waite added a comment - - edited I'm not aware of any renaming of the credentials plugin. It has always been 'credentials' according to the 9 years of history in the GitHub repository and on mirrors like https://mirror.xmission.com/jenkins/plugins/credentials/ . The current plugins page on https://updates.jenkins.io/ lists the plugin name as credenitals.hpi and provides the download link as https://updates.jenkins.io/latest/credentials.hpi . From my location, that resolves to https://mirror.xmission.com/jenkins/plugins/credentials/2.4.1/credentials.hpi What is displayed when you open https://updates.jenkins.io/latest/credentials.hpi?mirrorlist ? My screen shows:

            People

            Assignee:
            stopalopa Natasha Stopa
            Reporter:
            tiagomichaelsousa Tiago
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: