in jenkins-pipeline-shared-libraries/vars/githubscm.groovy [43:56]
def getRepositoryScm(String repository, String author, String branches, String credentialId = 'kie-ci') {
def repositoryScm = resolveRepository(repository, author, branches, true, credentialId)
dir("githubscm-get-repository-${repository}") {
try {
checkout repositoryScm
} catch (Exception ex) {
println "[WARNING] Branches [${branches}] from repository ${repository} not found in ${author} organisation."
repositoryScm = null
} finally {
deleteDir()
}
}
return repositoryScm
}