public GitSCMSource build()

in src/main/java/org/apache/jenkins/gitpubsub/ASFGitSCMSourceBuilder.java [53:64]


    public GitSCMSource build() {
        GitSCMSource source = new GitSCMSource(server()+"/"+ Util.rawEncode(projectName())+".git");
        source.withId(id());
        List<SCMSourceTrait> traits = new ArrayList<>(traits());
        try {
            traits.add(new GitBrowserSCMSourceTrait(new GitWeb(server+"?p="+ URLEncoder.encode(projectName()+".git", "UTF-8"))));
        } catch (UnsupportedEncodingException e) {
            throw new AssertionError("JLS mandates UTF-8 as supported encoding");
        }
        source.setTraits(traits);
        return source;
    }