mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
[refactoring] Remove redundant code
This commit is contained in:
@@ -4,21 +4,18 @@ import static com.lesfurets.jenkins.unit.global.lib.LibraryConfiguration.library
|
||||
|
||||
class SharedLibraryCreator {
|
||||
|
||||
static def lazyLoadedLibrary = library()
|
||||
.name('piper-library-os')
|
||||
.retriever(new ProjectSource())
|
||||
.targetPath('is/not/necessary')
|
||||
.defaultVersion("master")
|
||||
.allowOverride(true)
|
||||
.implicit(false)
|
||||
.build()
|
||||
static def lazyLoadedLibrary = getLibraryConfiguration(false)
|
||||
|
||||
static def implicitLoadedLibrary = 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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user