-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Jenkins 2.60.2
Plugin "Pipeline: Groovy" 2.38
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)
I just got a similar symptom:
I'm quite sure it appeared after upgrading and adding some plugins to our Jenkins instance (which is version 2.77):
Added:
Upgraded: