5

Does anyone have the magic maven/gradle invocation to compile a set of jenkins pipeline DSL groovy files?

Christian Goetze
  • 2,254
  • 3
  • 34
  • 51

1 Answers1

1

Groovy is not compiled (like C#), it is interpreted.

Depending on exactly what you are trying to test potential options are:

  1. Jenkins Groovy Script Console under Manage Jenkins. Note: You will need to be an Admin to be able to access this.
  2. Pipeline Syntax Generator. It is improving. Go to a build of Pipeline job and in the LHS menu you will see a 'Pipeline Syntax' link. Some items require you to first select Pipeline: Steps from the first dropdown.
Andrew Gray
  • 3,593
  • 3
  • 35
  • 62