You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Syncfusion license key validation in CI services
21
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.
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. Set up the continuous integration process to fail in case the license key validation fails. Validate the passed parameters and the registered license key again to resolve the issue.
23
+
24
+
The following section shows how to validate the Syncfusion license key in CI services.
23
25
24
26
* Download and extract the LicenseKeyValidator.zip utility from the following link: [LicenseKeyValidator](https://s3.amazonaws.com/files2.syncfusion.com/Installs/LicenseKeyValidation/LicenseKeyValidator.zip).
25
27
@@ -43,7 +45,8 @@ Syncfusion license key validation in CI services ensures that Syncfusion Essenti
43
45
44
46
The following example shows the syntax for Windows build agents.
45
47
46
-
```bash
48
+
{% tabs %}
49
+
{% highlight <lang> tabtitle ="YAML" %}
47
50
pool:
48
51
vmImage: 'windows-latest'
49
52
@@ -55,7 +58,8 @@ steps:
55
58
filePath: $(LICENSE_VALIDATION) #Or the actual path to the LicenseKeyValidation.ps1 script.
56
59
57
60
displayName: Syncfusion License Validation
58
-
```
61
+
{% endhighlight %}
62
+
{% endtabs %}
59
63
60
64
## Azure Pipelines (Classic)
61
65
@@ -71,13 +75,15 @@ steps:
71
75
72
76
The following example shows the syntax for validating Syncfusion license key in GitHub actions.
@@ -87,7 +93,8 @@ The following example shows the syntax for validating Syncfusion license key in
87
93
88
94
The following example shows the syntax for validating Syncfusion license key in Jenkins pipeline.
89
95
90
-
```bash
96
+
{% tabs %}
97
+
{% highlight json %}
91
98
pipeline {
92
99
agent any
93
100
environment {
@@ -101,14 +108,27 @@ pipeline {
101
108
}
102
109
}
103
110
}
104
-
```
111
+
{% endhighlight %}
112
+
{% endtabs %}
105
113
106
114
## Validate the License Key Using ValidateLicense() Method
107
115
108
116
* Register the license key properly by calling RegisterLicense("License Key") method with the license key.
109
117
110
118
* Once the license key is registered, it can be validated by using ValidateLicense("Platform.Blazor") method. This ensures that the license key is valid for the platform and version you are using. For reference please check the following example.
N> * Place the license key between double quotes. Also, ensure that Syncfusion.Licensing.dll is referenced in your project where the license key is being registered.
23
23
* Syncfusion license validation is done offline during application execution and does not require internet access. Apps registered with a Syncfusion license key can be deployed on any system that does not have an internet connection.
24
24
25
+
I> Syncfusion license keys can be validated during the Continuous Integration (CI) processes to ensure proper licensing and prevent licensing errors during deployment. Refer to the [CI License Validation] (https://blazor.syncfusion.com/documentation/getting-started/license-key/ci-license-validation) section for detailed instructions on how to implement it.
26
+
25
27
## Blazor Web App
26
28
27
29
Open **~/Program.cs** file and register the Syncfusion Blazor license key in the Blazor web app.
0 commit comments