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

Plugin installation manager does not work with other update sites

      I've found that jenkins-plugin-manager-1.0.1 fails when not used against updates.jenkins.io. For example, the Cloudbees update center fails because that site has no update-center.actual.json file available there. There seems to be is an update-center.json for all of the update centers.

      The actual file has pure json content while the non-actual file has a wrapper around the json which is "updateCenter.post( ... json goes here ... );" Someone said that has to do with allowing the file to be more easily compatible with browsers use of javascript.

      I don't know if the best thing is to get Cloudbees to add the non-actual file or change the code to remove the wrapper text in in the non-actual file and use it.

          [JENKINS-60214] Plugin installation manager does not work with other update sites

          leemeador created issue -
          Zbynek Konecny made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 24015 ]
          leemeador made changes -
          Summary Original: Plugin installation manager does not work with Cloudbees update site New: Plugin installation manager does not work with other update sites
          leemeador made changes -
          Description Original: I've found that jenkins-plugin-manager-1.0.1 fails when used against the Cloudbees update center because that site has no update-center.actual.json file available there. There is an update-center.json.

          The actual file has pure json content while the non-actual file has a wrapper around the json "updateCenter.post( ... json goes here ... );" Someone said that has to do with allowing the file to be more easily compatible with browsers use of javascript.


          I don't know if the best thing is to get Cloudbees to add the non-actual file or change the code to remove the wrapper text in in the non-actual file and use it.
          New: I've found that jenkins-plugin-manager-1.0.1 fails when not used against updates.jenkins.io. For example, the Cloudbees update center fails because that site has no update-center.actual.json file available there. There seems to be is an update-center.json for all of the update centers.

          The actual file has pure json content while the non-actual file has a wrapper around the json which is "updateCenter.post( ... json goes here ... );" Someone said that has to do with allowing the file to be more easily compatible with browsers use of javascript.

          I don't know if the best thing is to get Cloudbees to add the non-actual file or change the code to remove the wrapper text in in the non-actual file and use it.

          Though we could ask to add this on CloudBees side, I think the right way is to actually not use the .actual.json, since this is the other file that Jenkins uses/relies on. So IMO it would be safer to use the file that Jenkins instances are downloading.

          Baptiste Mathus added a comment - Though we could ask to add this on CloudBees side, I think the right way is to actually not use the .actual.json , since this is the other file that Jenkins uses/relies on. So IMO it would be safer to use the file that Jenkins instances are downloading.

          Tim Jacomb added a comment -

          It seems silly that you need to modify a response before you can use it, would be good for cloudbees to add the JSON imo

          Tim Jacomb added a comment - It seems silly that you need to modify a response before you can use it, would be good for cloudbees to add the JSON imo

          Well, processing data is what we do with these things under our hands .
          Back to my point about the "source of truth", I still quite believe the fact the tool does not use what Jenkins does is a pretty important thing?

          Baptiste Mathus added a comment - Well, processing data is what we do with these things under our hands . Back to my point about the "source of truth", I still quite believe the fact the tool does not use what Jenkins does is a pretty important thing?

          Tim Jacomb added a comment -

          It can handle both formats now

          Tim Jacomb added a comment - It can handle both formats now

          (y)great! Thanks!

          Baptiste Mathus added a comment - (y)great! Thanks!
          leemeador made changes -
          Remote Link Original: This issue links to "PR (Web Link)" [ 24015 ]

            leemeador leemeador
            leemeador leemeador
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: