1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Merge pull request #49 from marcusholl/pr/changePiperLibIdentifier

Change piper lib identifier
This commit is contained in:
Marcus Holl 2018-01-17 09:28:11 +01:00 committed by GitHub
commit 00df52f9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,21 +4,18 @@ import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library
class SharedLibraryCreator {
static def lazyLoadedLibrary = library()
.name('piper-library')
.retriever(new ProjectSource())
.targetPath('is/not/necessary')
.defaultVersion("master")
.allowOverride(true)
.implicit(false)
.build()
static def lazyLoadedLibrary = getLibraryConfiguration(false)
static def implicitLoadedLibrary = library()
.name('piper-library')
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(true)
.implicit(implicit)
.build()
}
}