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

declarative-linter don't work with shared library

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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()
               ^
      

        Attachments

          Issue Links

            Activity

            bdouxx Boudoux Etienne created issue -
            reinholdfuereder Reinhold F├╝reder made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-38110 [ JENKINS-38110 ]
            abayer Andrew Bayer made changes -
            Link This issue depends on JENKINS-46547 [ JENKINS-46547 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal CJP-6386 (Web Link)" [ 18959 ]
            nicosmaris Nicos Maris made changes -
            Priority Minor [ 4 ] Major [ 3 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                bdouxx Boudoux Etienne
              • Votes:
                13 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated: