Skip to content

Commit 52ad823

Browse files
authored
Merge pull request #758 from LanceMcCarthy/patch-5
Update AzDO Classic Pipeline Instructions
2 parents 5889219 + d760794 commit 52ad823

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

licensing/add-license-to-ci-cd.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,24 @@ The recommended approach for providing your license key to the `Telerik.Licensin
3636
3737
### Azure Pipelines (Classic)
3838
39-
1. Create a new [user-defined variable](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch) named `TELERIK_LICENSE`.
39+
In Classic Pipelines, the user-defined variables can only hold up t0 4k characters. This is too small for the full key, as an alternative there are two more popular options.
40+
41+
#### Option 1. Azure KeyVault Linked Variable
42+
43+
1. In Azure Key Vault, create a new variable named `TELERIK_LICENSE`
4044
1. Paste the contents of the license key file as a value.
45+
1. In the classic pipeline, use the linked variable
46+
47+
#### Option 2. Secure File
48+
49+
1. Upload your telerik-license.txt file as a Secure File in your AzDO project. See [Secure Files](https://learn.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops) for instructions.
50+
1. In the pipeline, use the Download Secure File task
51+
1. Important: Set the Output Variables reference name, otherwise you cannot reference it in a later step.
52+
- <img width="246" height="193" alt="image" src="https://github.com/user-attachments/assets/6ae039a4-de0b-4457-8cc0-4ce3e618f976" />
53+
1. Just prior the build task, add a PowerShell step to move the file to `$(Build.Repository.LocalPath)` and we will automatically locate it.
54+
1. Example: `Move-Item -Path $(telerik.secureFilePath) -Destination $(Build.Repository.LocalPath)`
55+
56+
For a walkthrough example and more details, see [DevOps Examples - Telerik License with Secure File in Classic Pipeline](https://github.com/LanceMcCarthy/DevOpsExamples?tab=readme-ov-file#classic-pipeline)
4157
4258
### GitHub Actions
4359

0 commit comments

Comments
 (0)