From d42758f54c94a63e0c74021fdd156baf725acdb1 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 7 Jun 2020 14:18:58 +0100 Subject: [PATCH] Fixed PR CI jobs --- tekton/pipelines/pr.yaml | 14 ++++++++++++++ tekton/tasks/pr-status.yaml | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tekton/pipelines/pr.yaml b/tekton/pipelines/pr.yaml index e39ae28..bf7b9e1 100644 --- a/tekton/pipelines/pr.yaml +++ b/tekton/pipelines/pr.yaml @@ -39,6 +39,12 @@ spec: params: - name: TARGET value: "test" + - name: REPO + value: $(params.projectname) + - name: PR_ID + value: $(params.prid) + - name: SHA + value: $(params.gitrevision) resources: inputs: - name: src @@ -55,6 +61,12 @@ spec: params: - name: TARGET value: "build" + - name: REPO + value: $(params.projectname) + - name: PR_ID + value: $(params.prid) + - name: SHA + value: $(params.gitrevision) resources: inputs: - name: src @@ -75,6 +87,8 @@ spec: value: $(params.projectname) - name: PR_ID value: $(params.prid) + - name: SHA + value: $(params.gitrevision) resources: inputs: - name: src diff --git a/tekton/tasks/pr-status.yaml b/tekton/tasks/pr-status.yaml index d991fcf..80e5201 100644 --- a/tekton/tasks/pr-status.yaml +++ b/tekton/tasks/pr-status.yaml @@ -14,7 +14,7 @@ spec: default: "pending" steps: - name: pr-status-update - image: docker.cluster.fun/averagemarcus/gitea-pr-state:latest + image: docker.cluster.fun/averagemarcus/gitea-pr-status:latest env: - name: ACCESS_TOKEN valueFrom: @@ -22,6 +22,6 @@ spec: name: gitea-access-token key: access-token args: - - "$(params.REPO)" + - "AverageMarcus/$(params.REPO)" - "$(params.SHA)" - "$(params.STATE)"