build-id

module
v0.0.0-...-a9759cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2024 License: Apache-2.0

README

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/

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL