You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Thanks Victor. Not sure how failureDiffString would help. The issue is that this returns the failures from all past maven executions and not just for the last run.
FTM I've done this but it's overly complex and it would be nice to be able to get the failed tests related only to the last maven execution:
Note that I have to go through a global env variable to save the previous state and compare.
Thanks
-Vincent
Vincent Massol
unread,
Jan 31, 2018, 1:19:39 AM1/31/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Actually my code won't work. Just realized that 'env' can only store Strings. Thus I need a way to have some global variable shared between calls to my scripted pipeline library... Any idea?
Vincent Massol
unread,
Jan 31, 2018, 5:54:24 AM1/31/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
And the solution is simpler, I just need to save the failing tests before the maven execution and compare with the full list of failing tests I get after that maven execution:
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Well, it doesn't work...
The issue is because we use parallel() step and thus we have several maven runs starting in parallel. So they start with empty failing tests but one of them can contribute failing tests to the others since all failing tests are accruing in currentBuild... :(
So I really need to find a way to identify how to get the failing tests for a given maven run...
Is there anything in CaseResult/TestResult would allow me to do this for example?