Class GerritRevision
java.lang.Object
org.jenkinsci.plugins.sonargerrit.gerrit.GerritRevision
- All Implemented Interfaces:
Revision
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class GerritRevision
extends Object
implements Revision
Project: Sonar-Gerrit Plugin Author: Tatiana Didik Created: 28.11.2017 16:26
$Id$
-
Method Summary
Modifier and TypeMethodDescriptionfetchFileToChangedLines(Set<String> filenames) Fetching a diff costs one Gerrit request per file, so only the given files are fetched.static GerritRevisionload(me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.RevisionApi revision)
-
Method Details
-
load
public static GerritRevision load(me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.api.changes.RevisionApi revision) throws me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.restapi.RestApiException - Throws:
me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.restapi.RestApiException
-
getChangedFiles
- Specified by:
getChangedFilesin interfaceRevision
-
fetchFileToChangedLines
public Map<String,Set<Integer>> fetchFileToChangedLines(Set<String> filenames) throws me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.restapi.RestApiException Fetching a diff costs one Gerrit request per file, so only the given files are fetched. Files absent from the revision are skipped.- Throws:
me.redaalaoui.gerrit_rest_java_client.thirdparty.com.google.gerrit.extensions.restapi.RestApiException
-