I have asked this question in the past. As far as I can tell, if you are going to later pursue citizenship (which I am not), it is recommended that you stay with your company for 6 months. Other people have different opinions on the length of stay etc. I do not believe there is a firm rule.
Hope this helps!