Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ravindrasinghh/jenkins_shared_library
https://github.com/ravindrasinghh/jenkins_shared_library
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ravindrasinghh/jenkins_shared_library
- Owner: ravindrasinghh
- Created: 2023-01-23T15:38:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T04:40:28.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T18:38:34.270Z (almost 2 years ago)
- Language: Groovy
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is my personal Jenkins Shared Library.
This repository contains a library of Jenkins Global Variables & Helper Variables that I can use in my project's `Jenkinsfile`
Based on the following articles:
- [How-To-Build-Your-Own-Jenkins-Shared-Library](https://www.jenkins.io/doc/book/pipeline/shared-libraries/)### Import Library
As per the instructions on the [Jenkins Documentation], to include this library; in your `Jenkinsfile`:
```groovy
@Library('jenkins-shared-library@branch_name') _
```
See under `vars/` to see list of full available Global Variables/Helper Variables to use.
```
Put your groovy files inside the vars/
```Alternatively, you can check out this example demo project which shows some use cases of this Shared Library:
[Jenkins Pipelines](https://github.com/ravindrasinghh/docker-git.git)