diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-30 18:51:04 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-30 18:51:04 +0300 |
commit | dea41bce7ec3234b5073624def7bc54ce47b79f0 (patch) | |
tree | c7ffb50673519c1a3c94205ec8a45b72ddbe5891 | |
parent | 72508fa132023b4daacad1df29a3b7cf5f94b8db (diff) | |
download | ick.liw.fi-dea41bce7ec3234b5073624def7bc54ce47b79f0.tar.gz |
Publish log entry
-rw-r--r-- | blog/2018/07/30/icklint_finds_problems_in_your_ick_files.mdwn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/blog/2018/07/30/icklint_finds_problems_in_your_ick_files.mdwn b/blog/2018/07/30/icklint_finds_problems_in_your_ick_files.mdwn new file mode 100644 index 0000000..23a9f14 --- /dev/null +++ b/blog/2018/07/30/icklint_finds_problems_in_your_ick_files.mdwn @@ -0,0 +1,32 @@ +[[!meta title="icklint finds problems in your .ick files"]] +[[!tag ]] +[[!meta date="2018-07-30 18:44"]] + +I've recently written a new tool: `icklint`. You give it your ick +project and pipeline descriptions, and it looks for problems. +Currently it checks for the following things: + +* Each pipeline must have actions. +* There is not pipeline field called "parameter" (the correct spelling + is "parameters", in the plural). +* Each project has pipelines and parameters. +* Each project defines all the parameters its pipelines expect, and + no parameters none of its pipelines expect. + +To use: + +* Get the script from <http://git.liw.fi/icklint/tree/> (you can just + download the script, or run it from a cloned repository). Requires + the Python YAML library (`python3-yaml` in Debian). + +* Download all projects and pipeline descriptions from your ick + controller: + + icktool show /projects > projects.json + icktool show /pipelines > pipeline.json + +* Run: `./icklint projects.json pipelines.json` + +All errors are printed to stdout. + +If you can think of more checks for icklint to have, do suggest! |