1
0
Fork 0
This repository has been archived on 2023-11-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ansible-jenkins-php-v1/roles/jenkins-php-v1/tasks/50_create-jobs.yml
2020-01-17 23:35:15 +01:00

18 lines
431 B
YAML

---
# 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