Hi,
I’m trying to publish my project using UiPath.Studio.CommandLine.exe an azure pipelines. I’m having problem on the stage of creating nupkg file. My current pipeline looks like this:
trigger:
- main
pool:
UipathAgents
variables:
projectJsonPath: '$(Build.SourcesDirectory)\project.json'
outputPath: '$(Build.ArtifactStagingDirectory)'
uipathCLI: '$env:USERPROFILE\AppData\Local\Programs\UiPath\Studio\UiPath.Studio.CommandLine.exe'
steps:
- task: PowerShell@2
displayName: 'Pack UiPath Project'
inputs:
targetType: 'inline'
script: |
# Generate version number based on current date and time
$newVersion = "$(Get-Date -Format 'yyyy.MM.ddHHmm')"
Write-Host "Publishing UiPath project with new version: $newVersion"
Write-Host "projectJsonPath: $(Build.SourcesDirectory)\project.json"
Write-Host "outputPath: $(Build.ArtifactStagingDirectory)"
# Publishing UiPath Project using CLI
& $(uipathCLI) publish -p "$(projectJsonPath)" --target Custom -feed "$(outputPath)" -v "$newVersion"
- task: UiPathDeploy@4
displayName: 'Publish UiPath Project'
inputs:
orchestratorConnection: 'UipathAppConnection'
packagesPath: $(outputPath)
folderName: 'Amazon - Inne'
I double checked if projectJsonPath and outputPath are correct and it seems so.
projectJsonPath: C:\Azure Pipelines_work\97\s\project.json
outputPath: C:\Azure Pipelines_work\97\a
There were no errors during the entire process, but the process was stuck at the “Pack UiPath Project” stage for an hour and then was canceled.