Package com.pawelmaslyk.gerritintegration4sonar.gerrit

Examples of com.pawelmaslyk.gerritintegration4sonar.gerrit.GerritCommit


    if (connection instanceof EmptyGerritConnection) {
      logger.info("Gerrit has not been notified, because the gerrit connection has not been defined, please check plugin settings");
      return;
    }

    GerritCommit commit = GerritCommitFactory.createGerritCommitFromSonarSettings(settings);
    String dashboardUrl = getDashboardUrl(project);
    SonarAnalysisResult result = sonarResultEvaluator.getResult(context, dashboardUrl);

    if (commit instanceof EmptyGerritCommit) {
      logger.info("Gerrit has not been notified, because the commit information is missing, please check if all parameters are passed while running sonar");
View Full Code Here


  @Test
  public void testIfOneCanConnectToGerrit() throws IOException {

    //given
    GerritConnection connection = GerritConnectionFactory.createGerritConnection(authKey, authKeyPassword, userName, sshPort, hostName);
    GerritCommit commit = GerritCommitFactory.createGerritCommitFromSonarSettings("gerrit-integration-plugin", "1", "1");
    SshConnection ssh = SshConnectionFactory.getConnection(connection);

    //when
    //the analysis is run, the local sonar instance must be up
    final SonarAnalysisResult result = new SonarAnalysisResult("test", SonarAnalysisStatus.ERRORS);
View Full Code Here

TOP

Related Classes of com.pawelmaslyk.gerritintegration4sonar.gerrit.GerritCommit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.