The prowjobparser is a helper tool which parses all Prow Jobs under the provided path, matches them against the provided label filters, and prints matching Prow Job names to the standard output.
To use the prowjobparser, navigate to its directory and run it with appropriate parameters. See the example:
go run main.go \
-c ../../prow/config.yaml \
-j ../../prow/jobs \
-i preset-sa-gke-kyma-integration \
-e preset-sa-kyma-artifacts
The prowjobsparser accepts the following command line parameters:
Parameter | Shorthand | Description |
---|---|---|
configpath | -c | Path to the Prow config YAML file. |
jobpath | -j | Path to the directory containing YAML files with Prow Jobs. |
includepreset | -i | Preset name which must be added to Prow Jobs. Accepts multiple-parameter instances. |
excludepreset | -e | Preset name which must not be added to Prow Jobs. Accepts multiple-parameter instances. |