in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java [1999:2018]
private synchronized List<String> getAWSDeviceFarmDevicePools(String projectName) {
List<String> poolNames = poolsCache.get(projectName);
if (poolNames == null || poolNames.isEmpty()) {
AWSDeviceFarm adf = getAWSDeviceFarm();
try {
List<DevicePool> pools = adf.getDevicePools(projectName);
poolNames = new ArrayList<String>();
for (DevicePool pool : pools) {
poolNames.add(pool.getName());
}
Collections.sort(poolNames, String.CASE_INSENSITIVE_ORDER);
} catch (AWSDeviceFarmException e) {
}
poolsCache.put(projectName, poolNames);
}
return poolNames;
}