
This patch adds in a tekton zuul job and fixes/adjusts the existing linting and building, which currently does not perform the advertised checks. This is the final patch of the chain of patches in order: 0. https://review.opendev.org/#/c/759865/ : tekton-pipelines 1. https://review.opendev.org/#/c/759598/ : tekton-triggers 2. https://review.opendev.org/#/c/759764/ : tektnon-dashboard Change-Id: Ie7bd9efd42fd13fe8e5e83f290f72ed00ba9dea1 Signed-off-by: Tin Lam <tin@irrational.io>
39 lines
998 B
YAML
39 lines
998 B
YAML
apiVersion: triggers.tekton.dev/v1alpha1
|
|
kind: TriggerTemplate
|
|
metadata:
|
|
name: pipeline-template
|
|
spec:
|
|
params:
|
|
- name: gitrevision
|
|
description: The git revision
|
|
default: master
|
|
- name: gitrepositoryurl
|
|
description: The git repository url
|
|
- name: message
|
|
description: The message to print
|
|
default: This is the default message
|
|
- name: contenttype
|
|
description: The Content-Type of the event
|
|
resourcetemplates:
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: simple-pipeline-run-
|
|
spec:
|
|
pipelineRef:
|
|
name: simple-pipeline
|
|
params:
|
|
- name: message
|
|
value: $(tt.params.message)
|
|
- name: contenttype
|
|
value: $(tt.params.contenttype)
|
|
resources:
|
|
- name: git-source
|
|
resourceSpec:
|
|
type: git
|
|
params:
|
|
- name: revision
|
|
value: $(tt.params.gitrevision)
|
|
- name: url
|
|
value: $(tt.params.gitrepositoryurl)
|