new ScmCredentials(settingsDecrypter, settings, userName, password,
privateKey, passphrase);
final ScmControl scmControl =
new ScmControl(failOnLocalModifications, ignoreDotFilesInBaseDir,
offline, addScmInfo, validateCheckout, failOnMissingRevision);
final ScmInfo scmInfo =
new ScmInfo(scmManager, connectionType, scmDateFormat, basedir,
scmCredentials, tagBase, queryRangeInDays, buildDatePattern,
scmControl, StringUtils.isNotBlank(remoteVersion) ? new ScmBranch(
remoteVersion) : null);
return scmInfo;
}