Edit your job configuration, and under git plugin section:
- Click “Add”
- Click “Advanced clone behaviours”
- Set the number of minutes you want in “Timeout (in minutes) for clone and fetch operation”
I recommend checking also the “shallow clone” option. It fetches only the last state of the repository (without the history), so it’s much faster.
