| layout | post |
|---|---|
| title | Overview of Syncfusion license validation in CI services - Syncfusion |
| description | Learn here about how to register Syncfusion license key for Syncfusion application for license validation. |
| platform | file-formats |
| control | Essential Studio |
| documentation | ug |
Syncfusion license key validation in CI services ensures that Syncfusion Essential Studio components are properly licensed during CI processes, Validating the license key at the CI level can prevent licensing errors during deployment. The following section shows how to validate the Syncfusion license key in CI services.
-
Download and extract the LicenseKeyValidator.zip utility from the following link: LicenseKeyValidator.
-
Open the LicenseKeyValidation.ps1 PowerShell script in a text\code editor.
-
Update the parameters in the LicenseKeyValidation.ps1 script file as described below.
Platform: Modify the value for /platform: to the actual platform "FileFormats".
Version: Change the value for /version: to the required version (e.g., "26.2.4").
License Key: Replace the value for /licensekey: with your actual license key (e.g., "Your License Key").
N> This feature is supported only from the 16.2.0.41 version of the Essential Studio.
-
Create a new User-defined Variable named
LICENSE_VALIDATIONin Azure Pipeline. Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1). -
Integrate the PowerShell task in pipeline and execute the script to validate the license key.
The following example shows the syntax for Windows build agents.
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@2
inputs:
targetType: filePath
filePath: $(LICENSE_VALIDATION) #Or the actual path to the script.
displayName: Syncfusion License Validation -
Create a new User-defined Variable named
LICENSE_VALIDATIONin Azure Pipeline. Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1). -
Include the PowerShell task in pipeline and execute the script to validate the license key.
- To execute the script in PowerShell as part of a GitHub Actions workflow, include a step in the configuration file and update the path of the LicenseKeyValidation.ps1 script file (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
The following example shows the syntax for validating Syncfusion license key in GitHub actions.
steps:
- name: Syncfusion License Validation
shell: pwsh
run: |
./path/LicenseKeyValidator/LicenseKeyValidation.ps1-
Create a Environment Variable named 'LICENSE_VALIDATION'. Use Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
-
Include a stage in Jenkins to execute the LicenseKeyValidation.ps1 script in PowerShell.
The following example shows the syntax for validating Syncfusion license key in Jenkins pipeline.
pipeline {
agent any
environment {
LICENSE_VALIDATION = 'path\\to\\LicenseKeyValidator\\LicenseKeyValidation.ps1'
}
stages {
stage('Syncfusion License Validation') {
steps {
sh 'pwsh ${LICENSE_VALIDATION}'
}
}
}
}
