37 lines
770 B
Markdown
37 lines
770 B
Markdown
# Configure global libraries plugin
|
|
|
|
Global Pipeline Libraries plugin configuration belongs under `unclassified` root element
|
|
|
|
## Sample configuration
|
|
|
|
```yaml
|
|
jenkins:
|
|
[...]
|
|
unclassified:
|
|
globalLibraries:
|
|
libraries:
|
|
- name: "awesome-lib"
|
|
retriever:
|
|
modernSCM:
|
|
scm:
|
|
git:
|
|
remote: "https://github.com/jenkins-infra/pipeline-library.git"
|
|
```
|
|
|
|
## Using credentials
|
|
|
|
```yaml
|
|
jenkins:
|
|
[...]
|
|
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'
|
|
```
|