-
Notifications
You must be signed in to change notification settings - Fork 11
Pipeline library
Damien Coraboeuf edited this page Jun 13, 2016
·
3 revisions
A pipeline library can be used to reuse and secure the generation of pipelines for different projects and branches.
A pipeline library is just a JAR file (and a list of dependencies) which defines a seed.groovy
DSL file as a resource.
As an example, you can have a look at the Seed pipeline demo.
The seed/seed.properties
file can be used both to refer to the pipeline library and to configure it.
To access this file in the seed.groovy
file of library, you can use:
def dslProperties = new Properties()
def dslPropertiesStream = streamFileFromWorkspace('seed/seed.properties')
try {
dslProperties.load(dslPropertiesStream)
} finally {
dslPropertiesStream.close()
}
How to test the pipeline generation before publishing the library?