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

PipelineJob trigger deprecation, migration error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • job-dsl-plugin
    • None
    • Jenkins LTS 2.204.5, job-dsl-plugin 1.77, pipeline job 2.37
    • job-dsl-plugin 1.78

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

              jamietanna Jamie Tanna
              webminster Alan Sparks
              Votes:
              6 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: