2020-01-17 23:35:15 +01:00
---
jenkins_home : /var/lib/jenkins
#jenkins_updates_url:
#jenkins_plugins_install_dependencies:
2020-01-18 23:48:17 +01:00
# Where to find the 'admin' password
2020-01-17 23:35:15 +01:00
jenkins_admin_password_file : "{{ jenkins_home }}/secrets/initialAdminPassword"
2020-01-18 23:48:17 +01:00
# Where to find/generate the 'gitea' password which will be used
# by Gitea to push the webhook on the notifyCommit URL
2020-01-17 23:35:15 +01:00
jenkins_gitea_password_file : "{{ jenkins_home }}/secrets/giteaAnsiblePassword"
2020-01-18 23:48:17 +01:00
# Jenkin's username dedicated to launch the jobs via the webhook
giteaUsername : gitea
jenkins_cli_jar_location : /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar
2020-01-17 23:35:15 +01:00
jenkins_cli_command : java -jar "{{ jenkins_cli_jar_location }}" -s http://localhost:8080/ -auth admin:$( cat "{{ jenkins_admin_password_file | quote }}" )
2020-01-18 23:48:17 +01:00
# Id of the SSH key used to clone/pull from the repository
# and eventually to connect to the deploy host
2020-01-17 23:35:15 +01:00
jenkins_credential_keyid : deploykey1
jenkins_credential_keydesc : Deploy key n.1
2020-01-17 23:52:10 +01:00
# Default branch for git clone/pull in the job configuration
branch_spec : "*/master"
2020-01-18 01:04:37 +01:00
# Nginx/Jenkins configuration
nginx_vhost_main_hostname : "{{ ansible_fqdn }}"
nginx_vhost_resource_hostname : "resource.{{ ansible_fqdn }}"
nginx_vhost_ssl_certificate_file : "/etc/nginx/ssl/{{ nginx_vhost_main_hostname }}.crt"
nginx_vhost_ssl_key_file : "/etc/nginx/ssl/{{ nginx_vhost_main_hostname }}.key"
# null means "whether nginx_vhost_ssl_certificate_file exists on remote host"
nginx_vhost_ssl :
2020-01-17 23:35:15 +01:00
jenkins_plugins :
- credentials
2020-01-18 23:48:17 +01:00
- git
2020-01-17 23:35:15 +01:00
- git-client
- ssh
- ant
- ws-cleanup # workspace-cleanup : I prefer to be clean at each build start
# Taken from jenkins-php.org
- cloverphp
- crap4j
- htmlpublisher
- jdepend
- plot
- violations
- xunit
2020-03-16 02:40:26 +01:00
- 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
2020-01-17 23:35:15 +01:00
2020-03-16 02:40:26 +01:00
# note: you can add dependencies to a specific host with
# the variable jenkins_plugins_system_dependency_supp
jenkins_plugins_system_dependency_supp :
2020-01-17 23:35:15 +01:00
jenkins_plugins_system_dependency :
- ant
- composer
- php-xdebug # for the code coverage
- phpunit # TODO : test if we can use the /vendor one ?
- php-codesniffer
- phploc
- pdepend
- phpmd
- phpcpd
- phpdox