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: labels

  • Package full path: policy.build_task.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: labels.build_type_label_set

  • Source

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: labels.build_task_has_label

  • Source