Skip to content

Commit bbee32f

Browse files
committed
add windows proviosion steps
1 parent e517048 commit bbee32f

File tree

1 file changed

+78
-15
lines changed

1 file changed

+78
-15
lines changed

test/crc-qe-virtualized.yaml

Lines changed: 78 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ spec:
1010
params:
1111
- name: SNAPSHOT
1212
type: string
13+
- name: secret-az-credentials
14+
default: az-crcqe-bot
15+
type: string
1316
tasks:
14-
- name: get-image
17+
- name: init
1518
taskSpec:
1619
params:
1720
- name: SNAPSHOT
1821
type: string
1922
results:
2023
- name: output-image
24+
- name: correlation
2125
steps:
2226
- name: get
2327
image: quay.io/konflux-ci/konflux-test:stable
@@ -30,24 +34,83 @@ spec:
3034
COMPONENT_CONTAINER_IMAGE=$(jq -r --arg component_name "crc-release" '.components[] | select(.name == $component_name) | .containerImage' <<< "${SNAPSHOT}")
3135
echo ${COMPONENT_CONTAINER_IMAGE}
3236
echo -n "${COMPONENT_CONTAINER_IMAGE}" | tee $(results.output-image.path)
37+
echo -n $RANDOM$RANDOM | tee $(results.correlation.path)
3338
params:
3439
- name: SNAPSHOT
3540
value: $(params.SNAPSHOT)
3641

37-
- name: get-content
38-
taskSpec:
42+
- name: provision-windows
43+
taskRef:
44+
resolver: git
3945
params:
40-
- name: image-name
41-
type: string
42-
steps:
43-
- name: check-folder
44-
image: $(params.image-name)
45-
script: |
46-
#!/bin/sh
47-
ls /opt
48-
echo "cheking folder"
49-
ls /opt/2.49.0
46+
- name: url
47+
value: https://github.com/redhat-developer/mapt
48+
- name: revision
49+
value: v0.8.2
50+
- name: pathInRepo
51+
value: tkn/infra-azure-windows-desktop.yaml
52+
params:
53+
- name: secret-az-credentials
54+
value: az-crcqe-bot
55+
- name: id
56+
value: $(tasks.init.results.correlation)
57+
- name: operation
58+
value: create
59+
- name: ownerKind
60+
value: 'PipelineRun'
61+
- name: ownerName
62+
value: $(context.pipelineRun.name)
63+
- name: ownerUid
64+
value: $(context.pipelineRun.uid)
65+
- name: tags
66+
value: 'cicd=konflux,pipelinerun=$(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: crc-support-oras
75+
- name: pathInRepo
76+
value: crc-support/tkn/task.yaml
77+
params:
78+
- name: os
79+
value: windows
80+
- name: secret-host
81+
value: $(tasks.provision-windows.results.host-access-secret)
82+
- name: asset-base-url
83+
value: ""
84+
- name: asset-oras-address
85+
value: $(tasks.init.results.output-image)
86+
- name: asset-name
87+
value: crc-windows-installer.zip
88+
- name: install
89+
value: true
90+
- name: force-fresh
91+
value: false
92+
finally:
93+
- name: decommission-windows
94+
taskRef:
95+
resolver: git
96+
params:
97+
- name: url
98+
value: https://github.com/redhat-developer/mapt
99+
- name: revision
100+
value: v0.8.2
101+
- name: pathInRepo
102+
value: tkn/infra-azure-windows-desktop.yaml
50103
params:
51-
- name: image-name
52-
value: $(tasks.get-image.results.output-image)
104+
- name: secret-az-credentials
105+
value: az-crcqe-bot
106+
- name: id
107+
value: $(tasks.init.results.correlation)
108+
- name: operation
109+
value: destroy
110+
- name: ownerKind
111+
value: 'PipelineRun'
112+
- name: ownerName
113+
value: $(context.pipelineRun.name)
114+
- name: ownerUid
115+
value: $(context.pipelineRun.uid)
53116

0 commit comments

Comments
 (0)