CloudBees Tools installation

3 minute readReference

Starting with release 2023.03.0 for Linux and 2023.04.0 for Windows and macOS, CloudBees CD/RO releases include a CloudBees Tools archive you can add to your installation. This archive includes the CloudBees CD/RO client binaries used to interact with CloudBees CD/RO server and serves as a lightweight option compared to installing the tools separately using multiple installers.

CloudBees CD/RO is normally backward compatible with older versions of CloudBees Tools as long as you are using the latest API version. However, to assure you have the latest CloudBees Tool features and API support, you must update the CloudBees Tools client binaries to the latest version as they are released.

For information on upgrading the CloudBees Tools archive to the latest version, refer to Updating CloudBees Tools.

The following tools are included in the CloudBees Tools archive:

  • ectool: CloudBees tool to manage CloudBees CD/RO. For more information, refer to Using the CloudBees CD/RO ectool API.

  • ec-perl: CloudBees tool to access CloudBees CD/RO Perl APIs. For more information, refer to Using the CloudBees CD/RO Perl API.

  • ec-groovy: CloudBees tool to access CloudBees CD/RO Groovy APIs. For more information, refer to Using the Groovy API.

    To use ec-groovy as a CLI tool, you must set the following variables:

    export COMMANDER_HOME=/path/you/installed/CloudBeesFlowTools export COMMANDER_DATA=/path/you/installed/CloudBeesFlowTools

Install and use CloudBees Tools

To install and use CloudBees tools:

  1. Navigate to CloudBees CD/RO downloads.

  2. Select the latest release for CloudBees CD/RO.

  3. Download the CloudBees Tools archive file for your distribution.

    1. Linux and macOS: CloudBeesFlowTools-<version>.tar.gz

    2. Windows: CloudBeesFlowTools-<version>.zip

  4. Extract the archive on your target to the desired location.

    1. For Linux and macOS, in the directory with the archive, run:

      tar -xf CloudBeesFlowTools.tar.gz
    2. For Windows 10 and later, in the directory with the archive, right-click the archive, and select Extract all.

This extracts the tools into a CloudBeesFlowTools-<version> directory in the current directory.

Once you have the tools extracted on your target, test them using the --help for each tool. You can access them by any of the following options:

  • For Linux and macOS:

    • Add them to your $PATH:

      export PATH=/path/you/installed/CloudBeesFlowTools-<version>/bin:$PATH

      After you add the CloudBeesFlowTools path to your $PATH, access them such as:

      # To test ectool: ectool --help
    • Access them using a relative path, such as:

      # To test ectool: bin/ectool --help
    • Access them using the full path, such as:

      # To test ectool: /path/you/installed/CloudBeesFlowTools-<version>/bin/ectool --help
  • For Windows:

    • Add CloudBeesFlowTools-<version>\bin to the PATH environmental variable using your chosen method (must be updated if you change versions).

    • Access tools using their *.exe from the CloudBeesFlowTools-<version>/bin, such as:

      # To test ectool: \path\you\installed\CloudBeesFlowTools-<version>\bin\ectool.exe --help

To use ec-groovy as a CLI tool, you must set the following variables:

export COMMANDER_HOME=/path/you/installed/CloudBeesFlowTools export COMMANDER_DATA=/path/you/installed/CloudBeesFlowTools

Updating CloudBees Tools

CloudBees CD/RO is normally backward compatible with older versions of CloudBees Tools as long as you are using the latest API version. However, to assure you have the latest CloudBees Tool features and API support, you must update the CloudBees Tools client binaries to the latest version as they are released. To get the latest tool versions:

  1. Navigate to CloudBees CD/RO downloads.

  2. Select the latest release for CloudBees CD/RO.

  3. Download the CloudBees Tools archive file for your distribution.

    1. Linux and macOS: CloudBeesFlowTools-<version>.tar.gz

    2. Windows: CloudBeesFlowTools-<version>.zip

  4. Extract the archive in the same location as your current version.

    For specific instructions on extracting the archive, refer to Install and use CloudBees Tools.
  5. If prompted to override existing files, you may answer Yes to All.

Uninstall CloudBees Tools

To uninstall the tools, remove them from your $PATH (if added) and delete all source files.