protected void run()

in src/main/java/com/ericsson/gerrit/plugins/gcconductor/command/AddToQueue.java [63:81]


  protected void run() throws UnloggedFailure {
    try {
      Path repositoryPath = Paths.get(repository);
      if (repositoryPath.toFile().exists()) {
        repositoryPath = repositoryPath.toRealPath();
      }
      if (!FileKey.isGitRepository(repositoryPath.toFile(), FS.DETECTED)) {
        repositoryPath = resolvePath();
      }
      repository = repositoryPath.toString();
      queue.add(repository, hostName);
      if (first) {
        queue.bumpToFirst(repository);
      }
      stdout.println(String.format("%s was added to GC queue", repository));
    } catch (IOException | GcQueueException e) {
      throw die(e);
    }
  }