Skip to content

About

Groovy Jenkins shared library to be used in pipelines

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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
    }
}

About

Groovy Jenkins shared library to be used in pipelines

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages