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

Pipeline Groovy update to 2.38 disables some pipeline options

XMLWordPrintable

      I have the following defined in a Jenkins pipeline:

      {{ options {}}
        skipDefaultCheckout()
        timestamps()
        timeout(time: 5, unit: 'MINUTES')
      {{ }}}

      Upon updating from 2.37 to 2.38 of the "Pipeline: Groovy" plugin, when running this job, I get the following error:
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 17: Invalid option type "timestamps". Valid option types: [buildDiscarder, disableConcurrentBuilds, overrideIndexTriggers, skipDefaultCheckout, skipStagesAfterUnstable, withCredentials, ws] @ line 17, column 3.
      timestamps()
      ^

      WorkflowScript: 18: Invalid option type "timeout". Valid option types: [buildDiscarder, disableConcurrentBuilds, overrideIndexTriggers, skipDefaultCheckout, skipStagesAfterUnstable, withCredentials, ws] @ line 18, column 3.
      timeout(time: 5, unit: 'MINUTES')

      Downgrading the plugin back to 2.37 resolved this issue, and let me continue with my definitions as they are.

       

      (PS. I wasn't sure if I picked the right JIRA component here, I picked workflow-cps-plugin because that appears to be the github project linked from the plugin page)

       

            abayer Andrew Bayer
            toddmarimon Todd Marimon
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: