Skip to content
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.

Hints

Getting access to the properties

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()
}

Testing the pipeline library

How to test the pipeline generation before publishing the library?

See also

Clone this wiki locally