Browse Source

Expose URL to download plugins from

Change-Id: I18b743d994baea6adb74ef8359c9b372de4683c5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/98/279298/2
Paul Belanger 3 years ago
parent
commit
659133a381
2 changed files with 4 additions and 2 deletions
  1. 2
    0
      defaults/main.yaml
  2. 2
    2
      tasks/config.yaml

+ 2
- 0
defaults/main.yaml View File

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

+ 2
- 2
tasks/config.yaml View File

@@ -12,10 +12,10 @@
12 12
 # License for the specific language governing permissions and limitations
13 13
 # under the License.
14 14
 ---
15
-- name: Download
15
+- name: Download plugins.
16 16
   get_url:
17 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 19
   with_items:
20 20
     - "{{ jenkins_plugins_manager }}"
21 21
   notify:

Loading…
Cancel
Save