Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.03 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.03 KB

prowjobparser

Overview

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.

Usage

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

CLI parameters

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.