in teamcity-helm-plugin-server/src/main/java/jetbrains/buildServer/helm/RollbackCommand.java [39:52]
public PropertiesProcessor getPropertiesProcessor() {
return properties -> {
List<InvalidProperty> result = new Vector<InvalidProperty>();
final String releaseName = properties.get(HELM_ROLLBACK_COMMAND_NAME + HelmConstants.RELEASE_NAME);
if (PropertiesUtil.isEmptyOrNull(releaseName)) {
result.add(new InvalidProperty(HELM_ROLLBACK_COMMAND_NAME + HelmConstants.RELEASE_NAME, "Release name must be specified"));
}
final Integer revision = PropertiesUtil.parseInt(properties.get(HELM_ROLLBACK_COMMAND_NAME + HelmConstants.REVISION));
if (revision == null || revision <= 0) {
result.add(new InvalidProperty(HELM_ROLLBACK_COMMAND_NAME + HelmConstants.REVISION, "Revision must be specified as positive integer"));
}
return result;
};
}