Skip to main content

Jenkins Plugin

The Jenkins plugin lets developers trigger application environments on-demand directly from their Jenkins pipelines. Jenkins users can easily integrate the Torque environments-as-a-service platform into their projects by utilizing the Torque orb’s pre-defined commands.

To integrate Torque with the Jenkins plugin, make sure to complete the next few steps.

1. Install​

Install the latest version from within Jenkins:

  1. Navigate to Manage Jenkins > Manage Plugins and select the Available tab.
  2. Locate this plugin by searching for "quali-torque".
  3. Select and install the plugin.

Or, manually download and install it:

  1. Download the latest Jenkins Torque Plugin from here.
  2. In Jenkins Web UI, click Manage Jenkins > Manage Plugins.
  3. Select the Advanced tab.
  4. Scroll down to the Deploy Plugin section.
  5. Browse to and select the quali-torque.hpi file you downloaded.
  6. Click Deploy.
  7. Make sure all tasks have been successfully completed.

2. Configure​

  1. Log in to Jenkins as administrator.
  2. From the left pane, click Manage Jenkins, and then select Configure System.
  3. Scroll down to the Torque Connection section. a. The Domain name or IP should be set to https://portal.qtorque.io b. Specify the Token. Use the one generated below:
  4. Click the Generate New Token button in the plugin's instructions pane.
  5. Click Save.

3. Verify and launch​

Use Torque's tasks in your Jenkins pipeline

After installing and configuring the Jenkins plugin, you can start using the plugin to launch environments from your Jenkins Pipeline. Note that this plugin only supports environments. To use the plugin, you will need to instantiate a Blueprint object with using the torque global object. This object can then be used to start an environment. The environment object can later be used to end the Torque Environment.

To learn more about the parameters of each step, read here.