Skip to content

Commit df5741e

Browse files
committed
Merge branch 'master' into changelog_update
2 parents 279a15e + ddd63d2 commit df5741e

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
v 0.8.0 (6 Sep 2017)
22
- Added support for upgrading to Jenkins 2 from Jenkins 1
33
- Added support for installing pinned plugins from multiple update centers
4+
- Significant improvements to Groovy script error reporting
45
- Added ability to configure multiple admin users (jenkins_admin_sids), and to
56
configure users with CLI access independently of them being admins
67
(jenkins_cli_users)

cinch/roles/jenkins_master/handlers/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
name: jenkins
1212
state: restarted
1313

14+
- name: restart Jenkins during upgrade
15+
service:
16+
name: jenkins
17+
state: restarted
18+
when: jenkins_upgrade
19+
1420
# Reload firewalld by running command, since the firewalld module doesn't
1521
# support the functionality to reload rules.
1622
- name: reload firewalld

cinch/roles/jenkins_master/tasks/install.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- openssl-devel
2020
- libffi-devel
2121
- ansible
22+
notify: restart Jenkins during upgrade
2223

2324
- name: install additional packages
2425
package:

cinch/roles/jenkins_master/tasks/post_configure.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
user: "{{ jenkins_admin.nickname }}"
77
password: "{{ admin_api_key | default('') }}"
88
register: script_output
9-
changed_when: "script_output.output.find('CHANGED') != -1"
9+
changed_when: "(script_output.output|default('')).find('CHANGED') != -1"
1010
# Since the jenkins_script module doesn't support check_mode, we disable it
1111
# here so that we can handle check mode inside of the Groovy scripts.
1212
check_mode: false

0 commit comments

Comments
 (0)