Commit e0aea721 by Kevin Falcone

We may not have HPI files if we only download JPI

parent eaead048
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
- name: Get the list of hpi files - name: Get the list of hpi files
shell: "ls {{ jenkins_home }}/plugins/*.hpi" shell: "ls {{ jenkins_home }}/plugins/*.hpi"
register: hpi_files register: hpi_files
ignore_errors: true
- name: Set the permission on hpi files - name: Set the permission on hpi files
file: file:
...@@ -10,6 +11,7 @@ ...@@ -10,6 +11,7 @@
group: "{{ jenkins_group }}" group: "{{ jenkins_group }}"
mode: 0644 mode: 0644
with_items: hpi_files.stdout_lines with_items: hpi_files.stdout_lines
when: hpi_files
notify: notify:
- restart Jenkins - restart Jenkins
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment