code: private void addRemoteRepoToConfig(GitClient client) throws InterruptedException {
          GitSCM gitScm = getJenkinsScm();
          for (RemoteConfig uc : gitScm.getRepositories()) {
              if (client.getRemoteUrl(uc.getName()) == null)
                  client.setRemoteUrl(uc.getName(), uc.getURIs().get(0).toPrivateASCIIString());
          }
      }
docs: /*
  In cause the remote repository is not exists in the git config file