Cold stamping and hot stamping pipe