The Giants signed 35-year-old right-hander Ramon Ortiz to a minor-league contract with a spring-training invite.