https://github.com/socialengine/jenkins-shared-pipeline
Groovy Jenkins shared library to be used in pipelines
https://github.com/socialengine/jenkins-shared-pipeline
Last synced: 3 months ago
JSON representation
Groovy Jenkins shared library to be used in pipelines
- Host: GitHub
- URL: https://github.com/socialengine/jenkins-shared-pipeline
- Owner: SocialEngine
- License: mit
- Created: 2017-04-03T19:28:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T20:14:12.000Z (over 9 years ago)
- Last Synced: 2025-12-07T06:57:41.527Z (7 months ago)
- Language: Groovy
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins Shared Pipeline
## Installation
Add it as a Shared Pipeline Library under _Manage Jenkins_ -> _Configure System_
**Name**: _socialengine_
**Default Version**: _master_
**Retrieval Method**: _Modern SCM_
## Usage
After setting it up, you will have following variable available:
### parseJson
Parses json to be available to you as a LazyMap.
```
library 'socialengine'
pipeline {
agent none
//...stage,steps,etc
script {
def version = parseJson(readFile('package.json')).version
}
}
```