aeddc1bf17
We create (a currently test only) playbook that upgrades zuul. This job then runs through project creation and renaming and testinfra testing on the upgraded gerrit version. Future improvements should consider loading state on the old gerrit install before we upgrade that can be asserted as well. Change-Id: I364037232cf0e6f3fa150f4dbb736ef27d1be3f8
23 lines
615 B
YAML
23 lines
615 B
YAML
- name: Ensure initial gerrit state
|
|
import_playbook: ../service-review.yaml
|
|
vars:
|
|
gerrit_container_image: docker.io/opendevorg/gerrit:3.2
|
|
|
|
- hosts: "review:!disabled"
|
|
name: "Prepare Gerrit for Upgrade"
|
|
tasks:
|
|
- name: Pause for a few seconds to give gerrit time to start
|
|
wait_for:
|
|
timeout: 30
|
|
|
|
- name: Stop gerrit before we upgrade
|
|
shell:
|
|
cmd: docker-compose down
|
|
chdir: /etc/gerrit-compose/
|
|
|
|
- name: Perform gerrit upgrade
|
|
import_playbook: ../service-review.yaml
|
|
vars:
|
|
gerrit_container_image: docker.io/opendevorg/gerrit:3.3
|
|
gerrit_run_init: true
|