Hello All,
I have Jenkins server setup on a windows 2016 server and Ansible Server installed on “RHEL 7” OS.
Through Jenkins pipeline I would like to get the value for “Failed=” parameter which is populated in “PLAY RECAP” section when a Ansible script is executed.
I am not able to achieve the same.
Could you please guide me.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dc095196-4a13-4f11-a668-301e77bee560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[defaults]
callback_whitelist = junit
try { sh "export JUNIT_OUTPUT_DIR=target ansible-playbook ..."} catch (Exception e) { throw e} finally { junit 'target/*'}