How to programmatically invoke Git with credentials in Jenkins Groovy script?
<p>My task is similar to the one, described here:<br>
<a href="https://stackoverflow.com/questions/10433105/dynamically-fill-jenkins-choice-parameter-with-git-branches-in-a-specified-repo">Dynamically Fill Jenkins Choice Parameter With Git Branches In a Specified Repo</a></p>

<p>Basically, I want to fetch tags from a remote repositories within Jenkins Groovy script.</p>

<p>But the problem is, that my repositories require credentials for accessing them - SSH keys, which are stored in credentials storage of Jenkins. </p>