Search in sources :

Example 6 with PluginConfigImpl

use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.

the class AgentConfigPluginTest method should_not_use_native_ssh_by_default.

public void should_not_use_native_ssh_by_default() throws VcsException {
    PluginConfigImpl config = getPluginConfig();
    assertFalse(config.isUseNativeSSH());
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 7 with PluginConfigImpl

use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.

the class AgentConfigPluginTest method test_path_to_git.

public void test_path_to_git() throws VcsException {
    assertEquals("git", getPluginConfig().getPathToGit());
    assertEquals("/usr/bin/git", new PluginConfigImpl(myAgentConfig, myBuild, getVcsRoot(), new GitExec("/usr/bin/git", GitVersion.MIN)).getPathToGit());
}
Also used : GitExec(jetbrains.buildServer.buildTriggers.vcs.git.command.GitExec) PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 8 with PluginConfigImpl

use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.

the class AgentConfigPluginTest method build_mirror_settings_take_precedence_over_root__alternates.

public void build_mirror_settings_take_precedence_over_root__alternates() throws Exception {
    myBuildSharedConfigParameters.put(PluginConfigImpl.USE_ALTERNATES, "true");
    GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "false");
    PluginConfigImpl config = getPluginConfig(root);
    assertTrue(config.isUseAlternates(root));
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 9 with PluginConfigImpl

use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.

the class AgentConfigPluginTest method should_not_use_local_mirrors_by_default.

public void should_not_use_local_mirrors_by_default() throws Exception {
    GitVcsRoot root = gitVcsRoot();
    PluginConfigImpl config = getPluginConfig(root);
    assertFalse(config.isUseLocalMirrors(root));
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 10 with PluginConfigImpl

use of jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl in project teamcity-git by JetBrains.

the class AgentConfigPluginTest method when_mirrors_are_enabled_in_vcs_root_mirrors_without_alternates_can_be_used.

public void when_mirrors_are_enabled_in_vcs_root_mirrors_without_alternates_can_be_used() throws Exception {
    myBuildSharedConfigParameters.put(PluginConfigImpl.VCS_ROOT_MIRRORS_STRATEGY, PluginConfigImpl.VCS_ROOT_MIRRORS_STRATEGY_MIRRORS_ONLY);
    GitVcsRoot root = gitVcsRoot(Constants.CHECKOUT_POLICY, "true");
    PluginConfigImpl config = getPluginConfig(root);
    assertFalse(config.isUseAlternates(root));
    assertTrue(config.isUseLocalMirrors(root));
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Aggregations

PluginConfigImpl (jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)12 GitExec (jetbrains.buildServer.buildTriggers.vcs.git.command.GitExec)1