use of com.thoughtworks.go.presentation.pipelinehistory.Environment in project gocd by gocd.
the class EnvironmentService method getEnvironments.
public List<Environment> getEnvironments(Username username) throws NoSuchEnvironmentException {
List<CaseInsensitiveString> environmentNames = environmentConfigService.environmentNames();
ArrayList<Environment> environments = new ArrayList<>();
for (CaseInsensitiveString environmentName : environmentNames) {
addEnvironmentFor(environmentName, username, environments);
}
return environments;
}
Aggregations