-
Bug
-
Resolution: Unresolved
-
Minor
If I use timestamp() in the options of a pipeline the linter is reporting an error.
I use VS Code with the "Jenkins Pipeline Linter Connector" to validate my Jenkinsfiles.
minimal example:
pipeline { agent any options { timestamps(); } stages { stage('1') { steps { echo "stage 1 #####################################" } } } }
works fine executing, but the linter reports:
Errors encountered validating Jenkinsfile: WorkflowScript: 6: Invalid option type "timestamps". Valid option types: [ansiColor, authorizationMatrix, buildDiscarder, catchError, checkoutToSubdirectory, disableConcurrentBuilds, disableResume, durabilityHint, githubProjectProperty, lock, newContainerPerStage, overrideIndexTriggers, parallelsAlwaysFailFast, preserveStashes, quietPeriod, rateLimitBuilds, retry, script, skipDefaultCheckout, skipStagesAfterUnstable, timeout, waitUntil, warnError, withChecks, withContext, withCredentials, withEnv, wrap, ws] @ line 6, column 5. timestamps(); ^
This is inconvenient because I always have to comment that out in order to check my files.