First commit
This commit is contained in:
commit
e54b5a5663
24 changed files with 3047 additions and 0 deletions
18
roles/jenkins-php-v1/tasks/50_create-jobs.yml
Normal file
18
roles/jenkins-php-v1/tasks/50_create-jobs.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
|
||||
# We need Jenkins to reboot if new plugins were installed.
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Get the list of jobs that already exist
|
||||
shell: "{{ jenkins_cli_command }} list-jobs"
|
||||
changed_when: False
|
||||
check_mode: no
|
||||
register: current_jobs_list
|
||||
|
||||
# Loop on every job we maintain
|
||||
- name: Manage each job
|
||||
include_tasks:
|
||||
file: include_jobinstall.yml
|
||||
loop: "{{ lookup('dict', jobs ) }}"
|
||||
loop_control:
|
||||
loop_var: job
|
Reference in a new issue