junit callback Options example

470 views
Skip to first unread message

Diego Lagos

unread,
Nov 28, 2017, 7:03:41 AM11/28/17
to Ansible Project
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 

Kai Stian Olstad

unread,
Nov 28, 2017, 9:37:52 AM11/28/17
to ansible...@googlegroups.com
On Tuesday, 28 November 2017 13.03.41 CET Diego Lagos wrote:
> 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?

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


--
Kai Stian Olstad

Oliver

unread,
May 26, 2020, 12:23:54 PM5/26/20
to Ansible Project
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

Tim Black

unread,
Apr 8, 2021, 8:20:14 PM4/8/21
to Ansible Project
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.

Reply all
Reply to author
Forward
0 new messages