-
Bug
-
Resolution: Unresolved
-
Minor
-
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?
Hey Jean! Which Gradle plugin are you talking about? It doesn't seem to be the Jenkins Gradle plugin which can be installed in Gradle.