Skip to content

Commit ee4c6af

Browse files
committed
Merge pull request #28 from egineering-llc/bugfix/issue26
Bugfix/issue26
2 parents 16e3a7a + 59ffd98 commit ee4c6af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/e_gineering/maven/gitflowhelper/TagMasterMojo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ public class TagMasterMojo extends AbstractGitflowBranchMojo {
4242

4343
@Override
4444
protected void execute(final GitBranchType type, final String gitBranch, final String branchPattern) throws MojoExecutionException, MojoFailureException {
45-
if (type.equals(GitBranchType.MASTER)) {
45+
if (project.isExecutionRoot() && type.equals(GitBranchType.MASTER)) {
4646
if (gitURLExpression == null) {
4747
gitURLExpression = "${env.GIT_URL}";
4848
}
4949
String gitURL = resolveExpression(gitURLExpression);
50-
getLog().info("gitURLExpression: '" + gitURLExpression + "' resolved to: '" + gitURL + "'");
50+
getLog().debug("gitURLExpression: '" + gitURLExpression + "' resolved to: '" + gitURL + "'");
5151
ExpansionBuffer eb = new ExpansionBuffer(gitURL);
5252
if (!eb.hasMoreLegalPlaceholders()) {
53+
5354
getLog().info("Invoking scm:tag for CI build matching branchPattern: [" + branchPattern + "]");
5455

5556
// Use the execute mojo to run the maven-scm-plugin...

0 commit comments

Comments
 (0)