How to checkout a git repository in Jenkins groovy script

Hi

In my Jenkins job, I am having Active Choices Reactive Parameter

My requirement is

to clone a git repository and process one of the from that repository

In Jenkins, I have the credential for that git repository with required privileges

Can someone explain, how to clone the git repository in the Groovy script part of the Active Choices Reactive Parameter ?

Thank You

Hello @JasonDavis ,

I’m not so sure I perfectly understand what you want to do, but I’ll make a proposal nonetheless.
You could call a method in your Active Choices script, and you could have your git clone in this method.