Search in sources :

Example 1 with PluginConfigImpl

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

the class AgentConfigPluginTest method test_change_use_local_mirrors.

public void test_change_use_local_mirrors() throws Exception {
    myBuildSharedConfigParameters.put("teamcity.git.use.local.mirrors", "true");
    GitVcsRoot root = gitVcsRoot();
    PluginConfigImpl config = getPluginConfig(root);
    assertTrue(config.isUseLocalMirrors(root));
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 2 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__mirrors.

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

Example 3 with PluginConfigImpl

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

the class AgentConfigPluginTest method test_idle_timeout.

public void test_idle_timeout() throws VcsException {
    myBuildSharedConfigParameters.put("teamcity.git.idle.timeout.seconds", "60");
    PluginConfigImpl config = getPluginConfig();
    assertEquals(60, config.getIdleTimeoutSeconds());
}
Also used : PluginConfigImpl(jetbrains.buildServer.buildTriggers.vcs.git.agent.PluginConfigImpl)

Example 4 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_alternates_should_be_used.

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

Example 5 with PluginConfigImpl

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

the class AgentConfigPluginTest method test_default_idle_timeout.

public void test_default_idle_timeout() throws VcsException {
    PluginConfigImpl config = getPluginConfig();
    assertEquals(PluginConfig.DEFAULT_IDLE_TIMEOUT, config.getIdleTimeoutSeconds());
}
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