PipelineJob trigger deprecation, migration error

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • job-dsl-plugin 1.78

      Migration page for 1.77 deprecates pipeline trigger, so trying to migrate to new syntax. 

      Change my jobs from:
      triggers {
        cron('@daily')
      }

      To:
      properties {
      pipelineTriggers {
      triggers

      { cron('@daily') }

      }
      }

      DSL processing now fails with:
      13:02:42 ERROR: (fullbyacct.groovy, line 8) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.cron() is applicable for argument types: (java.lang.String) values: [@daily]
      13:02:42 Possible solutions: grep(), print(java.io.PrintWriter), print(java.lang.Object), grep(java.lang.Object), wait(), find()

      Am I missing something?

            Assignee:
            Jamie Tanna
            Reporter:
            Alan Sparks
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: