Jenkins Plugin UiPath Deploy fails due to lack of AuthType

Scenario: Jenkins V2.164.3

Steps to reproduce:

Current Behavior: Deploy fails. Get-UiPathAuthToken : An error occurred while sending the request.

Expected Behavior: Nupkg upload

Studio/Robot/Orchestrator Version:18.4

Last stable behavior:
Last stable version:
OS Version: Windows Jenkins 2.163.4
Others if Relevant: (workflow, logs, .net version, service pack, etc):

Building in workspace C:\Program Files (x86)\Jenkins\workspace\claims-daily-tranactions
using credential d0f7ace8-7dff-47b3-81e8-da113f22ebbb

git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git.exe config remote.origin.url https://github.####.com/RPA/Claims_Daily_Transactions # timeout=10
Fetching upstream changes from https://github.####.com/RPA/Claims_Daily_Transactions
git.exe --version # timeout=10
using GIT_ASKPASS to set credentials
git.exe fetch --tags --force --progress https://github.####.com/RPA/Claims_Daily_Transactions +refs/heads/:refs/remotes/origin/
git.exe rev-parse “refs/remotes/origin/master^{commit}” # timeout=10
git.exe rev-parse “refs/remotes/origin/origin/master^{commit}” # timeout=10
Checking out Revision d5e006911b59d536ca8cc79be14547ca2994a35a (refs/remotes/origin/master)
git.exe config core.sparsecheckout # timeout=10
git.exe checkout -f d5e006911b59d536ca8cc79be14547ca2994a35a
Commit message: “Merge pull request #11 from RPA/development”
git.exe rev-list --no-walk d5e006911b59d536ca8cc79be14547ca2994a35a # timeout=10
plugin jar path is : C:\Program Files (x86)\Jenkins\plugins\uipath-automation-package\WEB-INF\lib\uipath-automation-package.jar
extracting powershell modules to temp folder
extracted powershell modules to temp folder
Standard Output:
WARNING: Some imported command names contain one or more of the following
restricted characters: # , ( ) {{ }} & - / \ ^ ; : " ' < > | ? @ ` * % + = ~ 24.05.2019 12:38:38: Running pack with the arguments: -pack C:\Program Files (x86)\Jenkins\workspace\claims-daily-tranactions\project.json -o C:\Program Files (x86)\Jenkins\jobs\claims-daily-tranactions\builds\13 -v 1.0.13 24.05.2019 12:38:42: Pack result: Packed project 'C:\Program Files (x86)\Jenkins\workspace\claims-daily-tranactions\project.json' to 'C:\Program Files (x86)\Jenkins\jobs\claims-daily-tranactions\builds\13\Claims_Daily_Transactions.1.0.13.nupkg' Done Opening Powershell Session plugin jar path is : C:\Program Files (x86)\Jenkins\plugins\uipath-automation-package\WEB-INF\lib\uipath-automation-package.jar extracting powershell modules to temp folder extracted powershell modules to temp folder Standard Output: WARNING: Some imported command names contain one or more of the following restricted characters: # , ( ) {{ }} [ ] & - / \ ^ ; : " ’ < > | ? @ ` * % +
= ~
24.05.2019 12:38:43: Deploying C:\Program Files (x86)\Jenkins\jobs\claims-daily-tranactions\builds\13 to https://uipathtr.orchestrator.####.com
24.05.2019 12:38:44: Found 1 packages to upload to https://uipathtr.orchestrator.####.com
Adding C:\Program Files (x86)\Jenkins\jobs\claims-daily-tranactions\builds\13\Claims_Daily_Transactions.1.0.13.nupkg
24.05.2019 12:38:44: Package C:\Program Files (x86)\Jenkins\jobs\claims-daily-tranactions\builds\13\Claims_Daily_Transactions.1.0.13.nupkg successfully added
Done
hudson.AbortException: Error while executing powershell commands for importing modules and pack/deploy
Get-UiPathAuthToken : An error occurred while sending the request.At C:\Windows\TEMP\UiPath\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:41 char:9+ Get-UiPathAuthToken -URL $orchestratorAddress -TenantName $tenant -Usern …+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:slight_smile: [Get-UiPathAuthToken], HttpReq uestException + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,UiPath.Powe rShell.Cmdlets.GetAuthToken Add-UiPathPackage : An authentication token is required. Specify a value for -AuthToken on the cmdlet or call Set-UiPathAuthToken for the sessionAt C:\Windows\TEMP\UiPath\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:53 char:63+ packageFiles | foreach { Write-Host "Adding _"; Add-UiPathPackage …+ ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:slight_smile: [Add-UiPathPackage], Exception + FullyQualifiedErrorId : System.Exception,UiPath.PowerShell.Cmdlets.AddPa ckage
at com.uipath.uipathpackage.Utility.execute(Utility.java:97)
at com.uipath.uipathpackage.UiPathDeploy.perform(UiPathDeploy.java:135)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1841)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Step ‘UiPath Deploy’ failed: Error while executing powershell commands for importing modules and pack/deploy
Get-UiPathAuthToken : An error occurred while sending the request.At C:\Windows\TEMP\UiPath\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:41 char:9+ Get-UiPathAuthToken -URL $orchestratorAddress -TenantName $tenant -Usern …+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:slight_smile: [Get-UiPathAuthToken], HttpReq uestException + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,UiPath.Powe rShell.Cmdlets.GetAuthToken Add-UiPathPackage : An authentication token is required. Specify a value for -AuthToken on the cmdlet or call Set-UiPathAuthToken for the sessionAt C:\Windows\TEMP\UiPath\UiPath.Extensions\1.0.7051.31454\UiPathPackage-Module.psm1:53 char:63+ packageFiles | foreach { Write-Host "Adding _"; Add-UiPathPackage …+ ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:slight_smile: [Add-UiPathPackage], Exception + FullyQualifiedErrorId : System.Exception,UiPath.PowerShell.Cmdlets.AddPa ckage
Finished: FAILURE

@brosse_bnsf can you please advise if you are using uipath cloud orchestrator (https://platform.uipath.com/) OR on premises orchestrator?