pipe_clone function

Clone pipeline