system packages for each host
This commit is contained in:
parent
c930ae7d85
commit
a29288aef4
3 changed files with 38 additions and 12 deletions
|
@ -38,29 +38,28 @@ jenkins_plugins:
|
|||
- ant
|
||||
- ws-cleanup # workspace-cleanup : I prefer to be clean at each build start
|
||||
# Taken from jenkins-php.org
|
||||
- checkstyle
|
||||
- cloverphp
|
||||
- crap4j
|
||||
- dry
|
||||
- htmlpublisher
|
||||
- jdepend
|
||||
- plot
|
||||
- pmd
|
||||
- violations
|
||||
- warnings
|
||||
- xunit
|
||||
- warnings-ng
|
||||
- checkstyle # integrated into 'warnings-ng' ?
|
||||
- dry # integrated into 'warnings-ng' ?
|
||||
- pmd # integrated into 'warnings-ng' ?
|
||||
- warnings # integrated into 'warnings-ng' ?
|
||||
#- configuration-as-code # this playbook needs more rework...
|
||||
#- job-dsl # too much work as of 2020-03
|
||||
|
||||
# note: you can add dependencies to a specific host with
|
||||
# the variable jenkins_plugins_system_dependency_supp
|
||||
jenkins_plugins_system_dependency_supp:
|
||||
jenkins_plugins_system_dependency:
|
||||
- ant
|
||||
- composer
|
||||
- php-gd
|
||||
- php-xml
|
||||
- php-mbstring
|
||||
- php-mysql
|
||||
- php-pgsql
|
||||
- php-xdebug # for the code coverage
|
||||
- mariadb-server
|
||||
- postgresql
|
||||
- phpunit # TODO: test if we can use the /vendor one ?
|
||||
- php-codesniffer
|
||||
- phploc
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
when: item not in current_plugin_list.stdout_lines
|
||||
notify: safe-restart jenkins and wait
|
||||
|
||||
# For convenience, we concatenate two lists of packages :
|
||||
# - jenkins_plugins_system_dependency
|
||||
# - jenkins_plugins_system_dependency_supp
|
||||
- name: Install system packages needed by Jenkins plugins
|
||||
apt:
|
||||
name: "{{ jenkins_plugins_system_dependency }}"
|
||||
name: "{{ jenkins_plugins_system_dependency | union(jenkins_plugins_system_dependency_supp | default([])) }}"
|
||||
state: present
|
||||
|
|
Reference in a new issue