The git plugin doesn't provide an exact match for your use case, but there
are some things you can configure in the plugin which may still help you
achieve your stated goal "to help save time spent in cloning everything
from remote repos".
The "Advanced clone behaviours" section in the "Additional
We had a job to poll and fetch updates from a remote git repo. Recently we
have a mirror repo set locally.
But the locally set repo lags behind the remote one by an hour or so.
So the idea was to re-configure the jenkins job in such a way that:
1) it clones from the locally set repo first ( if t