語言能力

所述詹金斯管道 DSL 被用作這樣的語言的例子:

node {
  git 'https://github.com/joe_user/simple-maven-project-with-tests.git'
  def mvnHome = tool 'M3'
  sh "${mvnHome}/bin/mvn -B -Dmaven.test.failure.ignore verify"
  archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
  junit '**/target/surefire-reports/TEST-*.xml'
 }

此 DSL 的目的是以更自然的語言定義和執行 Jenkins 構建作業(或更好的管道)。

通過 Groovy 的核心功能在 Groovy 中編寫特定於域的語言,例如: