From 659133a381e24ac16e95a9827be0a3dc24dc3445 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 11 Feb 2016 17:55:43 -0500 Subject: [PATCH] Expose URL to download plugins from Change-Id: I18b743d994baea6adb74ef8359c9b372de4683c5 Signed-off-by: Paul Belanger --- defaults/main.yaml | 2 ++ tasks/config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 92e8e3e..13158ba 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -13,3 +13,5 @@ # under the License. --- jenkins_plugins_manager: [] + +jenkins_plugins_url: https://updates.jenkins-ci.org/download/plugins/ diff --git a/tasks/config.yaml b/tasks/config.yaml index a14cac0..37578cb 100644 --- a/tasks/config.yaml +++ b/tasks/config.yaml @@ -12,10 +12,10 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Download +- name: Download plugins. get_url: 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: - "{{ jenkins_plugins_manager }}" notify: