summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2016-02-11 17:55:43 -0500
committerPaul Belanger <pabelanger@redhat.com>2016-02-12 09:01:04 -0500
commit659133a381e24ac16e95a9827be0a3dc24dc3445 (patch)
treeb53309d35ff75de9187f6a89e790264eda241bfe
parent7e3a4bb88faf58d69ff2e7459f0cdb4e9112a089 (diff)
Expose URL to download plugins from
Change-Id: I18b743d994baea6adb74ef8359c9b372de4683c5 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Notes
Notes (review): Code-Review+2: Paul Belanger <pabelanger@redhat.com> Workflow+1: Paul Belanger <pabelanger@redhat.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 12 Feb 2016 14:32:50 +0000 Reviewed-on: https://review.openstack.org/279298 Project: openstack/ansible-role-jenkins-plugins Branch: refs/heads/master
-rw-r--r--defaults/main.yaml2
-rw-r--r--tasks/config.yaml4
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 @@
13# under the License. 13# under the License.
14--- 14---
15jenkins_plugins_manager: [] 15jenkins_plugins_manager: []
16
17jenkins_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 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14--- 14---
15- name: Download 15- name: Download plugins.
16 get_url: 16 get_url:
17 dest: "{{ jenkins_config_home }}/plugins/" 17 dest: "{{ jenkins_config_home }}/plugins/"
18 url: "https://updates.jenkins-ci.org/download/plugins/{{ item.name }}/{{ item.version | default('latest') }}/{{ item.name }}.hpi" 18 url: "{{ jenkins_plugins_url }}{{ item.name }}/{{ item.version | default('latest') }}/{{ item.name }}.hpi"
19 with_items: 19 with_items:
20 - "{{ jenkins_plugins_manager }}" 20 - "{{ jenkins_plugins_manager }}"
21 notify: 21 notify: