in deploy-runner-server/src/main/java/jetbrains/buildServer/deployer/server/SSHExecRunType.java [44:64]
public PropertiesProcessor getRunnerPropertiesProcessor() {
return new SSHDeployerPropertiesProcessor() {
@Override
public Collection<InvalidProperty> process(Map<String, String> properties) {
final Collection<InvalidProperty> invalidProperties = new HashSet<InvalidProperty>();
if (jetbrains.buildServer.util.StringUtil.isEmptyOrSpaces(properties.get(DeployerRunnerConstants.PARAM_USERNAME)) &&
!SSHRunnerConstants.AUTH_METHOD_DEFAULT_KEY.equals(properties.get(SSHRunnerConstants.PARAM_AUTH_METHOD))) {
invalidProperties.add(new InvalidProperty(DeployerRunnerConstants.PARAM_USERNAME, "Username must be specified."));
}
if (jetbrains.buildServer.util.StringUtil.isEmptyOrSpaces(properties.get(DeployerRunnerConstants.PARAM_TARGET_URL))) {
invalidProperties.add(new InvalidProperty(DeployerRunnerConstants.PARAM_TARGET_URL, "The target must be specified."));
}
if (jetbrains.buildServer.util.StringUtil.isEmptyOrSpaces(properties.get(SSHRunnerConstants.PARAM_COMMAND))) {
invalidProperties.add(new InvalidProperty(SSHRunnerConstants.PARAM_COMMAND, "Remote command must be specified"));
}
return invalidProperties;
}
};
}