forked from solita/ansible-role-solita.jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a079fc
commit 75206ab
Showing
4 changed files
with
33 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
========= | ||
Changelog | ||
========= | ||
|
||
-------------------------- | ||
Version 1.0.1 (2016-07-01) | ||
-------------------------- | ||
|
||
- Prevent Jenkins restart when variable ``solita_jenkins_restart`` is set to ``no``. | ||
|
||
-------------------------- | ||
Version 1.0.0 (2016-06-29) | ||
-------------------------- | ||
|
||
- Add support for Jenkins 2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
--- | ||
- name: Restart Jenkins | ||
service: name=jenkins state=restarted | ||
become: yes | ||
- block: | ||
- name: Restart Jenkins | ||
service: name=jenkins state=restarted | ||
become: yes | ||
|
||
# Stolen from geerlingguy.jenkins. | ||
- name: Wait for Jenkins to start up before proceeding. | ||
shell: "curl -D - --silent {{ solita_jenkins_url }}/cli/" | ||
args: | ||
warn: no | ||
register: result | ||
until: (result.stdout.find("403 Forbidden") != -1) or (result.stdout.find("200 OK") != -1) and (result.stdout.find("Please wait while") == -1) | ||
retries: "{{ jenkins_connection_retries }}" | ||
delay: "{{ jenkins_connection_delay }}" | ||
changed_when: false | ||
# Stolen from geerlingguy.jenkins. | ||
- name: Wait for Jenkins to start up before proceeding. | ||
shell: "curl -D - --silent {{ solita_jenkins_url }}/cli/" | ||
args: | ||
warn: no | ||
register: result | ||
until: (result.stdout.find("403 Forbidden") != -1) or (result.stdout.find("200 OK") != -1) and (result.stdout.find("Please wait while") == -1) | ||
retries: "{{ jenkins_connection_retries }}" | ||
delay: "{{ jenkins_connection_delay }}" | ||
changed_when: false | ||
|
||
when: solita_jenkins_restart |