New to Telerik JustMock? Download free 30-day trial

Adding Your License Key to CI/CD Services

This article describes how to set up and activate your Telerik JustMock license key across a few popular CI/CD services by using environment variables.

The license activation process in a CI/CD environment involves the following steps:

  1. Download a license key from your Telerik account.

  2. Create an environment variable named TELERIK_LICENSE and add your Telerik JustMock license key as a value.

Creating an Environment Variable

The recommended approach for providing your license key is to use environment variables. Each CI/CD platform has a different process for setting environment variables and this article lists only some of the most popular examples.

Azure Pipelines

  1. Create a new user-defined variable named TELERIK_LICENSE.

  2. Paste the contents of the license key file as a value.

GitHub Actions

  1. Create a new Repository Secret or an Organization Secret.

  2. Set the name of the secret to TELERIK_LICENSE and paste the contents of the license file as a value.

  3. Update the build step that executes the tests. For example, in a GitHub Actions workflow, you can include the following step in your YAML configuration:

- name: Run Tests with Telerik JustMock
    env:
        TELERIK_LICENSE: ${{ secrets.TELERIK_LICENSE }}
    run: |
        # Your test execution command goes here

See Also

In this article