Package jetbrains.buildServer.tools.impl
Class ParameterReferencesToolUsageDetectorImpl
- java.lang.Object
-
- jetbrains.buildServer.tools.impl.ParameterReferencesToolUsageDetectorImpl
-
- All Implemented Interfaces:
ParameterReferencesToolUsageDetector
public class ParameterReferencesToolUsageDetectorImpl extends Object implements ParameterReferencesToolUsageDetector
- Since:
- 2019.1
- Author:
- Maxim Zaytsev (maxim.zaytsev@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description ParameterReferencesToolUsageDetectorImpl(ServerToolManager serverToolManager, DefaultToolFinder defaultToolFinder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ToolVersion>
getToolUsages(SRunningBuild build, Set<String> ignoredParameterKeys)
tries to find usages of tools in specified build by checking referenced parameters in build settingsList<ToolVersion>
getToolUsagesFromParameters(SRunningBuild build, Map<String,String> parameters)
tries to find usages of tools in specified build by checking referenced parameters in build settings.
-
-
-
Constructor Detail
-
ParameterReferencesToolUsageDetectorImpl
public ParameterReferencesToolUsageDetectorImpl(@NotNull ServerToolManager serverToolManager, @NotNull DefaultToolFinder defaultToolFinder)
-
-
Method Detail
-
getToolUsagesFromParameters
@NotNull public List<ToolVersion> getToolUsagesFromParameters(@NotNull SRunningBuild build, @NotNull Map<String,String> parameters)
Description copied from interface:ParameterReferencesToolUsageDetector
tries to find usages of tools in specified build by checking referenced parameters in build settings. This method finds references only in specified parameters map- Specified by:
getToolUsagesFromParameters
in interfaceParameterReferencesToolUsageDetector
- Parameters:
build
- specified buildparameters
- map of parameters- Returns:
- list of tools referenced in build settings
-
getToolUsages
@NotNull public List<ToolVersion> getToolUsages(@NotNull SRunningBuild build, @NotNull Set<String> ignoredParameterKeys)
Description copied from interface:ParameterReferencesToolUsageDetector
tries to find usages of tools in specified build by checking referenced parameters in build settings- Specified by:
getToolUsages
in interfaceParameterReferencesToolUsageDetector
- Parameters:
build
- specified build- Returns:
- list of tools referenced in build settings
-
-