in rake-runner-agent/src/jetbrains/buildServer/agent/rakerunner/RakeTasksBuildService.java [184:210]
private void validateRunnerParams(@NotNull final RakeRunnerUtils.RubyConfigMode interpreterConfigMode,
@NotNull final Map<String, String> runParams,
@NotNull final SharedParams sharedParams) throws MyBuildFailureException {
switch (interpreterConfigMode) {
case DEFAULT: {
if (sharedParams.isSetted()) {
// check that params were applied
if (!sharedParams.isApplied()) {
throw new InvalidConfigurationException(
"Ruby interpreter is configured outside Rake build runner but configuration settings weren't applied. No sense to launch rake.",
false);
}
}
break;
}
case INTERPRETER_PATH:
if (StringUtil.isEmpty(RakeRunnerUtils.getRubySdkPath(runParams))) {
throw new InvalidConfigurationException("Ruby interpreter path isn't specified.", false);
}
break;
case RVM:
if (StringUtil.isEmpty(RakeRunnerUtils.getRVMSdkName(runParams))) {
throw new InvalidConfigurationException("RVM Ruby interpreter name isn't specified.", false);
}
break;
}
}