In Jenkins, how to mirror a repository to another (using Git)?
<p>Basically what I want to do is to mirror an open-source git repository to my own git repository.
The commands should be:</p>

<pre><code>git clone --mirror target@github.com/target.git
cd target.git
git remote set-url --push origin %my_repo%
git fetch -p origin
git push --mirror
</code></pre>

<p>However,I couldn't find a way on Jenkins to perform commands above.
Could anyone show me the way?
Thanks.</p>