diff --git a/tekton/ci/jobs/e2e-kind.yaml b/tekton/ci/jobs/e2e-kind.yaml index 097989663b..4210692bcf 100644 --- a/tekton/ci/jobs/e2e-kind.yaml +++ b/tekton/ci/jobs/e2e-kind.yaml @@ -210,4 +210,4 @@ spec: - name: credentials workspace: credentials - name: source - workspace: sources \ No newline at end of file + workspace: sources diff --git a/tekton/ci/repos/pipeline/template.yaml b/tekton/ci/repos/pipeline/template.yaml index 032158a7c8..9dca98c8fc 100644 --- a/tekton/ci/repos/pipeline/template.yaml +++ b/tekton/ci/repos/pipeline/template.yaml @@ -1,6 +1,106 @@ - op: add path: /spec/resourcetemplates value: + - apiVersion: tekton.dev/v1beta1 + kind: PipelineRun + metadata: + generateName: run-integration-tests- + labels: + prow.k8s.io/build-id: $(tt.params.buildUUID) + tekton.dev/source-event-id: $(tt.params.sourceEventId) + tekton.dev/check-name: pull-tekton-pipeline-integration-tests-using-tekton + tekton.dev/kind: ci + tekton.dev/pr-number: $(tt.params.pullRequestNumber) + annotations: + tekton.dev/gitRevision: "$(tt.params.gitRevision)" + tekton.dev/gitURL: "$(tt.params.gitRepository)" + spec: + serviceAccountName: tekton-ci-jobs + workspaces: + - name: sources + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + - name: credentials + secret: + secretName: "release-secret" + pipelineRef: + name: kind-e2e + params: + - name: pullRequestNumber + value: $(tt.params.pullRequestNumber) + - name: pullRequestBaseRef + value: $(tt.params.pullRequestBaseRef) + - name: gitRepository + value: "$(tt.params.gitRepository)" + - name: gitCloneDepth + value: $(tt.params.gitCloneDepth) + - name: fileFilterRegex + value: '^(cmd/|examples/|images/|pkg/|test/|go\.)' + - name: checkName + value: pull-tekton-pipeline-integration-tests-using-tekton + - name: gitHubCommand + value: $(tt.params.gitHubCommand) + - name: k8s-version + value: v1.23.x + - name: e2e-script + value: test/e2e-tests.sh + - name: e2e-env + value: test/e2e-tests-kind-prow.env + - apiVersion: tekton.dev/v1beta1 + kind: PipelineRun + metadata: + generateName: run-alpha-integration-tests- + labels: + prow.k8s.io/build-id: $(tt.params.buildUUID) + tekton.dev/source-event-id: $(tt.params.sourceEventId) + tekton.dev/check-name: pull-tekton-pipeline-alpha-integration-tests-using-tekton + tekton.dev/kind: ci + tekton.dev/pr-number: $(tt.params.pullRequestNumber) + annotations: + tekton.dev/gitRevision: "$(tt.params.gitRevision)" + tekton.dev/gitURL: "$(tt.params.gitRepository)" + spec: + serviceAccountName: tekton-ci-jobs + workspaces: + - name: sources + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + - name: credentials + secret: + secretName: "release-secret" + pipelineRef: + name: kind-e2e + params: + - name: pullRequestNumber + value: $(tt.params.pullRequestNumber) + - name: pullRequestBaseRef + value: $(tt.params.pullRequestBaseRef) + - name: gitRepository + value: "$(tt.params.gitRepository)" + - name: gitCloneDepth + value: $(tt.params.gitCloneDepth) + - name: fileFilterRegex + value: '^(cmd/|examples/|images/|pkg/|test/|go\.)' + - name: checkName + value: pull-tekton-pipeline-alpha-integration-tests-using-tekton + - name: gitHubCommand + value: $(tt.params.gitHubCommand) + - name: k8s-version + value: v1.23.x + - name: e2e-script + value: test/e2e-tests.sh + - name: e2e-env + value: test/e2e-tests-kind-prow-alpha.env - apiVersion: tekton.dev/v1beta1 kind: PipelineRun metadata: