Skip to content

Commit

Permalink
zuul.d - reduce duplication
Browse files Browse the repository at this point in the history
Change-Id: I4fc665e23058c2b9f5bb9b7c50bf38b3f46bddc7
  • Loading branch information
morucci committed Nov 3, 2023
1 parent 8f9d547 commit c883aed
Showing 1 changed file with 16 additions and 42 deletions.
58 changes: 16 additions & 42 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@
- job:
name: sf-operator
parent: sf-operator-microshift
timeout: 3600
pre-run:
pre-run: &pre-run
- playbooks/health-check/dev-keys.yaml
- playbooks/health-check/dstat-pre.yaml
post-run:
post-run: &post-run
- playbooks/health-check/dstat-post.yaml
- playbooks/post.yaml
run: playbooks/main.yaml
abstract: true
irrelevant-files:
irrelevant-files: &irrelevant-files
- ".*.md$"
- "doc/.*"
- ".github/.*"
required-projects:
- name: software-factory/sf-infra
roles:
- zuul: software-factory/sf-infra
vars:
vars: &vars
logreduce_optin: true
# microshift deployment
disk_file_sparsed: true
Expand All @@ -47,36 +42,12 @@
- job:
name: sf-operator-multinode
parent: sf-operator-microshift-multinode
timeout: 3600
pre-run:
- playbooks/health-check/dstat-pre.yaml
post-run:
- playbooks/health-check/dstat-post.yaml
- playbooks/post.yaml
pre-run: *pre-run
post-run: *post-run
run: playbooks/main.yaml
abstract: true
irrelevant-files:
- ".*.md$"
- "doc/.*"
- ".github/.*"
required-projects:
- name: software-factory/sf-infra
roles:
- zuul: software-factory/sf-infra
vars:
logreduce_optin: true
# microshift deployment
disk_file_sparsed: true
disk_file_size: 40G
standard_user: false
create_pv: false
setup_olm: true
# post tasks artifacts directory
output_logs_dir: ~/zuul-output/logs
# dnsmasq
microshift_additional_addresses:
- "sfop.me"
- "microshift.dev"
irrelevant-files: *irrelevant-files
vars: *vars

- secret:
name: zuul_quay_sf
Expand Down Expand Up @@ -113,28 +84,31 @@
# Deploy sf-operator on microshift
- job:
name: sf-operator-olm
description: This test validates a sf-operator deployment via OLM
description: Validates a sf-operator deployment via OLM
timeout: 3600
parent: sf-operator
vars:
mode: "olm"

- job:
name: sf-operator-upgrade
description: Validates a sf-operator upgrade via OLM
timeout: 3600
parent: sf-operator
run: playbooks/upgrade.yaml
timeout: 3600

- job:
name: sf-operator-dev-multinode
description: >
This test validates a sf-operator multinode deployment
via the dev mode described in the contributor doc
description: Validates a sf-operator multinode deployment
timeout: 3600
parent: sf-operator-multinode
vars:
mode: "dev"

- job:
name: sf-operator-ansible-lint
description: Lint Ansible playbooks located in playbooks directory
timeout: 900
parent: ansible-lint
vars:
# NOTE(dpawlik): We don't need to add roles dir, due there is a symlink
Expand Down

0 comments on commit c883aed

Please sign in to comment.