Skip to content

Commit

Permalink
Add a new schema for Jenkins configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed Dec 8, 2024
1 parent 7ea370d commit 2c64a68
Show file tree
Hide file tree
Showing 3 changed files with 598 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- Use the new shell-posix schema for shell scripts by default
- [json] highlight JSON object keys
- rename lib/default.hrc to lib/def.hrc
- move 'default' type implementation from proto.hrc to base/default.hrc
- move 'default' type implementation from proto.hrc to base/default.hrc

### Added
- New package type of base - all packed. Hrc and hrd files in one archive. Directory 'auto' not in archive.
Expand Down Expand Up @@ -74,6 +74,7 @@
- [hcl] add a new schema for HashiCorp HCL
- [terraform] add a new schema for HashiCorp Terraform
- [dockerfile] add a new schema for Dockerfile
- [jenkinsfile] add a new schema for Jenkins configuration (Jenkinsfile)

## [1.2.0] - 2021-09-12

Expand Down
12 changes: 11 additions & 1 deletion hrc/hrc/proto.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@
<filename>/\.groovy$/i</filename>
<filename>/\.gdsl$/i</filename>
<filename>/\.gradle$/i</filename>
<filename>/Jenkinsfile/i</filename>
<firstline>/^import/</firstline>
<firstline>/^#!groovy/</firstline>
<parameters>
Expand All @@ -232,6 +231,17 @@
<param name="spaces-as-errors" value="false" description="Shows trailing spaces as error" />
</parameters>
</prototype>
<prototype name="jenkinsfile" group="scripts" description="Jenkinsfile">
<location link="scripts/jenkinsfile.hrc"/>
<filename>/^Jenkins[Ff]ile\..+$/</filename>
<filename>/^.+\.Jenkins[Ff]ile/</filename>
<filename>/^Jenkins[Ff]ile$/</filename>
<filename>/\.gdsl$/i</filename>
<firstline weight='3'>/(^|\n)\s*pipeline\s+\{\s*$/</firstline>
<firstline weight='3'>/(^|\n)\s*node\s+\{\s*$/</firstline>
<firstline weight='3'>/(^|\n)\s*node\([^\)]\)\s+\{\s*$/</firstline>
<firstline weight='3'>/(^|\n)\s*import\s+org\.jenkinsci\./</firstline>
</prototype>

<prototype name="rust" group="main" description="Rust">
<location link="base/rust.hrc" />
Expand Down
Loading

0 comments on commit 2c64a68

Please sign in to comment.