@Test public void toRemoteAlias() { Assert.assertEquals("origin-OracyX45LTLgEE14zEKVWpi-CTg=", JGitScm.toRemoteAlias("https: }
static String toRemoteAlias(String url) { try { final MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1"); sha1Digest.update(url.getBytes(StandardCharsets.UTF_8)); final byte[] bytes = sha1Digest.digest(); return "origin-" + Base64.getUrlEncoder().encodeToString(bytes); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } }
JGitScm implements Scm { static String toRemoteAlias(String url) { try { final MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1"); sha1Digest.update(url.getBytes(StandardCharsets.UTF_8)); final byte[] bytes = sha1Digest.digest(); return "origin-" + Base64.getUrlEncoder().encodeToString(bytes); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } } }
JGitScm implements Scm { static String toRemoteAlias(String url) { try { final MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1"); sha1Digest.update(url.getBytes(StandardCharsets.UTF_8)); final byte[] bytes = sha1Digest.digest(); return "origin-" + Base64.getUrlEncoder().encodeToString(bytes); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } }  }
JGitScm implements Scm { static String toRemoteAlias(String url) { try { final MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1"); sha1Digest.update(url.getBytes(StandardCharsets.UTF_8)); final byte[] bytes = sha1Digest.digest(); return "origin-" + Base64.getUrlEncoder().encodeToString(bytes); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } }  static String getScmGitPrefix(); static String getSrcdepsWorkingBranch(); @Override String checkout(BuildRequest request); @Override boolean supports(String url); }
JGitScm implements Scm { static String toRemoteAlias(String url) { try { final MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1"); sha1Digest.update(url.getBytes(StandardCharsets.UTF_8)); final byte[] bytes = sha1Digest.digest(); return "origin-" + Base64.getUrlEncoder().encodeToString(bytes); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } }  static String getScmGitPrefix(); static String getSrcdepsWorkingBranch(); @Override String checkout(BuildRequest request); @Override boolean supports(String url);  }