Skip to content

rei/jenkins-system-config-dsl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Jenkins System Config DSL Plugin

This is a Jenkins plugin that takes advantage of a Jenkins feature where it runs any groovy scripts located in $JENKINS_HOME/init.groovy.d on startup. These scripts have full access to any classes defined in any installed plugins which is how the System DSL plugin is hooked in. The plugin follows a similar pattern to the Job DSL Plugin and exposes a Groovy based DSL to configure the Jenkins System Configuration and all of the plugins.

Example:

com.rei.jenkins.systemdsl.JenkinsSystemConfigDsl.configure  {
  global {
      url("https://jenkins.rei.com/")
      environmentVariables([TZ: 'America/Los_Angeles'])
      quietPeriod(5)
  }

  masterNode {
      numExecutors(4)
      mode(Node.Mode.NORMAL)
  }

  git {
      author("Jenkins", "jenkins@rei.com")
  }

  ...
}

See https://rei.github.io/jenkins-system-config-dsl/ for full reference documentation

About

Jenkins Plugin that allows configuring Jenkins system configuration with a Groovy DSL

Resources

Stars

Watchers

Forks

Packages

No packages published