@Mojo(name="set-git-branch",
aggregator=true)
public class SonarMavenSetGitBranchMojo
extends org.apache.maven.plugin.AbstractMojo
Created by Vandeperre Maarten on 29/04/2016.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project |
| Constructor and Description |
|---|
SonarMavenSetGitBranchMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Set the sonar.branch property to the git branch name (if the property is not defined).
|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - will be thrown when something goes wrong while retrieving the git branch name.org.apache.maven.plugin.MojoFailureException - will not be thrownCopyright © 2016. All rights reserved.