Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 774 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 774 Bytes

Shared Library For Jenkins

(jenkins_sharedlibrary)

This is a basic shared library for Jenkins (see Jenkins docu).

It can be used as template for individual Shared Libraries to extend Jenkins build pipelines.

Its focus is on showing how to overwrite parts of the Jenkins pipeline like sh(), or stage{}.

Usage

Add the Shared Library in Jenkins: Manage Jenkins » Configure System » Global Pipeline Libraries.

The scripts in /vars are Global Variables. To make them available in pipeline scripts, just add @Library('the-name-you-gave-it-in-the-jenkins-config').