Skip to content

jenkinsci/pipeline-github-lib-plugin

Repository files navigation

Pipeline: GitHub Groovy Libraries

Allows Pipeline Groovy libraries to be loaded on the fly from public repositories on GitHub. Unlike regular library definitions, no preconfiguration at the global or folder level is needed.

Example:

@Library('github.com/jglick/sample-pipeline-library') _
if (currentBuildExt().hasChangeIn('src')) {
  return
}
node {
  sh 'make'
}