configuration-as-code-plugin/demos/pipeline-groovy-lib
Jesse Glick bda84355a4
[JENKINS-57023] Switch dep from `workflow-cps-global-lib` to `pipeline-groovy-lib` (#1973)
2022-05-25 08:53:56 +02:00
..
README.md [JENKINS-57023] Switch dep from `workflow-cps-global-lib` to `pipeline-groovy-lib` (#1973) 2022-05-25 08:53:56 +02:00

README.md

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"