Commits

anatoly techtonik committed 8d98630

buildbot: (re)start automatically after setup

Comments (0)

Files changed (1)

testing/buildbot.yml

 
   - name: set contact details of the buildbot owner
     copy: dest="{{ work }}/info/admin" content="{{ maintainer }}"
+    notify:
+     - restart buildbot
 
   - name: update host information
     copy: dest="{{ work }}/info/host"
                    {{'\n'}}{{ansible_machine}}
                    {{'\n'}}{{ansible_memtotal_mb}}MB RAM
                    {{'\n'}}Python {{ansible_python_version}}"
+    notify:
+     - restart buildbot
+
+  handlers:
+  - name: restart buildbot
+    command: "{{ venv }}/bin/buildslave restart {{ work }}"
+    sudo: yes
+    sudo_user: "{{ botuser }}"