-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
last jenkins.
all plugins up-to-date
I have a jenkinsfile which call shared library at the beginning
@Library('gconftools') import forjenkins.GetNodes
this jenkinsfile work correctly, but when I want to test with declarative-linter, there is an error.
java -jar /var/lib/jenkins/home/war/WEB-INF/jenkins-cli.jar -s http://serveur.domainperso:8082 declarative-linter --username=user --password mdp <script.groovy Errors encountered validating Jenkinsfile: WorkflowScript: 7: unable to resolve class forjenkins.GetNodes @ line 7, column 1. @Library('gconftools') ^ WorkflowScript: 26: unable to resolve class forjenkins.GetNodes @ line 26, column 7. z = new forjenkins.GetNodes() ^
- depends on
-
JENKINS-46547 Add support for defining Declarative pipelines in shared libraries
- Closed
- is related to
-
JENKINS-38110 Library section within declarative syntax to explicitly load shared libraries
- Closed
- links to