Skip to content

tao-zhang/jenkins-dsl-jobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins DSL Jobs

This is an example project to create jenkins pipelines (script and scm) with the help of Jenkins Job DSL plugin.

Jenkins Configuration as Code plugin is able to finish most Jenkins configuration as code, but not jobs creation. Together with Job DSL plugin, Jenkins as Code can be achieved. An example of these two plugins working together can be found here.

Project structure

Under root directory, there is a Maven 'hello world' project. In directory jobs, you will find 2 jobs definition to build this Maven project.

  • pipeline-scm.groovy

    Jenkins pipeline through Jenkinsfile defined in a git SCM.

  • pipeline-script.groovy

    Jenkins pipeline through build script inline.

  • github-organization.groovy

    A github organization job based on github branch source plugin. This job will scan all repositories under a github organization/personal account, and create jenkins multibranch pipeline projects if a 'Jenkinsfile' is present in the repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published