Expose URL to download plugins from

Change-Id: I18b743d994baea6adb74ef8359c9b372de4683c5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-02-11 17:55:43 -05:00
parent 7e3a4bb88f
commit 659133a381
2 changed files with 4 additions and 2 deletions

View File

@ -13,3 +13,5 @@
# under the License. # under the License.
--- ---
jenkins_plugins_manager: [] jenkins_plugins_manager: []
jenkins_plugins_url: https://updates.jenkins-ci.org/download/plugins/

View File

@ -12,10 +12,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
--- ---
- name: Download - name: Download plugins.
get_url: get_url:
dest: "{{ jenkins_config_home }}/plugins/" dest: "{{ jenkins_config_home }}/plugins/"
url: "https://updates.jenkins-ci.org/download/plugins/{{ item.name }}/{{ item.version | default('latest') }}/{{ item.name }}.hpi" url: "{{ jenkins_plugins_url }}{{ item.name }}/{{ item.version | default('latest') }}/{{ item.name }}.hpi"
with_items: with_items:
- "{{ jenkins_plugins_manager }}" - "{{ jenkins_plugins_manager }}"
notify: notify: