Metadata

Use the metadata section to provide uniquely identify pipeline resources. Example configuration defines the pipeline namespace:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
kind: pipeline
type: kubernetes
name: default

metadata:
  namespace: default

steps:
- name: build
  image: golang
  commands:
  - go build
  - go test

Example with annotations:

1
2
3
4
5
6
7
8
9
kind: pipeline
type: kubernetes
name: default

metadata:
  namespace: default
  annotations:
    key1: value1
    key2: value2

Example with labels:

1
2
3
4
5
6
7
8
9
kind: pipeline
type: kubernetes
name: default

metadata:
  namespace: default
  labels:
    key1: value1
    key2: value2