use of net.nemerosa.ontrack.extension.svn.model.SVNConfiguration in project ontrack by nemerosa.
the class SVNProjectConfigurationPropertyType method fromStorage.
@Override
public SVNProjectConfigurationProperty fromStorage(JsonNode node) {
String configurationName = node.path("configuration").asText();
String projectPath = node.path("projectPath").asText();
// Looks the configuration up
SVNConfiguration configuration = configurationService.getConfiguration(configurationName);
// Validates the project path
validateNotBlank(projectPath, "The project path must not be empty");
// OK
return new SVNProjectConfigurationProperty(configuration, projectPath);
}
use of net.nemerosa.ontrack.extension.svn.model.SVNConfiguration in project ontrack by nemerosa.
the class IndexationServiceImpl method indexFromLatest.
/**
* Indexation from latest
*/
@Override
public Ack indexFromLatest(String name) {
SVNConfiguration configuration = configurationService.getConfiguration(name);
jobScheduler.fireImmediately(getIndexationJobKey(configuration));
return Ack.OK;
}
Aggregations