Applies to ReadyAPI 3.0, last modified on November 19, 2019

When you run the test runner from Jenkins, you may encounter the "License not found" error.

Jenkins Error

Click the image to enlarge it.

A common cause of this is that you are not running Jenkins under the same user account you used to activate the SoapUI license.

Whether you are running Jenkins independently as a service or on your application server, you need to ensure it is running under the same user account you used to activate the SoapUI license. This topic describes how to fix the issue.

For Windows users

The following scenario describes how to configure licensing on the Jenkins master machine. On slave machines, you need to repeat this scenario using the same user account you used to activate the license.

  1. Make sure you have a valid license activated. If you do not have a valid license, activate a SoapUI license (see License Activation).

  2. Open the Control Panel.

  3. Select System and Security and then Administrative Tools.

  4. Run the Services utility.

  5. Search for the Jenkins service.

  6. Right-click the service and select Properties.

  7. On the Log On tab, select This account and enter the credentials of the Windows user account you will use to run SoapUI.

  8. Note: This is the account that you used when activating the SoapUI license.
    Dialog

    Click the image to enlarge it.

  9. Restart the service to apply the changes.

For Linux/MacOS users

To fix this issue on Linux or MacOS machines, run the corresponding job on the node that is run via SSH. It allows you to select the user under which Jenkins runs the job. To create a node, perform the following steps:

  1. In Jenkins, go to Manage Jenkins > Manage Nodes > New Node.

  2. Specify the name of the node and select the Permanent Agent mode. Click OK.

  3. To run a particular job on this node, specify a unique label for the node.

  4. In the Launch method drop-down list, select Launch slave agents via SSH.

  5. Specify localhost as a Host.

    Create a node

    Click the image to enlarge it.

  6. In the Credentials field, click Add and select the Jenkins provider.

    Add credentials

    Click the image to enlarge it.

  7. Specify the login and password of the user under which you want to run a job and click Add.

    Add credentials

    Click the image to enlarge it.

  8. Select the created credentials from the drop-down list.

    Select credentials

    Click the image to enlarge it.

  9. Click Save to create the node.

To run the job on the created node:

  • Open the job’s configuration.

  • Enable the Restrict where this project can be run option.

  • Specify the needed label in the Label Expression field.

Job configuration

Click the image to enlarge it.

Use the command line

You can use the command line to run Jenkins under the user account you used to activate the license. To do that, log in to the operating system using this account, and then run the following command:

java -jar jenkins.war

This will force Jenkins to run under the needed user account, so the License Not Found error will not occur.

Note: This workaround does not work on Linux/OS X slave machines properly. In this case, you need to use the approach described above.

Contact Support

If you fail to resolve the issue, please contact SmartBear Support.

See Also

Troubleshooting

Highlight search results