Skip to content

This is a Jenkins shared library to create multiple build pipelines for a number of aplications

Notifications You must be signed in to change notification settings

andremmfaria/jenkins-shared-lib-multiple-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

jenkins-shared-lib-multiple-build

This is a Jenkins shared library definition to implement automated pipeline definitions to projects without explicitly defining the pipelines on the project's Jenkinsfile. This uses the multibranch pipeline definitions by default.

  • Docker (windows & linux)
  • Angular (npm)
  • Java (gradle)
  • Nodejs (npm)
  • .Net core (linux - dotnet)
  • .Net Framework (windows - msbuild)

There are many configurations needed to be done in jenkins for this to work, like SonarQube and Nexus. But the latter can be replaced by any binary repository as the engines used are pattern specific. E.g. Maven, docker, npm, etc.

When everything is in place the Jenkinsfile on your project needs only to declare the use of the library, set the 'engine', 'type' and any other desired configs and call the 'execPipeline' command. E.g. As follows:

Jenkinsfile:

@Library('execPipeline') _

def config = [:]
config.'engine' = 'java'
config.'type' = 'app'

execPipeline(config)

About

This is a Jenkins shared library to create multiple build pipelines for a number of aplications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages