Пример #1
0
 @Override
 public void decorateCloneCommand(
     GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener, CloneCommand cmd)
     throws IOException, InterruptedException, GitException {
   if (shallow) {
     listener.getLogger().println("Using shallow clone");
     cmd.shallow();
   }
   if (noTags) {
     listener.getLogger().println("Avoid fetching tags");
     cmd.tags(false);
   }
   cmd.timeout(timeout);
   cmd.reference(build.getEnvironment(listener).expand(reference));
 }