@Mojo(name="set-sonar-execution-start",
aggregator=true)
public class SonarMavenInitSonarExecutionStartMojo
extends org.apache.maven.plugin.AbstractMojo
Created by Vandeperre Maarten on 29/04/2016.
| Modifier and Type | Field and Description |
|---|---|
protected String |
branchName |
protected org.apache.maven.project.MavenProject |
project |
protected String |
qualityGateName |
protected String |
sonarKey |
protected String |
sonarPassword |
protected String |
sonarServer |
protected String |
sonarUser |
| Constructor and Description |
|---|
SonarMavenInitSonarExecutionStartMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Set the sonar.execution.start property to the last run timestamp (if the property is not defined).
|
@Parameter(property="sonar.host.url",
required=true)
protected String sonarServer
@Parameter(property="sonar.projectKey") protected String sonarKey
@Parameter(property="sonar.login",
required=true)
protected String sonarUser
@Parameter(property="sonar.password",
required=true)
protected String sonarPassword
@Parameter(property="sonar.branch") protected String branchName
@Parameter(property="sonar.qualitygate",
required=true)
protected String qualityGateName
@Component protected org.apache.maven.project.MavenProject project
public SonarMavenInitSonarExecutionStartMojo()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2016. All rights reserved.