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

triggers migration difficulties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • job_dsl V1.77

      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?

            jamietanna Jamie Tanna
            robbinvandamme robbin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: