You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Cleanup: wrap lines to 80 characters
* Bump Python package versions
* Make jenkins_plugins var default to empty list
I'm not sure where these 8 plugins came from, but I don't think it
makes sense to decide this for our users.
* Only install python-software-properties on Xenial
* Add a special molecule user
We shouldn't add a Jenkins user, since that is done by this role
anyways. Not adding a user will test that the role creates one
successfully.
* Test that the Jenkins user/group was created
* Test that the Jenkins dir/config.xml were created
* Test that job dirs/config.xml files were created
* Test that custom files are deployed
* Test that secrets are deployed
* Test the Jenkins Java process runs as intended
***NOTE***: These directories are customizable, see the `jenkins_source_dir_configs` and `jenkins_source_dir_jobs` role variables.
200
+
***NOTE***: These directories are customizable, see the
201
+
`jenkins_source_dir_configs` and `jenkins_source_dir_jobs` role variables.
203
202
204
203
The role will also look for `{{ playbook_dir }}/jenkins-configs/config.xml`
205
-
These config.xml will be templated over to the server to be used as the job configuration.
206
-
It will upload the whole secrets directory under `{{ playbook_dir }}/jenkins-configs/secrets` and configure custom files provided under `{{ jenkins_custom_files }}` variable. Note that `{{ jenkins_include_secrets }}` and `{{ jenkins_include_custom_files }}` variables should be set to true for these to work.
207
-
Additionally the role can install custom plugins by providing the .jpi or .hpi files as a list under `{{ jenkins_custom_plugins }}` variable.
208
-
209
-
config.xml and custom files are templated so you can put variables in them,
210
-
for example it would be a good idea to encrypt sensitive variables
211
-
in ansible vault.
204
+
These config.xml will be templated over to the server to be used as the job
205
+
configuration. It will upload the whole secrets directory under
206
+
`{{ playbook_dir }}/jenkins-configs/secrets` and configure custom files provided
207
+
under `{{ jenkins_custom_files }}` variable. Note that
208
+
`{{ jenkins_include_secrets }}` and `{{ jenkins_include_custom_files }}`
209
+
variables should be set to true for these to work. Additionally the role can
210
+
install custom plugins by providing the .jpi or .hpi files as a list under
211
+
`{{ jenkins_custom_plugins }}` variable.
212
+
213
+
config.xml and custom files are templated so you can put variables in them, for
214
+
example it would be a good idea to encrypt sensitive variables in ansible vault.
212
215
213
216
Example Job Configs
214
217
-------------------
215
218
216
-
Here's an example of what you could put in `{{ playbook_dir }}/jenkins-configs/jobs/my-first-job/config.xml`:
0 commit comments