2018-01-10 11:27:55 +02:00
|
|
|
package util
|
|
|
|
|
|
|
|
import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library
|
|
|
|
|
|
|
|
class SharedLibraryCreator {
|
|
|
|
|
2018-01-16 10:43:24 +02:00
|
|
|
static def lazyLoadedLibrary = getLibraryConfiguration(false)
|
|
|
|
|
|
|
|
static def implicitLoadedLibrary = getLibraryConfiguration(true)
|
2018-01-10 11:27:55 +02:00
|
|
|
|
2018-01-16 10:43:24 +02:00
|
|
|
private static def getLibraryConfiguration(def implicit) {
|
|
|
|
library()
|
2018-01-15 16:06:02 +02:00
|
|
|
.name('piper-library-os')
|
2018-01-10 11:27:55 +02:00
|
|
|
.retriever(new ProjectSource())
|
|
|
|
.targetPath('is/not/necessary')
|
|
|
|
.defaultVersion("master")
|
|
|
|
.allowOverride(true)
|
2018-01-16 10:43:24 +02:00
|
|
|
.implicit(implicit)
|
2018-01-10 11:27:55 +02:00
|
|
|
.build()
|
2018-01-16 10:43:24 +02:00
|
|
|
}
|
2018-01-10 11:27:55 +02:00
|
|
|
}
|