Skip to content

Commit b0266fc

Browse files
committed
add crc-qe-fedora pipeline
1 parent fa17f81 commit b0266fc

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

test/crc-qe-fedora.yaml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
apiVersion: tekton.dev/v1beta1
3+
kind: Pipeline
4+
metadata:
5+
name: integration-fedora-test
6+
spec:
7+
description: >-
8+
This pipeline used Konflux integration test,
9+
will run the testing for openshift local on Fedora based on nested virtualization.
10+
params:
11+
- name: SNAPSHOT
12+
type: string
13+
- name: secret-az-credentials
14+
default: az-crcqe-bot
15+
type: string
16+
tasks:
17+
- name: init
18+
taskSpec:
19+
params:
20+
- name: SNAPSHOT
21+
type: string
22+
results:
23+
- name: output-image
24+
- name: correlation
25+
steps:
26+
- name: get
27+
image: quay.io/konflux-ci/konflux-test:stable
28+
env:
29+
- name: SNAPSHOT
30+
value: $(params.SNAPSHOT)
31+
script: |
32+
#!/bin/sh
33+
echo $SNAPSHOT
34+
COMPONENT_CONTAINER_IMAGE=$(jq -r --arg component_name "crc" '.components[] | select(.name == $component_name) | .containerImage' <<< "${SNAPSHOT}")
35+
echo ${COMPONENT_CONTAINER_IMAGE}
36+
echo -n "${COMPONENT_CONTAINER_IMAGE}" | tee $(results.output-image.path)
37+
echo -n $RANDOM$RANDOM | tee $(results.correlation.path)
38+
- name: provision-fedora
39+
taskRef:
40+
resolver: git
41+
params:
42+
- name: url
43+
value: https://github.com/redhat-developer/mapt
44+
- name: revision
45+
value: v0.9.0
46+
- name: pathInRepo
47+
value: tkn/infra-aws-fedora.yaml
48+
params:
49+
- name: secret-aws-credentials
50+
value: aws-crcqe-bot
51+
- name: id
52+
value: $(tasks.init.results.correlation)
53+
- name: operation
54+
value: create
55+
- name: ownerKind
56+
value: PipelineRun
57+
- name: ownerName
58+
value: $(context.pipelineRun.name)
59+
- name: ownerUid
60+
value: $(context.pipelineRun.uid)
61+
- name: nested-virt
62+
value: 'true'
63+
- name: version
64+
value: "41"
65+
- name: tags
66+
value: "pipelinerunName=$(context.pipelineRun.name)"
67+
- name: install-crc
68+
taskRef:
69+
resolver: git
70+
params:
71+
- name: url
72+
value: https://github.com/lilyLuLiu/ci-definitions
73+
- name: revision
74+
value: main
75+
- name: pathInRepo
76+
value: crc-support/tkn/task.yaml
77+
params:
78+
- name: os
79+
value: "linux"
80+
- name: secret-host
81+
value: $(tasks.provision-fedora.results.host-access-secret)
82+
- name: asset-image-address
83+
value: $(tasks.init.results.output-image)
84+
- name: asset-image-path
85+
value: "/opt/linux-amd64"
86+
- name: asset-name
87+
value: "crc"
88+
- name: install
89+
value: "true"
90+
- name: force-fresh
91+
value: "false"
92+
- name: download
93+
value: "false"
94+
finally:
95+
- name: decommission-fedora
96+
taskRef:
97+
resolver: git
98+
params:
99+
- name: url
100+
value: https://github.com/redhat-developer/mapt
101+
- name: revision
102+
value: v0.9.0
103+
- name: pathInRepo
104+
value: tkn/infra-aws-fedora.yaml
105+
params:
106+
- name: secret-aws-credentials
107+
value: aws-crcqe-bot
108+
- name: operation
109+
value: destroy
110+
- name: id
111+
value: $(tasks.init.results.correlation)
112+
- name: ownerKind
113+
value: PipelineRun
114+
- name: ownerName
115+
value: $(context.pipelineRun.name)
116+
- name: ownerUid
117+
value: $(context.pipelineRun.uid)

0 commit comments

Comments
 (0)