Hi All, I’m trying to setup Jenkins, as of now -
- Pulling the code from Git repo - Successful
- Building package - Successful
- Deploying package to UiPath - FAILED.
Getting below error:
08.09.2019 12:16:02: Deploying C:\Program Files (x86)\Jenkins\workspace\UiPath-CICD@tmp to UiPath Orchestrator
Get-UiPathAuthToken : The operation returned an error: 1000: Invalid credentials, failed to login.
At C:\Program Files
(x86)\Jenkins\workspace\UiPath-CICD@tmp\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:41 char:9
Get-UiPathAuthToken -URL $orchestratorAddress -TenantName $te ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidResult: (
[Get-UiPathAuthToken], RuntimeException
- FullyQualifiedErrorId : UiPath.PowerShell.Cmdlets.GetAuthToken
Get-UiPathAuthToken : Operation returned an invalid status code ‘BadRequest’
At C:\Program Files
(x86)\Jenkins\workspace\UiPath-CICD@tmp\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:41 char:9
Get-UiPathAuthToken -URL $orchestratorAddress -TenantName $te ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (
[Get-UiPathAuthToken], HttpOperationException
- FullyQualifiedErrorId : Microsoft.Rest.HttpOperationException,UiPath.PowerShell.Cmdlets.GetAuthToken
08.09.2019 12:16:05: Found 1 packages to upload to UiPath Orchestrator
Adding C:\Program Files (x86)\Jenkins\workspace\UiPath-CICD@tmp\testing123.1.0.31.nupkg
Add-UiPathPackage : An authentication token is required. Specify a value for -AuthToken on the cmdlet or call
Set-UiPathAuthToken for the session
At C:\Program Files
(x86)\Jenkins\workspace\UiPath-CICD@tmp\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:53 char:63
- … { Write-Host “Adding $"; Add-UiPathPackage -PackageFile "$”; Log -m …
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (
[Add-UiPathPackage], Exception
- FullyQualifiedErrorId : System.Exception,UiPath.PowerShell.Cmdlets.AddPackage
08.09.2019 12:16:05: Package C:\Program Files (x86)\Jenkins\workspace\UiPath-CICD@tmp\testing123.1.0.31.nupkg successfully added
Finished: SUCCESS
Can you please let me know whats wrong here.
I have configured bellw in Jenkin Post-build - UiPath Deploy Section:
Orchastraor Address: UiPath
Orchstrator Tenant: NikhilDefault