Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67803

parameterized scheduler jenkins DSL freestyle fails to build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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

      {       parameterizedSpecification('''         H * * * * %moveitserver=devmoveit.pgn.com       ''')     }
        }
       
        triggers {
          parameterizedCron {       parameterizedSpecification('''         H * * * * %moveitserver=devmoveit.pgn.com       ''')     }

        }
       
        triggers

      {     parameterizedCron('''         H * * * * %moveitserver=devmoveit.pgn.com       ''')   }

      none have worked. is there something else i need to do to make jenkins dsl understand this?

            wolfs Stefan Wolf
            slanc Sean Lancaster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: