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.
Install the latest version from within Jenkins:
- Navigate to Manage Jenkins > Manage Plugins and select the Available tab.
- Locate this plugin by searching for "quali-torque".
- Select and install the plugin.
Or, manually download and install it:
- Download the latest Jenkins Torque Plugin from here.
- In Jenkins Web UI, click Manage Jenkins > Manage Plugins.
- Select the Advanced tab.
- Scroll down to the Deploy Plugin section.
- Browse to and select the quali-torque.hpi file you downloaded.
- Click Deploy.
- Make sure all tasks have been successfully completed.
- Log in to Jenkins as administrator.
- From the left pane, click Manage Jenkins, and then select Configure System.
- 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:
- Click the Generate New Token button in the plugin's instructions pane.
- 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.