-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: agent-server-parameter-plugin
-
None
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']
}
}
}
}
- Click 'Build with Parameters'
- Choose a windows agent-name
- 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.