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

shared library cannot import content from src directory

XMLWordPrintable

      I cannot get content from the src folder on a shared library, if the library is imported via UI, then it works fine, but dinamically imported ignores anything from src and just methods on the /var folder are available.

      I import the library the following way:

      library (identifier: 'libraryName@libraryBranch', retriever: modernSCM(
      [$class: 'GitSCMSource',
      remote: 'https://www.mylibraryRepo.git'))|https://www.mylibraryrepo.git%27]%29%29/]

       

      doing it that way nothing but the /var content is available. importing the library by defining it in the jenkins configuration and then including "@Library('libraryName') _" works like a charm.

       

      Am I missing something or is just that I am running on circles of a thing that is not supported?

       

      Thanks 

      Juan

            Unassigned Unassigned
            joanperez juan perez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: