First commit
This commit is contained in:
commit
e54b5a5663
24 changed files with 3047 additions and 0 deletions
16
roles/jenkins-php-v1/tasks/include_saferestartandwait.yml
Normal file
16
roles/jenkins-php-v1/tasks/include_saferestartandwait.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
- name: safe-restart jenkins and wait (include)
|
||||
block:
|
||||
- name: safe-restart jenkins
|
||||
shell: "{{ jenkins_cli_command }} safe-restart"
|
||||
- name: Loop until Jenkins is available
|
||||
get_url:
|
||||
url: "http://localhost:8080/login"
|
||||
dest: "/dev/null"
|
||||
force: True
|
||||
register: result
|
||||
until: result.status_code is defined and result.status_code == 200
|
||||
retries: 10
|
||||
delay: 5
|
||||
changed_when: False
|
Reference in a new issue