How to integrate a config file with an executable using Azure CLU. (This is for Azure Dev Ops )
The problem that I am running into is that I want to run and executable agains a file however the executable needs to use the configuration file. Not sure how to get the configuration file integrated into the script?
File to be acted upon by the executable- mail.json
Executable is uipath.studio.commandline.exe
Configuration file is ruleconfig.json
Creating a Azure DevOps pipeline using Azure CLI.
Azure CLI:
param (
$ProjectFilePath= $(Buildin.SourcesDirectory)\TESTREPO7\main.json
$ExecutableFilePath= $(Buildin.SourcesDirectory)\TESTREPO7\Studio.zip\Studio\UiPath.Studio.CommandLine.exe
$(Get-Date -Format 'yyyy-MM-dd-HH-mm-ss')-Workflow-Analysis.json
)
Write-Output “$(Get-Date -Format ‘HH:mm:ss’) - STARTED - Workflow Analyzer CLI Script”
$Command = “$ExecutableFilePath analyze -p $ProjectFilePath”
Invoke-Expression $Command | Out-File -FilePath $OutputFilePath
Write-Output “$(Get-Date -Format ‘HH:mm:ss’) - COMPLETED - Workflow Analyzer CLI Script”