github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/test/groovy/util/SharedLibraryCreator.groovy (about)

     1  package util
     2  
     3  import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library
     4  
     5  class SharedLibraryCreator {
     6  
     7      static def lazyLoadedLibrary = getLibraryConfiguration(false)
     8  
     9      static def implicitLoadedLibrary = getLibraryConfiguration(true)
    10  
    11      private static def getLibraryConfiguration(def implicit) {
    12          library()
    13          .name('piper-library-os')
    14          .retriever(new ProjectSource())
    15          .targetPath('is/not/necessary')
    16          .defaultVersion("master")
    17          .allowOverride(true)
    18          .implicit(implicit)
    19          .build()
    20      }
    21  }