UiPath CLI using Github Actions

Hello everyone,

At this moment I am building a CI/CD pipeline to take care of the UiPath packaging and publishing process.
Like most of you know, each project can have dependencies but in this case all of the dependencies are not located on any public feed as they are created inhouse, which then leads to the errors shown below in the code block.

I have setup “External Applications” in the orchestrator, and I am using the AppID and secret in the DevOps scripts in my github workflows

I am using the latest version of the CLI (v1.1.9) which translates to 23.10.0
Source: GitHub - UiPath/uipathcli: Command line interface to simplify, script and automate API calls for UiPath services (preview)

Together with the UiPath DevOps scripts to pack and publish
Source: GitHub - UiPath-Services/UiPath-DevOps-Scripts

The problem shows that I am trying to package my project.json file into a nuget package, but it wont allow it due to missing dependencies that it can’t find anywhere, but since it’s created inhouse and not publicly available anywhere, how am I suppose to get past this issue, anyone experienced this before ?

Any and all help are welcome, thank you in advance.

uipcli Error: 0 : NU1101: Unable to find package XXXX. No packages exist with this id in source(s): C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, api.nuget (dot) org/v3/index.json, gallery.UiPath (dot) com/api/v2, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, Microsoft Visual Studio Offline Packages, [nuget (dot) org](nuget (dot) org/)

uipcli Error: 0 : NU1101: Unable to find package XXXX. No packages exist with this id in source(s): C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, api.nuget (dot) org/v3/index.json, gallery.UiPath (dot) com/api/v2, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, Microsoft Visual Studio Offline Packages, [nuget (dot) org](nuget (dot) org/)

uipcli Error: 0 : NU1101: Unable to find package XXXX. No packages exist with this id in source(s): C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, api.nuget (dot) org/v3/index.json, gallery.UiPath (dot) com/api/v2, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, pkgs.dev.azure (dot) com/UiPath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json, Microsoft Visual Studio Offline Packages, [nuget (dot) org](nuget (dot) org/)

Finished dependencies restore for XXXX.

Cannot resolve dependencies: {0}. Check logs for more details.Compiling...

Value cannot be null. (Parameter 'source')uipcli Information: 0 :

Failed to run the command. UiPath.CommandLine.Exceptions.CommandException: Packaging failed due to one or more errors. Message : Value cannot be null. (Parameter 'source') Error : at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)

at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable\1 source, Func2 selector)

at UiPath.Studio.ProjectPackager.Standalone.ProjectDependenciesProviderStandalone.GetDependencies(Package package)

at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.BuildPackageNamesSet(HashSet\1 packageIds, IEnumerable1 references, Func2 filter)`

at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.HasLegacyPackage(IEnumerable\1 runtimeDependencies, IEnumerable1 dependencies)

at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.GetRuntimeDependencies(IEnumerable\1 dependencies, IEnumerable1 allPackages)

at UiPath.Studio.ProjectPackager.Publish.Services.RuntimeDependencyService.GetRuntimeDependencies(IWorkflowProjectModel workflowProjectModel)

at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.CloneWorkflowProject(IWorkflowProjectModel projectModel)

at UiPath.Studio.ProjectPackager.Publish.Services.PublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)

at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPublishProcessor.<>n__0(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)

at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)

at UiPath.Studio.ProjectPackager.Publish.Services.ProcessPublishProcessor.SetupAsync(IWorkflowProjectModel projectModel, ProjectPublishSettings settings)

at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.PerformPrePackOperationsAsync(IWorkflowProjectModel projectModel, IPublishSettings settings)

at UiPath.Studio.ProjectPackager.Packager.Services.ProjectPackagerService.PrePackAsync(IPackagerHelperService packagerHelper, IWorkflowProject workflowProject, IPublishSettings publishSettings, ProjectRestoreResult dependencies)

at UiPath.Studio.ProjectPackager.Packager.Services.ProjectPackagerService.PackProjectExternal(String projectPath, UpdateProjectVersionEnum updateProjectVersion, PublishSettings publishSettings, IProgress\1 progress, Action1 logEvent, IReadOnlyCollection1 packageSources, String destinationFolder, CancellationToken cancellationToken)`

Details...

Message: Error :

at UiPath.CommandLine.Services.Impl.PackService.PackProject(String projectPath, ProjectVersion currentVersion, String destinationFolder, PublishSettings settings, IEnumerable\1 packageSources)`

The pipeline itself takes a sometime running through all of these URLs, would it be possible skipping these urls to shave off some time and just look for the packages in one place (The actual orchestrator, or maybe even a 3rd party Artifact store?)

Figured it out in the end.

The “restore dependencies” takes a long time due to version mismatch, and if it can’t find the matching version it will grab the closest one, this action takes a lot of time.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.