Examples of BuildSonarAction


Examples of hudson.plugins.sonar.BuildSonarAction

   * Iterate previous build of this project and return the last Sonar URL
   */
  public static String getLastSonarUrl(AbstractProject<?, ?> project) {
    RunList<? extends Run<?, ?>> builds = project.getBuilds();
    for (Run<?, ?> run : builds) {
      BuildSonarAction action = run.getAction(BuildSonarAction.class);
      if (action != null) {
        return action.getUrlName();
      }
    }
    return null;
  }
View Full Code Here

Examples of hudson.plugins.sonar.BuildSonarAction

    return build;
  }

  private Run<?, ?> mockedRunWithSonarAction(String url) throws IOException {
    Run<?, ?> build = mock(Run.class);
    when(build.getAction(BuildSonarAction.class)).thenReturn(url != null ? new BuildSonarAction(url) : null);
    return build;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.