fix diagnostic collector

Change-Id: Ia20230b66f8de12bc8ad846a0f72426a99e7113f
diff --git a/build.gradle b/build.gradle
index ebffc9c..25f70c5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -258,6 +258,13 @@
   args = ["-p", "$config.seedServer.ansible_ssh_port", "$config.seedServer.ansible_user@$config.seedServer.ip", ansible_cmd ]
 }
 
+task PIrunDiag (type: Exec) {
+  def ansible_cmd = "cd /opt/cord/build/platform-install; ansible-playbook -i inventory/head-localhost --extra-vars @/opt/cord/build/genconfig/config.yml cord-diag-playbook.yml"
+
+  executable = "ssh"
+  args = ["-p", "$config.seedServer.ansible_ssh_port", "$config.seedServer.ansible_user@$config.seedServer.ip", ansible_cmd ]
+}
+
 task postDeployTests (type: Exec) {
 
   def ansible_cmd = "cd /opt/cord/build/platform-install; ansible-playbook -i inventory/head-localhost --extra-vars @/opt/cord/build/genconfig/config.yml cord-post-deploy-playbook.yml"