Were there goals discussed for the first 6 months by any chance? Was there a review of them by any chance? (You've mentioned below he didn't review your work and in that case its shitty)
If you're saying your performance in the second team was good- have an objective measure of how its good, or what did you achieve exactly.
I have a feeling this should go to the HR- if be didn't review anything before, or tell you that your performance isn't upto the mark- how would you know?
And if you objectively know you performed well, on what basis is he ignoring that. Were there other goals he wanted you to achieve but now is ignoring?
I think it's terrible- i hope this works in your favour and I hope you're able to defend yourself. You should demand accountability.