Add support for pkg install_method
Change-Id: I8940bedffc60fa6cfd7b4f223f74b4fa45ea5a51 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1b1935bb20
commit
113877e4ce
@ -48,6 +48,8 @@ jenkins_job_builder_install_method: git
|
||||
jenkins_job_builder_pip_name: jenkins-job-builder
|
||||
jenkins_job_builder_pip_version:
|
||||
|
||||
jenkins_job_builder_pkg_name: python-jenkins-job-builder
|
||||
|
||||
# handlers/main.yaml
|
||||
jenkins_job_builder_handler_check_delay: 10
|
||||
jenkins_job_builder_handler_check_retries: 3
|
||||
|
@ -13,6 +13,14 @@
|
||||
# under the License.
|
||||
---
|
||||
- name: Ensure build dependencies are installed.
|
||||
apt: "pkg={{ item }} state=installed"
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: installed
|
||||
with_items: jenkins_job_builder_build_depends
|
||||
when: jenkins_job_builder_install_method == 'git' or jenkins_job_builder_install_method == 'pip'
|
||||
|
||||
- name: Install jenkins-job-builder using apt.
|
||||
apt:
|
||||
pkg: "{{ jenkins_job_builder_pkg_name }}"
|
||||
state: installed
|
||||
when: jenkins_job_builder_install_method == 'pkg'
|
||||
|
@ -20,6 +20,14 @@
|
||||
when: jenkins_job_builder_install_method == 'git' or jenkins_job_builder_install_method == 'pip'
|
||||
|
||||
- name: Ensure build dependencies are installed.
|
||||
yum: "pkg={{ item }} state=installed"
|
||||
yum:
|
||||
pkg: "{{ item }}"
|
||||
state: installed
|
||||
with_items: jenkins_job_builder_build_depends
|
||||
when: jenkins_job_builder_install_method == 'git' or jenkins_job_builder_install_method == 'pip'
|
||||
|
||||
- name: Install jenkins-job-builder using yum.
|
||||
yum:
|
||||
pkg: "{{ jenkins_job_builder_pkg_name }}"
|
||||
state: installed
|
||||
when: jenkins_job_builder_install_method == 'pkg'
|
||||
|
Loading…
Reference in New Issue
Block a user