Build ID Cluster Interceptor
This cluster interceptor produces a unique build ID produced through the snowflake
library. This format is compatible with the build IDs produced by prow,
so it can be used to let prow tooling (like deck and spyglass) discover logs
from Tekton runs.
Cluster Interceptor Interface
build-id
does not expect any interceptor specific input:
{
"body": "....",
"headers": "",
}
It returns the payload body as an extension:
{
"continue": true,
"extensions": {
"build-id": {
"id": 372779052,
},
},
}
Example usage
A trigger in an event listener:
- name: ci-job-trigger
interceptors:
- name: "Filter created PRs that contain /test"
ref:
name: github
params:
- (...)
- name: "Add Build ID"
ref:
name: "build-id"
Installation
The interceptor is installed via ko
:
export KO_DOCKER_REPO=gcr.io/tekton-releases/dogfooding
ko apply -P -f tekton/ci/cluster-interceptors/build-id/config/