Details
-
Improvement
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
Description
While this may sound like an unimportant feature request I think it would really be nice if we could have some jenkins pipeline code that is loading the timestamper if is available and if not just running the same block without it.
Can we have such an example?
PS. I was a real pleasure to see the new DLS syntax from version 1.8. Thanks.
The timestamps() option does not work in declarative pipeline:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 20: Invalid option type "timestamps". Valid option types: [ansiColor, authorizationMatrix, buildDiscarder, catchError, checkoutToSubdirectory, copyArtifactPermission, disableConcurrentBuilds, disableResume, durabilityHint, lock, newContainerPerStage, office365ConnectorWebhooks, overrideIndexTriggers, parallelsAlwaysFailFast, preserveStashes, quietPeriod, rateLimitBuilds, retry, script, skipDefaultCheckout, skipStagesAfterUnstable, task, timeout, waitUntil, withContext, withCredentials, withEnv, ws] @ line 20, column 2.
timestamps ()
^1 error