Upgrading for the new CloudBees License Certificate

Issue Summary

If you are running a CloudBees Jenkins-based product with a version earlier than 2.176.1.4, your CloudBees software will not be compatible with licenses generated with the new certificate described in Preparing for the new CloudBees License Certificate. You must upgrade your CloudBees License Manager plugin to a version compatible with the new license certificate. Then you will be able to install a new license generated by the new certificate.

If you are running a CloudBees Jenkins-based product with a version of 2.176.1.4 or later, your software is already compatible with the new certificate. The only action needed in this case is to install a new license generated by the new certificate, as covered in Preparing for the new CloudBees License Certificate.

Locate the required version of the CloudBees License Manager Plugin

Find your current product version in the table below to see what version of the CloudBees License Manager plugin is required to enable compatibility with the new license certificate. CloudBees recommends applying the incremental upgrade revision indicated for your product version. You can also install the plugin manually as indicated in the instructions below. Either way, you will want to ensure that your system is running the target CloudBees License Manager plugin version indicated for your product version.

Product versionOriginal CloudBees License Manager plugin versionTarget incremental upgradeTarget CloudBees License Manager plugin version
2.176.1.4 and later9.34 and laterNo update requiredNo update required
2.164.3.29.332.164.3.2-49.33.1
2.164.2.19.332.164.2.1-39.33.1
2.164.1.29.332.164.1.2-39.33.1
2.150.3.29.332.150.3.2-59.33.1
2.150.2.39.322.150.2.3-39.32.1
2.138.3.19.312.138.3.1-39.31.1
2.138.4.39.322.138.4.3-49.32.1
2.138.2.29.282.138.2.2-39.28.1
2.138.1.29.272.138.1.2-39.27.1
2.121.3.19.272.121.3.1-39.27.1
2.121.2.19.262.121.2.1-49.26.1
2.121.1.29.242.121.1.2-39.24.1
2.107.3.49.242.107.3.4-49.24.1
2.107.2.19.202.107.2.1-39.20.1
2.107.1.29.202.107.1.2-49.20.1
2.89.4.29.18.12.89.4.2-39.18.1.1
2.89.3.49.182.89.3.4-49.18.0.1
2.89.1.79.172.89.1.7-29.17.1
2.89.1.69.172.89.1.6-39.17.1
2.73.3.19.172.73.3.1-49.17.1
2.73.2.19.142.73.2.1-29.14.1
2.73.1.29.142.73.1.2-29.14.1
2.60.3.19.132.60.3.1-39.14.1
2.60.2.29.132.60.2.2-39.14.1
2.60.1.19.112.60.1.1-39.11.1
Earlier than 2.60.1.1 Contact SupportContact Support


Releases of CloudBees Jenkins Platform Fixed line

Product versionOriginal CloudBees License Manager plugin versionTarget incremental upgradeTarget CloudBees License Manager plugin version
2.164.33.0.19.332.164.33.0.1-59.33.1
2.164.32.0.19.332.164.32.0.1-69.33.1
2.138.44.0.19.322.138.44.0.1-39.32.1
2.138.43.0.19.322.138.43.0.1-39.32.1
2.164.31.0.19.332.164.31.0.1-39.33.1
2.138.42.0.19.322.138.42.0.1-39.32.1
2.164.30.0.19.332.164.30.0.1-39.33.1
2.138.41.0.19.322.138.41.0.1-59.32.1
2.107.38.0.19.242.107.38.0.1-29.24.1
2.107.37.0.29.242.107.37.0.2-89.24.1
2.138.40.0.29.322.138.40.0.2-69.32.1
2.107.36.0.29.242.107.36.0.2-39.24.1
2.107.35.0.19.242.107.35.0.1-39.24.1
2.73.36.0.29.172.73.36.0.2-29.17.1
2.73.35.0.19.172.73.35.0.1-49.17.1
2.107.34.0.19.242.107.34.0.1-39.24.1
2.73.34.0.19.172.73.34.0.1-39.17.1
2.107.33.0.19.242.107.33.0.1-39.24.1
2.73.32.0.19.172.73.32.0.1-49.17.1
2.73.31.0.19.172.73.31.0.1-39.17.1
2.73.30.0.19.172.73.30.0.1-49.17.1
2.73.28.0.19.172.73.28.0.1-49.17.1
Earlier than 2.73 Contact SupportContact Support


Upgrade the CloudBees License Manager Plugin

You must update the CloudBees License Manager plugin for all installations of product versions earlier than 2.176.1.4. This includes any standalone masters, client masters, managed masters, team masters and operations center server instances. Be aware that this upgrade will involve a restart of each affected Jenkins master or Operations Center instance.

As with any upgrade, you should follow these guidelines:
* We recommend that you first take a backup of your system before upgrading.
* We recommend that you test your upgrade procedure in a test environment prior to deploying the change in production.
* If you are running CloudBees Jenkins Platform or CloudBees Core, first upgrade your CloudBees Jenkins Operations Center.

To help you with the planning of the upgrade, CloudBees has provided a script you can use to check if your system is correctly upgraded. See the section titled Verify System Readiness for details on this script and how to run it.

Choose one of the methods below to upgrade the License Manager Plugin:

MethodDetails
Incremental UpgradeThis is the recommended option if you need to update a small set of masters that are connected to the internet.
Manual plugin uploadUse this alternative if you do not have Beekeeper enabled and need to update a small set of masters.
Upgrade scriptThis option is recommended if you have to upgrade a cluster of masters connected to an Operations Center server.


To upgrade using the incremental upgrade:

  1. Enable Beekeeper to report the incremental update. Beekeeper normally recommends the next version, but you can run the script below to expose the Incremental Update.
    a. Navigate to the Script Console by choosing Manage Jenkins from the menu on the left and then Script Console from the Manage Jenkins page.
    b. Copy and paste the following lines into the text box provided:

    com.cloudbees.jenkins.plugins.assurance.props.BeekeeperProp.get().NO_FULL_UPGRADES.set()
    com.cloudbees.jenkins.plugins.assurance.CloudBeesAssurance.get().refreshStateSync()
    println "Success"
    

c. Click Run. You should see the word “Success” printed.
2. Apply the upgrade using Beekeeper
a. You will see a notification about the upgrade at the top of your screen.
b. Please see our documentation on the CloudBees Assurance Program for more information on how to apply this upgrade.

To upgrade using the manual installation method:

  1. Download the plugin from the link provided for the target CloudBees License Manager Plugin version from the table above.
  2. Upload the plugin to Jenkins.
    a. Navigate to the Jenkins Plugin Manager by selecting the Manage Jenkins menu option, and then the Manage Plugins option.
    b. On the Plugin Manager page, choose the Advanced tab.
    c. In the Upload Plugin section, select the plugin you downloaded to your computer in step 1, and then click “Upload”
  3. Once the plugin is uploaded, restart Jenkins to complete the plugin installation.

Please note that this option will result in Beekeeper reporting a warning that you are running the wrong version of the CloudBees License Manager Plugin. You can ignore this warning.

To upgrade using the upgrade script:

Note: The script provides options for you to control how the script behaves. The documentation for those options is at the top of the script. We encourage you to run the script using the default values provided. You can run the script multiple times without side effects.

Use the steps below to run the script:

  1. Download the upgrade-license-plugin.groovy script and open it in a local text editor.
  2. Make any modifications to the options in the script and save it to disk.
  3. Execute the script using either the Script Console or the Jenkins CLI. We recommend using the Jenkins CLI if you are upgrading a cluster of masters connected to an operations center. See Appendix A: Running Groovy Scripts on how to do this if you are unfamiliar with running Groovy scripts.
  4. Restart all upgraded Jenkins instances.

Verify the License Manager Plugin upgrade

After applying the plugin upgrade, you should verify that your installation is now running the target version of the CloudBees License Manager Plugin.

  1. Navigate to the Jenkins Plugin Manager by selecting the Manage Jenkins menu option, and then the Manage Plugins option.
  2. On the Plugin Manager page, select the Installed tab.
  3. In the search box provided, search for “CloudBees License Manager”.

Compare the version of the CloudBees License Manager plugin listed on the Installed tab with the target version of this plugin from the table above. If they are the same version, you have successfully updated your Jenkins instance. Be sure to perform the same steps on all CloudBees Jenkins-based products, including all masters and CloudBees Jenkins Operations Centers.

Alternatively, you can also run the Verify System Readiness script which will verify the upgrade is complete, including checking all connected masters if running on an Operations Center.

Once this step is complete, your system is ready to apply the new license as described in Preparing for the new CloudBees License Certificate.

Appendix A: Running Groovy Scripts

At several points in this guide, we direct you to run different Groovy scripts. The instructions below provide a common set of instructions that can be used for all the Groovy scripts provided in this article.

Execute the script using either the Script Console or the Jenkins CLI. We recommend using the Jenkins CLI if you are upgrading a cluster of masters connected to an operations center.

Using the Script Console

  1. Navigate to the Script Console by choosing Manage Jenkins from the menu on the left and then Script Console from the Manage Jenkins page.
  2. Copy and paste the script from your text editor into the text box provided.
  3. Click Run.
  4. Review the output and save it for future reference. If you need to open a support case with CloudBees, we will need the output from this script.

Using the Jenkins CLI

  1. Read the Jenkins CLI guide if you are new to the CLI.
  2. Ensure that your Jenkins API Token is configured correctly.
  3. Download the jenkins-cli.jar.
  4. Run the script at the command line:
    1. java -jar jenkins-cli.jar -auth myusername:<MY API TOKEN> -s https://<MY JENKINS URL> groovy = < <SCRIPT FILE NAME>.
      a. For example: java -jar jenkins-cli.jar -auth myusername:abcd1121d3fb02896a101c1d5e -s https://myjenkins.corp groovy = < upgrade-license-plugin.groovy.
    2. Review the output from the script provided and save it for future reference. If you need to open a support case with CloudBees, we will need the output from this script.

Have more questions?

0 Comments

Please sign in to leave a comment.