Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new schema for Jenkins configuration #170

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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