-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Production
When trying to use the ParameterizedRemoteTrigger plugin from one Jenkins server to execute a job on a remote Jenkins server using a Groovy script, the Jenkins job returns a 401 unauthorized exception.
Exception Message: "Connection to remote server failed [401], waiting for to retry - 15 seconds until next attempt."
Using the CredentialsAuth(credentialsId: '<USER_ID>') with a user that can sign into the remote server using a username and password.
Function used in Groovy script:
'org.jenkinsci.plugins.ParameterizedRemoteTrigger.pipeline.RemoteBuildPipelineStep'()
Not sure if it is relevant but the job URL string has spaces in the job name which are encoded.