How to specify which version of UiPath CLI (UiCLI) to use in Azure Pipelines?
Issue Description:
To create an Azure Pipeline for CICD in Azure DevOps, a version of UiPath CLI has to be specified.
Resolution:
Use the task UiPathInstallPlatform and ensure it is in the same job as other tasks that rely on UiPath CLI, such as UiPathPack. Please see the example code below for the UiPathInstallPlatform task:
- task: UiPathInstallPlatform@4 displayName: Install UIPath CLI retryCountOnTaskFailure: 3 inputs: cliVersion: 'WIN_23.10.8753.32995' cliNupkgPath: '\\VM1\uipath_test\UiPath\Cli\UiPath.CLI.Windows.23.10.8753.32995.nupkg'
UiPathInstallPlatform caches the specified version in the tools directory for use by subsequent tasks in the same Azure DevOps job. If they are not in the same job, the latest UiPath CLI would be used instead.