forked from jenkins-x/jx3-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pullrequest.yaml
executable file
·53 lines (53 loc) · 1.55 KB
/
pullrequest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: pullrequest
spec:
pipelineSpec:
tasks:
- name: test
resources: {}
timeout: 3h0m0s
taskSpec:
metadata: {}
stepTemplate:
resources: {}
volumeMounts:
- mountPath: /etc/podinfo
name: podinfo
readOnly: true
workingDir: /workspace/source
steps:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone-pr.yaml@versionStream
name: ""
- image: ghcr.io/jenkins-x/jx:3.10.155
name: jx-variables
resources: {}
script: |
#!/usr/bin/env bash
jx gitops variables
- env:
- name: GH_ACCESS_TOKEN
valueFrom:
secretKeyRef:
key: password
name: bdd-git
image: ghcr.io/jenkins-x/jx:3.10.155
name: runci
resources: {}
script: |
#!/bin/bash
source .jx/variables.sh
echo running bdd test $JOB_NAME
/workspace/source/.lighthouse/jenkins-x/bdd/$JOB_NAME/ci.sh
volumes:
- downwardAPI:
items:
- fieldRef:
fieldPath: metadata.labels
path: labels
name: podinfo
podTemplate: {}
serviceAccountName: bdd-bot
timeout: 3h0m0s
status: {}