Skip to content

Commit 0e3b2ca

Browse files
authored
Merge pull request #53 from kremers/feature/jenkins_plugin_retries
Introduce jenkins_plugins_retries var
2 parents d23acfc + 203a0b8 commit 0e3b2ca

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ jenkins_plugins_extra: []
7070
# Timeout when installing/updating plugins (in seconds).
7171
jenkins_plugins_timeout: 60
7272

73+
# How many times to retry failed plugin installs/upgrades.
74+
jenkins_plugins_retries: 3
75+
7376
# If `true`, the Jenkins plugins will be updated when this role is run.
7477
# (Note that missing plugins will always be installed.)
7578
jenkins_plugins_update: true

tasks/plugins.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- "{{ jenkins_plugins_recommended }}"
1717
- "{{ jenkins_plugins_extra }}"
1818
become: true
19+
retries: "{{ jenkins_plugins_retries }}"
1920
notify:
2021
- "Restart Service 'jenkins'"
2122

@@ -34,5 +35,6 @@
3435
- "{{ jenkins_plugins_extra }}"
3536
become: true
3637
when: jenkins_plugins_update
38+
retries: "{{ jenkins_plugins_retries }}"
3739
notify:
3840
- "Restart Service 'jenkins'"

0 commit comments

Comments
 (0)