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

triggers migration difficulties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: job-dsl-plugin
    • Labels:
      None
    • Environment:
      job_dsl V1.77
    • Similar Issues:

      Description

      I tried to migrate to the new trigger syntax as described here:
      https://github.com/jenkinsci/job-dsl-plugin/blob/master/docs/Migration.md

      But i keep getting the error:

      javaposse.jobdsl.dsl.DslScriptException: (script, line 3) No signature of method: javaposse.jobdsl.dsl.helpers.properties.PropertiesContext.pipelineTriggers() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@16f6b021]javaposse.jobdsl.dsl.DslScriptException: (script, line 3) No signature of method: javaposse.jobdsl.dsl.helpers.properties.PropertiesContext.pipelineTriggers() is applicable for argument types: (script$_run_closure1$_closure2$_closure4) values: [script$_run_closure1$_closure2$_closure4@16f6b021] at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:114) at javaposse.jobdsl.dsl.AbstractDslScriptLoader$_runScripts_closure1.doCall(AbstractDslScriptLoader.groovy:61)

      I used the following test code:

      pipelineJob ("TestJob") {
          properties {
              pipelineTriggers {
                  triggers {
                      pollSCM {
                          scmpoll_spec('')
                      }
                  }
              }
          }
          definition {
              cps {
                  sandbox(true)
                  script("testPipeline()")
              }
          }
      }
      

      I don't know what I'm doing wrong here, anybody?

        Attachments

          Activity

          Hide
          robbinvandamme robbin added a comment - - edited

          It's easy to reproduce if you just paste the sample in here:

          http://job-dsl.herokuapp.com/

          Show
          robbinvandamme robbin added a comment - - edited It's easy to reproduce if you just paste the sample in here: http://job-dsl.herokuapp.com/

            People

            Assignee:
            daspilker Daniel Spilker
            Reporter:
            robbinvandamme robbin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: