How do I programmatically implement the post build action "Publish JUnit test result report"

126 views
Skip to first unread message

Manivel R

unread,
Jul 7, 2014, 3:04:09 AM7/7/14
to jenkin...@googlegroups.com
I am writing a jenkins plugin using Java & Jelly script and wanted to automatically call the "Publish JUnit test result report" step at the end. I do see an option in the post build step but i am looking to achieve this as part of plugin itself. So that i dont have to exclusively call this step ""Publish JUnit test result report".

I red something doPost() method will trigger the post build action but wanted to know how to i call ""Publish JUnit test result report" as part of it.

Surya Gaddipati

unread,
Jul 11, 2014, 10:33:53 AM7/11/14
to jenkin...@googlegroups.com

Manivel R

unread,
Jul 25, 2014, 1:26:21 AM7/25/14
to jenkin...@googlegroups.com, suryap...@gmail.com
Hi Thanks for the info. I will try it out.
I have another to you if i may ask. Here is the scenario
I have a plugin developed which does "Execute Test"
The execute test plugin does the following as a post build step
1. Produce a JMS message
2. Run Test1
3. Publish result

Now I want to make it little different. So that when i add multiple post build step "execute test", it should do
loop 3 times{ 
1. Produce a JMS message
2. Run Test1
3. Publish result

2. RunTest2
3. Publish result

2. RunTest3
3. Publish result
}

I dont want to make Step1 every time. I just want to do once per JOB. Is there any way other than developing step1 alone as a plugin & the rest as another plugin?

I also dont want to put this step1 in global.jelly file.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/DPjA1lcNwNE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Reply all
Reply to author
Forward
0 new messages