Using the update center

The main update center screen consists of a number of tabs.

Info tab

Figure 15.3. Main update center informations screen

uc info

This screen displays some basic information about the update center:

  • How much disk space is being used by the update center
  • What the update center’s URL is

But most important of all, this screen gives a download link to a plugin that will configure a Jenkins instance to use this update center as an update center.

Important

The plugin that the link downloads will access the update center via the URL that the link corresponds to. Thus it is best to access the link from the machine that the plugin will be installed on in order to ensure that the correct (from that machine) URL for accessing the update center is used.

Note

The plugin that the link downloads will ensure that the matching certificate checks are performed, i.e. if the Update Center is using a Self-Signed Certificate to sign the update-center.json file, the plugin will include the corresponding certificate chain in order to ensure the `update-center.json’s authenticity.

Similarly, if the Update Center is not using any Certificates to sign the update-center.json then the plugin will instruct Jenkins not to require a signed update-center.json for that specific update center, irrespective of the Jenkins instance’s global certificate requirements.

There are two ways to install the plugin in a Jenkins instance:

  • Using the Web Interface

    1. From the Update Center, download the Update center installer plugin. (Ideally downloading it via a browser running on the same machine as the Jenkins instance that will be using the Update Center as its update center)
    2. Go to the Jenkins instance’s root page.
    3. If the Jenkins instance has security enabled, login as a user with has the Overall | Administerpermission.
    4. Select the Manage Jenkins link on the left-hand side of the screen.
    5. Select the Manage Plugins link.
    6. On the Advanced tab use the Upload Plugin option to upload the plugin.

      Figure 15.4. Uploading the Update Center Installer Plugin into a Jenkins instance

      uc install plugin

    7. Check the Installed tab. If the Jenkins instance says that it requires a restart, then restart the Jenkins instance.

      Note

      Up to at least Jenkins 1.455 require a restart to activate the plugin.

  • Using the Command Line Interface

    1. From the Update Center, download the Update center installer plugin. (Ideally you should download it via a browser running on the same machine as the Jenkins instance that will be using the Update Center as its update center.)
    2. Stop the Jenkins instance.
    3. Move (or copy) the downloaded plugin into the $JENKINS_HOME/plugins/ directory
    4. Start the Jenkins instance.

Core tab

Figure 15.5. The Core tab of the Update Center screen

uc core install

This screen provides details of Jenkins distributions.

The Promoted Version section lists all the versions of Jenkins that are installed in the update center and allows for one specific version to be advertised via the Update Center’s update-center.json

The Upstream Versions section lists any versions of Jenkins, coming from the Update Center’s upstream sources, that have not been installed in the Update Center

Note

Only versions of Jenkins which have been installed in the update center can be advertised via the Update Center’s update-center.json. This is to ensure that the Update Center can continue to serve even if the upstream source is off-line.

To install a version of Jenkins from the upstream sources, just click on the corresponding Install button and the download will be added to the download queue.

Figure 15.6. A core distribution being downloaded into the Update Center

uc core downloading

Plugins tab

Figure 15.7. The Plugins tab of the Update Center screen

uc plugins

This screen provides details of all the Plugins known to this Update Center, i.e. all the plugins advertised by the update center’s upstream sources as well as all the plugins installed in the update center.

Clicking on a Plugin’s name will display the Plugin information screen

Figure 15.8. The plugins details screen when no version of a plugin is installed in the update center

uc plugin install

Figure 15.9. The plugins details screen with a version of the plugin installed in the update center

uc plugin config

The Promoted Version section lists all the versions of the plugin that are installed in the update center and allows for one specific version to be advertised via the Update Center’s update-center.json

The Upstream Versions section lists any versions of the plugin, coming from the Update Center’s upstream sources, that have not been installed in the Update Center

Note

Only versions of plugins which have been installed in the update center can be advertised via the Update Center’s update-center.json. This is to ensure that the Update Center can continue to serve even if the upstream source is off-line.

To install a version of a plugin from the upstream sources, just click on the corresponding Install button and the download will be added to the download queue.

Tools tab

Figure 15.10. The Tools tab of the Update Center screen

uc tools

This screen provides details of all the Tool installers known to this Update Center, i.e. all the tool installers advertised by the update center’s upstream sources.

Clicking on a Tool installer’s name will display the list of versions of the Tool installer that are available.

The Update Center plugin does not currently support hosting private versions of Tool installers.

Upload Core tab

Figure 15.11. The Upload Core tab of the Update Center screen

uc upload core

This screen provides for manual uploading of custom distributions of Jenkins into the update center.

Upload Plugin tab

Figure 15.12. The Upload Plugin tab of the Update Center screen

uc upload plugin

This screen provides for manual uploading of custom plugins into the update center.