An open API service indexing awesome lists of open source software.

https://github.com/daversomethingsomething/jenkins-multiple-github-checkout

Jenkins Shared Library -Multiple GitHub Checkout
https://github.com/daversomethingsomething/jenkins-multiple-github-checkout

groovy jenkins

Last synced: 2 months ago
JSON representation

Jenkins Shared Library -Multiple GitHub Checkout

Awesome Lists containing this project

README

          

# Jenkins Shared Library - Multiple GitHub Checkout"

[Click here to view the published version of this documentation with more details](https://daversomethingsomething.github.io/jenkins-multiple-github-checkout/)

## Introduction

## Installation with Jenkins

Installation is simple. This repo provides the expected/standard
[Jenkins Shared Library](https://www.jenkins.io/doc/book/pipeline/shared-libraries/)
directory/code structure.

For the simplest approach, you can enable this Pipeline step globally in
your Jenkins instance.

Under **`Manage Jenkins` -> `System` -> `Global Trusted Pipeline Libraries`**,
`Add +` a new library here, give it a name like `JenkinsMultipleGitHubCheckout`,
use the default `main` version, and use the **HTTPS** Git URL for this repo.
No special credentials should be required as this repo is public.

![Manage Jenkins -> Global Trusted Pipeline Libraries](docs/img/JenkinsGlobalTrustedPipelineLibraries.png)

If the Git repos you are working with require authentication to access, then
you can configure an appropriate Jenkins Credential under
**`Manage Jenkins` -> `Credentials` -> `System` -> `Global credentials (unrestricted)`**
or under your project's own credentials domain (preferred).

## Sample Pipeline Usage

Sample Jenkins Pipeline using Jenkins Multiple GitHub Checkout:
```groovy
@Library('JenkinsMultipleGitHubCheckout') _

pipeline {
agent any

stages {
stage('MultiClone') {
steps {
multiClone(
[credentialsId: "JenkinsTest",
repoUrls: ['https://github.com/DaverSomethingSomethingOrg/conan-system-packaging.git',
'https://github.com/DaverSomethingSomethingOrg/conan-github-workflows.git'
]])
multiClone(
[credentialsId: "JenkinsTest",
repoUrls: ['https://github.com/DaverSomethingSomethingOrg/conan-build-container.git'
]])
}
}
}
}
```

[Click here to view the published version of this documentation with more details](https://daversomethingsomething.github.io/jenkins-multiple-github-checkout/)

## License and Copyright

Copyright © 2026 David L. Armstrong

[Apache-2.0](LICENSE.txt)