String apiUrl = null;
String orgName = getName(); //default
String credentialId = null;
StringBuilder sb = new StringBuilder();
if (scmConfig != null) {
<BUG>apiUrl = scmConfig.getUri();
if (scmConfig.getConfig().get("orgName") instanceof String) {</BUG>
orgName = (String) scmConfig.getConfig().get("orgName");
}
credentialId = scmConfig.getCredentialId();

String apiUrl = null;
String orgName = getName(); //default
String credentialId = null;
StringBuilder sb = new StringBuilder();
if (scmConfig != null) {
apiUrl = StringUtils.defaultIfBlank(scmConfig.getUri(), GithubScm.DEFAULT_API_URI);
if (scmConfig.getConfig().get("orgName") instanceof String) {
orgName = (String) scmConfig.getConfig().get("orgName");
}
credentialId = scmConfig.getCredentialId();
