Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55603

ParameterizedRemoteTrigger Plugin returning 401 when connecting to remote Jenkins server

XMLWordPrintable

      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.

            cashlalala KaiHsiang Chang
            cosmyth Conor Smyth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: