I was one of the people who voted to close your initial question. I'll copy it here and try to comment on the issues I see.
I'm using Matlab unit test framework and Jenkins running on Linux to execute test cases.
Good start, we know what you are using. Although it's not clear to me what the "MATLAB unit test framework" is, it's probably a built-in toolbox.
One of my tests has been failing for the past 5-6 builds but for some reason Jenkins says 'Failing for the past 1 build', for every build that failed.
What test? You didn't mention one in any of the rest of the text. It's very difficult to see where the problem is without you telling us what's going on. Hence the close reason: we need an MCVE.
Moreover, the 'Age' link in Jenkins' test result section always points to the latest build, not the one where the failure first appeared. What could be the reason for this?
Additional information on the error, good, but still it is unclear what build or what test failed in the first place.
Even with the updated question (which I hadn't seen until now), this problem persists. I see a screenshot and a question 'How can this happen'. Well, probably for a lot of reasons (I don't know Jenkins, so this might actually be not true). The thing which would help us to determine the issue is, again, a Minimal, Complete, and Verifiable example, so that we can recreate the issue you are facing, making it possible for us to actually debug.
In a comment on Shree's answer you say "I already got rid of the original problem with a completely new Jenkins." Which means that your issue is now No longer reproducible. It wasn't in the first place for us, due to lacking information, and now not even for you because you changed versions and the problem is gone. It could've been a bug in your test, in Jenkins, in some driver you installed, perhaps even Tim lost his keys. It's impossible for anyone now to say what the problem is.
Reading the comments make me think you actually want more general advice on how to ask questions, therefore I'd like to suggest the help centre summary, as well as Writing the perfect question, a blog post by the top user, in terms of reputation points, on the site.