mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
22 lines
574 B
Groovy
22 lines
574 B
Groovy
package util
|
|
|
|
import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library
|
|
|
|
class SharedLibraryCreator {
|
|
|
|
static def lazyLoadedLibrary = getLibraryConfiguration(false)
|
|
|
|
static def implicitLoadedLibrary = getLibraryConfiguration(true)
|
|
|
|
private static def getLibraryConfiguration(def implicit) {
|
|
library()
|
|
.name('piper-library-os')
|
|
.retriever(new ProjectSource())
|
|
.targetPath('is/not/necessary')
|
|
.defaultVersion("master")
|
|
.allowOverride(true)
|
|
.implicit(implicit)
|
|
.build()
|
|
}
|
|
}
|