-
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.
[JENKINS-55603] ParameterizedRemoteTrigger Plugin returning 401 when connecting to remote Jenkins server
Description |
Original:
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'( |
New:
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. |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Issue was resolved. Credentials were using a username with a typo. Closing out.