configuration-as-code-plugin/demos/workflow-cps-global-lib/README.md

736 B

Configure global libraries plugin

Global Pipeline Libraries plugin configuration belongs under unclassified root element

Sample configuration

unclassified:
  globalLibraries:
    libraries:
      - name: "awesome-lib"
        retriever:
          modernSCM:
            scm:
              git:
                remote: "https://github.com/jenkins-infra/pipeline-library.git"

Using credentials

unclassified:
  globalLibraries:
    libraries:
      - name: "internal-pipeline-library"
        retriever:
          modernSCM:
            scm:
              git:
                remote: "git@github.com:furry-octo-lamp-inc/pipeline-library.git"
                credentialsId: "reimagined-parakeet-ssh"