SAN FRANCISCO ­­—For nearly four months a pregnancy discrimination suit against cloud-computing firm EMC Corp. has been the litigation equivalent of a pinball.

First filed in Santa Clara County Superior Court, the suit was removed to federal court, where it was initially assigned to a magistrate judge in San Jose and then passed off to two district judges. On Tuesday U.S. District Judge William Alsup in San Francisco, the latest judge to have the case on his docket, bounced the matter back to the Northern District’s San Jose division.