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

Agent Server Parameter causes Error fetching remote repo on windows agents

XMLWordPrintable

      Agent Server Parameter prevents loading a Jenkins shared library.

      System:

      • Jenkins 2.319.1 LTS from docker container
      • Several connected windows and linux agents
      • Plugin 'Agent Server Parameter' Version 1.1
      • Declarative Pipeline

      Steps to reproduce:

      Declarative Pipeline:

      pipeline {
          agent {
              label params['agent-name']
          }
          parameters{
            agentParameter name:'agent-name'
          }
          stages {
               stage('Build') {
                  steps {
                      echo params['agent-name']
                  }
              }
          }
      }
      
      1. Click 'Build with Parameters'
      2. Choose a windows agent-name
      3. Click 'Build'

      Expected result: Successful build without errors.

      Actual Result: Error fetching remote repo (Jenkins shared library)

      See attached console output.

       

      Remarks: There is no error if the chosen agent-name is a Linux agent.

            bluersw Sun WeiSheng
            mrlov m l
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: