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

Allow automatic installation from URLs other than NodeJS

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      On the Global Tools Configuration UI, when setting up a new Node tool version, you have the possibility to install directly from nodejs.org, or setup an install with a zip/tar and add the url of the thing you want to install.

      If you go the path of pointing to a specific URL, then it seems you must define a slave filter type, and create a definition for each platform.  IE, here's a Windows installer URL, here's a Linux installer URL, etc.

      This feature came up because of a current problem with Jenkins global tools updates not running:  INFRA-1428

      Because of this issue on the Jenkins infrastructure, the nodejs tools list is not updating, meaning the nodejs version we want to use is not available for automatic installation.

      OK, so, we decide we will mirror the nodejs downloads site, and we would like to create our our reference to our copy.  But there seems to be no way to get automatic installation of all versions on all platforms unless using the "Install from nodejs.org" installation type.

      So this feature would be to allow you to define your own custom url, where the same structure as available on nodejs.org would be mirrored, and install from there.  IE, "Install from URL" where the value is "http://mirror.ourcompany.com/artifacts/nodejs/dist/v8.9.3/"

       

        Attachments

          Activity

          Hide
          nfalco Nikolas Falco added a comment - - edited

          The tool page draw in the same manner the installer part based on the content of a JSON file (for nodeJS plugin hudson.plugins.nodejs.tools.NodeJSInstaller.json).

          To make available more "site" installer action we must have the same mechanism, where a similar JSON is available on jenkins but with different base URL (http://mirror.ourcompany.com/artifacts/nodejs).

          I could override the nodejs base URL with a custom specified in a text box in tool page but the dropdown is always populated in standard way, so you will have the same issue when hudson.plugins.nodejs.tools.NodeJSInstaller.json is not downloaded and for this reason I do not wont.

          Show
          nfalco Nikolas Falco added a comment - - edited The tool page draw in the same manner the installer part based on the content of a JSON file (for nodeJS plugin hudson.plugins.nodejs.tools.NodeJSInstaller.json ). To make available more "site" installer action we must have the same mechanism, where a similar JSON is available on jenkins but with different base URL ( http://mirror.ourcompany.com/artifacts/nodejs ). I could override the nodejs base URL with a custom specified in a text box in tool page but the dropdown is always populated in standard way, so you will have the same issue when hudson.plugins.nodejs.tools.NodeJSInstaller.json is not downloaded and for this reason I do not wont.
          Hide
          nfalco Nikolas Falco added a comment -

          Open a suggestion to jenkins core to allow customisation of the JSON file URL used to populate the dropdown in jenkins tools page.

          Show
          nfalco Nikolas Falco added a comment - Open a suggestion to jenkins core to allow customisation of the JSON file URL used to populate the dropdown in jenkins tools page.

            People

            Assignee:
            nfalco Nikolas Falco
            Reporter:
            gregcovertsmith Greg Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: