junit callback Options example

Hello,

I would like to use the junit callback (http://docs.ansible.com/ansible/devel/plugins/callback/junit.html), but I find no examples of how to configure the options.

Must be configured within the plyabook, within the file ansible.cfg?
And how should they be written?

thx so much for your help

Diego Mauricio

You have some explanation here
https://docs.ansible.com/ansible/devel/plugins/callback.html

Hello,

have the same problem.
In the documentation it says that you should use environment variables to configure the output directory of the plugin.
In this case I don’t see the point while using the junit callback from ansible which is not within a playbook. So the environment variables set like so are not working here.

Other callback plugins provide the option to set ini keys for configuration into ansible.cfg like:

[callback_junit] output_dir = ~/.local/share/ansible/logs/junit/

Unfortunately this is not working in my case. Any recommendations?

Regards Oliver

Anyone make any headway on this issue?

I’m trying to use the j unit call back plug in and configuring it with environment variables per the recent documentation, but they don’t seem to be working.

In my case I’m running the ansible playbook from the Jenkins job where I’m setting up the environment variables in the Jenkins file environment section.