jetbrains.buildServer.agent.BuildAgentConfiguration Java Examples

The following examples show how to use jetbrains.buildServer.agent.BuildAgentConfiguration. 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: UserUIDAndGIDImpl.java    From TeamCity.Virtual with Apache License 2.0 6 votes vote down vote up
public UserUIDAndGIDImpl(@NotNull final EventDispatcher<AgentLifeCycleListener> events) {

    events.addListener(new AgentLifeCycleAdapter(){
      @Override
      public void afterAgentConfigurationLoaded(@NotNull final BuildAgent agent) {
        final BuildAgentConfiguration configuration = agent.getConfiguration();

        if (configuration.getConfigurationParameters().get(VMConstants.DOCKER_PROPERTY) == null) return;
        if (!configuration.getSystemInfo().isUnix()) return;
        if (configuration.getSystemInfo().isWindows()) return;
        if (configuration.getSystemInfo().isMac()) return;

        detectSidAndGid();
      }
    });
  }
 
Example #2
Source File: AllureBuildServiceFactory.java    From allure-teamcity with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@NotNull
@Override
public AgentBuildRunnerInfo getBuildRunnerInfo() {

    return new AgentBuildRunnerInfo() {

        /** {@inheritDoc} */
        @NotNull
        @Override
        public String getType() { return RUN_TYPE; }

        /** {@inheritDoc} */
        @Override
        public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
            return true;
        }
    };
}
 
Example #3
Source File: WinDbgToolsDetector.java    From teamcity-symbol-server with Apache License 2.0 5 votes vote down vote up
@Override
public void agentInitialized(@NotNull BuildAgent agent) {
  final BuildAgentConfiguration config = agent.getConfiguration();
  if (!config.getSystemInfo().isWindows()) return;
  LOG.info("Searching WinDbg installation...");

  LOG.info("Searching the WinDbg as part of Windows 10 SDK");
  File winDbgHomeDir = searchSDK8AndLater(WIN_DBG_10_ROOT_ENTRY_NAME, WIN_SDK_10_ROOT_ENTRY_NAME, "10");
  if(winDbgHomeDir == null){
    LOG.info("Searching the WinDbg as part of Windows 8.1 SDK");
    winDbgHomeDir = searchSDK8AndLater(WIN_DBG_81_ROOT_ENTRY_NAME, WIN_SDK_81_ROOT_ENTRY_NAME, "8.1");
    if(winDbgHomeDir == null) {
      LOG.info("Searching the WinDbg as part of Windows 8 SDK");
      winDbgHomeDir = searchSDK8AndLater(WIN_DBG_8_ROOT_ENTRY_NAME, WIN_SDK_8_ROOT_ENTRY_NAME, "8");
    } if(winDbgHomeDir == null) {
      LOG.info("Searching the WinDbg as part of Windows 7 SDK");
      winDbgHomeDir = searchSDK7x();
    }
  }

  if(winDbgHomeDir == null) LOG.info("WinDbg tools were not found on this machine.");
  else{
    final String winDbgHomeDirAbsolutePath = winDbgHomeDir.getAbsolutePath();
    LOG.info("WinDbg tools were found on path " + winDbgHomeDirAbsolutePath);
    config.addConfigurationParameter(WIN_DBG_PATH, winDbgHomeDirAbsolutePath);
  }
}
 
Example #4
Source File: S3RegularFileUploader.java    From teamcity-s3-artifact-storage-plugin with Apache License 2.0 4 votes vote down vote up
public S3RegularFileUploader(@NotNull final BuildAgentConfiguration buildAgentConfiguration) {
  myBuildAgentConfiguration = buildAgentConfiguration;
}
 
Example #5
Source File: FtpDeployerRunnerInfo.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
  return true;
}
 
Example #6
Source File: SmbDeployerRunnerInfo.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
  return true;
}
 
Example #7
Source File: CargoDeployerRunnerInfo.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
  return true;
}
 
Example #8
Source File: SSHDeployerRunnerInfo.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
  return true;
}
 
Example #9
Source File: SSHExecRunnerInfo.java    From teamcity-deployer-plugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull BuildAgentConfiguration agentConfiguration) {
  return true;
}
 
Example #10
Source File: AnsibleRunServiceFactory.java    From tc-ansible-runner with MIT License 4 votes vote down vote up
@Override
public boolean canRun(BuildAgentConfiguration agentConfiguration) {
    return SystemInfo.isLinux;
}
 
Example #11
Source File: SonarQubeRunnerBuildRunner.java    From TeamCity.SonarQubePlugin with Apache License 2.0 4 votes vote down vote up
public boolean canRun(@NotNull BuildAgentConfiguration buildAgentConfiguration) {
    return true;
}
 
Example #12
Source File: SQMSBuildStartRunner.java    From TeamCity.SonarQubePlugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull final BuildAgentConfiguration buildAgentConfiguration) {
    return true;
}
 
Example #13
Source File: SQMSBuildFinishRunner.java    From TeamCity.SonarQubePlugin with Apache License 2.0 4 votes vote down vote up
@Override
public boolean canRun(@NotNull final BuildAgentConfiguration buildAgentConfiguration) {
    return true;
}