
By setting the auth type to DEVELOPMENT_BECOME_ANY_ACCOUNT and passing --dev to the init process, gerrit will create an initial admin user for us. We leverage this user to create a sample project, change, Zuul user and sample CI result comment. We also update testinfra to take some screenshots of gerrit and report them back. Change-Id: I56cda99790d3c172e10b664e57abeca10efc5566
14 lines
447 B
YAML
14 lines
447 B
YAML
- name: Run gerrit init
|
|
shell:
|
|
cmd: >
|
|
docker-compose run shell
|
|
java -jar /var/gerrit/bin/gerrit.war init -d /var/gerrit -b --no-auto-start --skip-plugins --skip-all-downloads {% if gerrit_run_init_dev_mode %} --dev {% endif %}
|
|
chdir: /etc/gerrit-compose/
|
|
when: gerrit_run_init | bool
|
|
|
|
- name: Run docker-compose up
|
|
shell:
|
|
cmd: docker-compose up -d
|
|
chdir: /etc/gerrit-compose/
|
|
when: gerrit_run_compose_up | bool
|