Added PR number to tekton pipelines

This commit is contained in:
2020-05-02 21:45:10 +01:00
parent 5da3b51817
commit 15f7c37f22
4 changed files with 20 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ spec:
description: The ref of the PR
- name: projectname
description: The name of the git project
- name: prid
description: The number of the PR
resourcetemplates:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
@@ -31,6 +33,8 @@ spec:
value: $(params.gitrevision)
- name: projectname
value: $(params.projectname)
- name: prid
value: $(params.prid)
resources:
- name: git-source
resourceSpec: