in powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/PowerShellInfoProvider.java [88:107]
private void storePowershellToState(@NotNull String entryKey,
@NotNull Map<String, String> configurationParameters,
@NotNull String version,
@Nullable PowerShellBitness bitness,
@Nullable PowerShellEdition edition) {
final String pathKey = entryKey + PowerShellConstants.PATH_SUFFIX;
final String executableKey;
if (bitness == null){
executableKey = entryKey + PowerShellConstants.EXECUTABLE_SUFFIX;
} else {
executableKey = LegacyKeys.getExecutableKey(bitness);
}
final String shellHome = configurationParameters.get(pathKey);
final String executable = configurationParameters.get(executableKey);
if (shellHome != null && bitness != null && executable != null) {
myHolder.addShellInfo(entryKey, new PowerShellInfo(bitness, new File(shellHome), version, edition, executable));
}
}