Search in sources :

Example 1 with SVNConfiguration

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);
}
Also used : SVNConfiguration(net.nemerosa.ontrack.extension.svn.model.SVNConfiguration)

Example 2 with SVNConfiguration

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;
}
Also used : SVNConfiguration(net.nemerosa.ontrack.extension.svn.model.SVNConfiguration)

Aggregations

SVNConfiguration (net.nemerosa.ontrack.extension.svn.model.SVNConfiguration)2