in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java [2027:2047]
private synchronized List<String> getAWSDeviceFarmTestSpec(String projectName) {
testSpecCache.clear();
List<String> testSpecNames = testSpecCache.get(projectName);
if (testSpecNames == null || testSpecNames.isEmpty()) {
AWSDeviceFarm adf = getAWSDeviceFarm();
try {
List<Upload> testSpecFiles = adf.getTestSpecs(projectName);
testSpecNames = new ArrayList<String>();
for (Upload testSpec : testSpecFiles) {
testSpecNames.add(testSpec.getName());
}
Collections.sort(testSpecNames, String.CASE_INSENSITIVE_ORDER);
} catch (AWSDeviceFarmException e) {
}
testSpecCache.put(projectName, testSpecNames);
}
return testSpecNames;
}