Jenkins Plugin that allows configuring Jenkins system configuration with a Groovy DSL
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
src
.chairlift.yml
.gitignore
README.md
pom.xml Bump required EC2 plugin version to 1.41 Nov 5, 2018

README.md

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