Skip to content

Commit

Permalink
[zuul] Experiment with provider jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
elfiesmelfie committed Dec 1, 2023
1 parent ba9c918 commit f251ace
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
Deploy STF using the nightly bundles
vars:
scenario: "nightly_bundles"

- job:
name: stf-crc-local_build
parent: stf-base
Expand Down Expand Up @@ -106,19 +106,33 @@
vars:
crc_ocp_bundle: 'https://mirror.openshift.com/pub/openshift-v4/clients/crc/bundles/openshift/4.13.14/crc_libvirt_4.13.14_amd64.crcbundle'

- job:
name: stf-crc-provider
parent: base-simple-crc
run:
- ci/expose_crc_info.yml
provides: openshift_cluster
vars:
test_input: "Hello world!"

- job:
name: stf-crc-consumer
parent: base
requires: openshift_cluster
run:
# this playbook will consume the cluster info to log into the cluster.
# Or ping the host... Or something like that
- ci/debug_crc.yml

- project-template:
name: stf-crc-jobs
description: |
STF CRC jobs that build and deploy STF
github-check:
jobs:
- stf-crc-ocp_412-nightly_bundles
- stf-crc-ocp_412-local_build
- stf-crc-ocp_412-local_build-index_deploy
- stf-crc-ocp_413-nightly_bundles
- stf-crc-ocp_413-local_build
- stf-crc-ocp_413-local_build-index_deploy

- stf-crc-provider
- stf-crc-consumer

- project:
name: infrawatch/service-telemetry-operator
templates:
Expand Down
5 changes: 5 additions & 0 deletions ci/debug_crc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- hosts: all
tasks:
- ansible.builtin.debug:
msg: "{{ test }}"
10 changes: 10 additions & 0 deletions ci/expose_crc_info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- hosts: all
tasks:
- name: Return zuul data
zuul_return:
data:
zuul:
pause: true
# What do I need?
test: "{{ test_input }}"

0 comments on commit f251ace

Please sign in to comment.