Skip to content

SocialEngine/jenkins-shared-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages