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:
-
Download a license key from your Telerik account.
-
Create an environment variable named
TELERIK_LICENSEand 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
-
Create a new user-defined variable named
TELERIK_LICENSE. -
Paste the contents of the license key file as a value.
GitHub Actions
-
Create a new Repository Secret or an Organization Secret.
-
Set the name of the secret to
TELERIK_LICENSEand paste the contents of the license file as a value. -
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