Skip to content

Commit 19521be

Browse files
Merge pull request #1446 from syncfusion-content/183389-licenseValidation
183389 - UG Documentation For Syncfusion License Key Validation - dev
2 parents 6ab4169 + d21179e commit 19521be

File tree

4 files changed

+111
-0
lines changed

4 files changed

+111
-0
lines changed

wpf-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<li><a href="/wpf/licensing/overview">Overview</a></li>
4848
<li><a href="/wpf/licensing/how-to-generate">How to Generate Syncfusion WPF License Key?</a></li>
4949
<li><a href="/wpf/licensing/how-to-register-in-an-application">How to Register Syncfusion License Key in WPF Application?</a></li>
50+
<li><a href="/wpf/licensing/ci-license-validation">How to Validate Syncfusion License Key In CI Services?</a></li>
5051
<li><a href="/wpf/licensing/licensing-errors">Licensing Errors</a></li>
5152
<li>Licensing FAQ
5253
<ul>
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
layout: post
3+
title: Overview of Syncfusion license validation in CI services - Syncfusion
4+
description: Learn here about how to register Syncfusion license key for Syncfusion application for license validation.
5+
platform: wpf
6+
control: Essential Studio
7+
documentation: ug
8+
---
9+
10+
<style>
11+
#license {
12+
font-size: .88em!important;
13+
margin-top: 1.5em; margin-bottom: 1.5em;
14+
background-color: #fbefca;
15+
padding: 10px 17px 14px
16+
}
17+
</style>
18+
19+
20+
# Syncfusion license key validation in CI services
21+
22+
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.
23+
24+
* Download and extract the LicenseKeyValidator.zip utility from the following link: [LicenseKeyValidator](https://s3.amazonaws.com/files2.syncfusion.com/Installs/LicenseKeyValidation/LicenseKeyValidator.zip).
25+
26+
* Open the LicenseKeyValidation.ps1 PowerShell script in a text\code editor.
27+
28+
![LicenseKeyValidation script](licensing-images/license-validation.png)
29+
30+
* Update the parameters in the LicenseKeyValidation.ps1 script file as described below.
31+
32+
**Platform:** Modify the value for /platform: to the actual platform "WPF".
33+
34+
**Version:** Change the value for /version: to the required version (e.g., "26.2.4").
35+
36+
**License Key:** Replace the value for /licensekey: with your actual license key (e.g., "Your License Key").
37+
38+
N> This feature is supported only from the 16.2.0.41 version of the Essential Studio.
39+
40+
## Azure Pipelines (YAML)
41+
42+
* Create a new [User-defined Variable](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#user-defined-variables) named `LICENSE_VALIDATION` in Azure Pipeline. Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
43+
44+
* Integrate the PowerShell task in pipeline and execute the script to validate the license key.
45+
46+
The following example shows the syntax for Windows build agents.
47+
48+
```bash
49+
pool:
50+
vmImage: 'windows-latest'
51+
52+
steps:
53+
54+
- task: PowerShell@2
55+
inputs:
56+
targetType: filePath
57+
filePath: $(LICENSE_VALIDATION) #Or the actual path to the script.
58+
59+
displayName: Syncfusion License Validation
60+
```
61+
62+
## Azure Pipelines (Classic)
63+
64+
* Create a new [User-defined Variable](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#user-defined-variables) named `LICENSE_VALIDATION` in Azure Pipeline. Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
65+
66+
* Include the PowerShell task in pipeline and execute the script to validate the license key.
67+
68+
![LicenseKeyValidation script](licensing-images/license-validation-classic.png)
69+
70+
## GitHub actions
71+
72+
* 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).
73+
74+
The following example shows the syntax for validating Syncfusion license key in GitHub actions.
75+
76+
```bash
77+
steps:
78+
- name: Syncfusion License Validation
79+
shell: pwsh
80+
run: |
81+
./path/LicenseKeyValidator/LicenseKeyValidation.ps1
82+
```
83+
84+
## Jenkins
85+
86+
* Create a [Environment Variable](https://www.jenkins.io/doc/pipeline/tour/environment) named 'LICENSE_VALIDATION'. Use Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
87+
88+
* Include a stage in Jenkins to execute the LicenseKeyValidation.ps1 script in PowerShell.
89+
90+
The following example shows the syntax for validating Syncfusion license key in Jenkins pipeline.
91+
92+
```bash
93+
pipeline {
94+
agent any
95+
environment {
96+
LICENSE_VALIDATION = 'path\\to\\LicenseKeyValidator\\LicenseKeyValidation.ps1'
97+
}
98+
stages {
99+
stage('Syncfusion License Validation') {
100+
steps {
101+
sh 'pwsh ${LICENSE_VALIDATION}'
102+
}
103+
}
104+
}
105+
}
106+
```
107+
108+
## See also
109+
110+
* [Licensing FAQ](https://help.syncfusion.com/common/essential-studio/licensing/overview/)
Loading
Loading

0 commit comments

Comments
 (0)