-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse more complex nested stages, etc
This adds some more logic to the parser rather than the grammar to ensure that the stage {} directive has the necessary children blocks The errors are pretty sweet too: ❯ ./target/debug/jdp check data/invalid/no-steps-in-stage/Jenkinsfile data/invalid/no-steps-in-stage/Jenkinsfile ------------------------------------------ 0: pipeline { 1: agent any 2: stages { 3: stage('Build') { --------^ Fail: A stage must have either steps{}, parallel{}, or nested stages {}
- Loading branch information
Showing
2 changed files
with
84 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters