Need help on uipath - jenkins integration

Hi,

I would like to connect jenkins with uipath orchestrator.

In the process I m entering the details under jenkins “uipath deploy” tab as shown in the snapshot. I m unable to proceed for next phase as it’s failing.

Can any one please help me. I m not clear about the documentation.

1 Like

Hi,
Based on the screenshot I would ask you to change the OR Url to:
http://cloud.uipath.com
If this does not solve the problem, pls also post the console ouput from Jenkins

1 Like

Hi Thomas,

Thank you for your response. Here is the console output. please go through it.


Started by user admin

Running as SYSTEM

Building in workspace C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath

using credential 46fa61ca-5d0b-47cd-8914-5c238212c7c0

C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/vamsi81087/new_test.git # timeout=10

Fetching upstream changes from https://github.com/vamsi81087/new_test.git

C:\Program Files\Git\bin\git.exe --version # timeout=10

using GIT_ASKPASS to set credentials git

C:\Program Files\Git\bin\git.exe fetch --tags --force --progress – https://github.com/vamsi81087/new_test.git +refs/heads/:refs/remotes/origin/ # timeout=10

C:\Program Files\Git\bin\git.exe rev-parse “refs/remotes/origin/master^{commit}” # timeout=10

C:\Program Files\Git\bin\git.exe rev-parse “refs/remotes/origin/origin/master^{commit}” # timeout=10

Checking out Revision ed96138990839f378584389d4388fad09c1f8d33 (refs/remotes/origin/master)

C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10

C:\Program Files\Git\bin\git.exe checkout -f ed96138990839f378584389d4388fad09c1f8d33 # timeout=10

Commit message: “added msg box”

C:\Program Files\Git\bin\git.exe rev-list --no-walk ed96138990839f378584389d4388fad09c1f8d33 # timeout=10

Expected plugin jar path on Jenkins master: C:\Program Files (x86)\Jenkins\plugins\uipath-automation-package\WEB-INF\lib\uipath-automation-package.jar, extracting…

Extracting cli to temp folder C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp…done!

[net461] $ “C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp\cli-1.0.7423.22942\lib\net461\uipcli.exe” run “C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp\uipcliargs9083036835709663874”

Packing project at path C:\Users\XXXXXX\Documents\UiPath\RE_terminal_acts_02_july - trails\project.json…

Step: Started

Step: StartCompilation

Step: FinishedCompilation

Step: StartBuild

Step: FinishedBuild

Step: StartSigning

Step: FinishedSigning

Step: Finished

Packaged project RE_terminal_acts_02_july v1.0.49616845 saved to C:\Users\XXXXXX\Documents\UiPath\RE_terminal_acts_02_july - trails\op\op.xml

Expected plugin jar path on Jenkins master: C:\Program Files (x86)\Jenkins\plugins\uipath-automation-package\WEB-INF\lib\uipath-automation-package.jar, extracting…

Extracting cli to temp folder C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp…done!

[net461] $ “C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp\cli-1.0.7423.22942\lib\net461\uipcli.exe” run “C:\Program Files (x86)\Jenkins\workspace\jenkins_testing_uipath@tmp\uipcliargs6496426211836301644”

Failed to run the command: System.InvalidOperationException: Microsoft.Rest.HttpOperationException: Operation returned an invalid status code ‘MethodNotAllowed’

at UiPath.Web.Client20181.Account.d__5.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at UiPath.Orchestrator.Client.OrchestratorClientFactory.d__4.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at UiPath.CommandLine.Services.Impl.DeployService.d__4.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at UiPath.CommandLine.Extensions.ServiceExtensions.d__0`1.MoveNext()

{“error”:{“code”:“UnsupportedApiVersion”,“message”:“The HTTP resource that matches the request URI ‘https://cloud.uipath.com/api/Account’ does not support HTTP method ‘GET’.”,“innerError”:null}}

at UiPath.CommandLine.Extensions.ServiceExtensions.d__0`1.MoveNext()

— End of stack trace from previous location where exception was thrown —

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at UiPath.CommandLine.Extensions.ParserExtensions.d__2`5.MoveNext()

ERROR: Step ‘UiPath Deploy’ failed: Failed to run the command

Finished: FAILURE


Hi, according to the screenshot you are trying to deploy to cloud orchestrator, but you are using username/pw for on-prem or. cloud OR does no longer support username or pw, you have to use api token here.

There are two ways to authenticate your orchastartor instance. If on perm use user name and password.

Or in case cloud varient use API Keys.

//credentials: [$class: 'UserPassAuthenticationEntry', credentialsId: 'APIUserKey']
	                credentials: Token(accountName: "${UIPATH_ORCH_LOGICAL_NAME}", credentialsId: 'APIUserKey'), 

The Tenants page enables you to access API specific information for each of your existing Orchestrator services (if you have the Organization Owner or Organization Administrator role).