jetbrains.buildServer.serverSide.RunTypeRegistry Java Examples

The following examples show how to use jetbrains.buildServer.serverSide.RunTypeRegistry. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeployerRunTypeTest.java    From teamcity-deployer-plugin with Apache License 2.0 5 votes vote down vote up
@BeforeMethod
public void setUp() {
  myContext = new Mockery();
  final RunTypeRegistry registry = myContext.mock(RunTypeRegistry.class);
  final PluginDescriptor descriptor = myContext.mock(PluginDescriptor.class);
  myContext.checking(new Expectations() {{
    allowing(registry).registerRunType(with(aNonNull(SSHExecRunType.class)));
  }});
  createRunType(registry, descriptor);
}
 
Example #2
Source File: SQMSBeginRunType.java    From TeamCity.SonarQubePlugin with Apache License 2.0 5 votes vote down vote up
public SQMSBeginRunType(@NotNull final RunTypeRegistry runTypeRegistry,
                        @NotNull final PropertiesProcessorProvider propertiesProcessorProvider,
                        @NotNull final PluginDescriptor pluginDescriptor) {
    myPropertiesProcessorProvider = propertiesProcessorProvider;
    myPluginDescriptor = pluginDescriptor;
    runTypeRegistry.registerRunType(this);
}
 
Example #3
Source File: SQMSFinishRunType.java    From TeamCity.SonarQubePlugin with Apache License 2.0 5 votes vote down vote up
public SQMSFinishRunType(@NotNull final RunTypeRegistry runTypeRegistry,
                         @NotNull final PropertiesProcessorProvider propertiesProcessorProvider,
                         @NotNull final PluginDescriptor pluginDescriptor) {
    myPropertiesProcessorProvider = propertiesProcessorProvider;
    myPluginDescriptor = pluginDescriptor;
    runTypeRegistry.registerRunType(this);
}
 
Example #4
Source File: AllureRunType.java    From allure-teamcity with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public AllureRunType(
        @NotNull final RunTypeRegistry registry,
        @NotNull final PluginDescriptor descriptor) {
    this.pluginDescriptor = descriptor;
    registry.registerRunType(this);
}
 
Example #5
Source File: SSHExecRunType.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public SSHExecRunType(@NotNull final RunTypeRegistry registry,
                      @NotNull final PluginDescriptor descriptor) {
  registry.registerRunType(this);
  myDescriptor = descriptor;
}
 
Example #6
Source File: SmbDeployerRunType.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public SmbDeployerRunType(@NotNull final RunTypeRegistry registry,
                          @NotNull final PluginDescriptor descriptor) {
  registry.registerRunType(this);
  myDescriptor = descriptor;
}
 
Example #7
Source File: CargoDeployerRunType.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public CargoDeployerRunType(@NotNull final RunTypeRegistry registry,
                            @NotNull final PluginDescriptor descriptor) {
  registry.registerRunType(this);
  myDescriptor = descriptor;
}
 
Example #8
Source File: SSHDeployerRunType.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public SSHDeployerRunType(@NotNull final RunTypeRegistry registry,
                          @NotNull final PluginDescriptor descriptor) {
  myDescriptor = descriptor;
  registry.registerRunType(this);
}
 
Example #9
Source File: FtpDeployerRunType.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
public FtpDeployerRunType(@NotNull final RunTypeRegistry registry,
                          @NotNull final PluginDescriptor descriptor) {
  registry.registerRunType(this);
  myDescriptor = descriptor;
}
 
Example #10
Source File: SMBDeployerRunTypeTest.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
protected void createRunType(RunTypeRegistry registry, PluginDescriptor descriptor) {
  processor = new SmbDeployerRunType(registry, descriptor).getRunnerPropertiesProcessor();
}
 
Example #11
Source File: SSHExecRunTypeTest.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
protected void createRunType(RunTypeRegistry registry, PluginDescriptor descriptor) {
  myRunType = new SSHExecRunType(registry, descriptor);
}
 
Example #12
Source File: AnsibleRunType.java    From tc-ansible-runner with MIT License 4 votes vote down vote up
public AnsibleRunType(@NotNull final RunTypeRegistry reg, @NotNull final PluginDescriptor pluginDescriptor) {
    this.pluginDescriptor = pluginDescriptor;
    reg.registerRunType(this);
}
 
Example #13
Source File: SQRRunType.java    From TeamCity.SonarQubePlugin with Apache License 2.0 4 votes vote down vote up
public SQRRunType(@NotNull final RunTypeRegistry runTypeRegistry,
                  @NotNull final PropertiesProcessorProvider propertiesProcessorProvider) {
    myPropertiesProcessorProvider = propertiesProcessorProvider;
    runTypeRegistry.registerRunType(this);
}
 
Example #14
Source File: RunnerRegistrar.java    From TeamCity.Virtual with Apache License 2.0 4 votes vote down vote up
public RunnerRegistrar(@NotNull final RunTypeRegistry registry,
                       @NotNull final VMRunType runner) {
  registry.registerRunType(runner);
}
 
Example #15
Source File: DeployerRunTypeTest.java    From teamcity-deployer-plugin with Apache License 2.0 votes vote down vote up
protected abstract void createRunType(RunTypeRegistry registry, PluginDescriptor descriptor);