-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: gradle-plugin
-
None
After installing the plugin: https://plugins.jenkins.io/parameterized-scheduler
I am able to create a freestyle job and manually go into the UI and edit the "build periodically with paramters".
Now when i submit my groovy code in the job DSL, the gradle plugin always returns with an error:
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Parallel execution is an incubating feature.
:compileJava UP-TO-DATE
:compileGroovy
:processResources
:classes
:jar
:assemble
:resolveTestPlugins
:compileTestJava UP-TO-DATE
:compileTestGroovy
:processTestResources UP-TO-DATE
:testClasses
:test
Â
com.dslexample.JobScriptsSpec > test script moveit_user_report.groovy FAILED
org.spockframework.runtime.UnallowedExceptionThrownError at JobScriptsSpec.groovy:48
Caused by: javaposse.jobdsl.dsl.DslScriptException at JobScriptsSpec.groovy:44
Caused by: groovy.lang.MissingMethodException at JobScriptsSpec.groovy:44
Â
i have tried the following styles to get it working in a freestyle job
 triggers {
  parameterizedTimerTrigger
 }
Â
 triggers {
  parameterizedCron {   parameterizedSpecification('''    H * * * * %moveitserver=devmoveit.pgn.com   ''')  }
 }
Â
 triggers
none have worked. is there something else i need to do to make jenkins dsl understand this?