Build Task Policy
These rules are applied to Tekton build task definitions.
1. Tekton task build type label checks
Policies to verify that a Tekton build task definition has the required build type label.
-
Package name:
build_labels
1.1. Build task has build type label
Confirm the build task definition has the required build type label.
-
Rule type: FAILURE
-
FAILURE message:
The required build label '%s' is missing
-
Code:
build_labels.build_type_label_set
1.2. Build task has label
Confirm that the build task definition includes at least one label.
-
Rule type: FAILURE
-
FAILURE message:
The task definition does not include any labels
-
Code:
build_labels.build_task_has_label