Skip to content

Commit 8a0b932

Browse files
authored
Merge pull request #49 from egineering-llc/hotfix/1.5.2
Hotfix/1.5.2
2 parents 1a03854 + d6742b5 commit 8a0b932

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<groupId>com.e-gineering</groupId>
1010
<artifactId>gitflow-helper-maven-plugin</artifactId>
1111

12-
<version>1.5.1</version>
12+
<version>1.5.2</version>
1313
<packaging>maven-plugin</packaging>
1414

1515
<name>gitflow-helper-maven-plugin</name>

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ protected void execute(final GitBranchType type, final String gitBranch, final S
4747
gitURLExpression = "${env.GIT_URL}";
4848
}
4949
String gitURL = resolveExpression(gitURLExpression);
50+
if (!gitURL.startsWith("scm:git:")) {
51+
gitURL = "scm:git:" + gitURL;
52+
}
5053
getLog().debug("gitURLExpression: '" + gitURLExpression + "' resolved to: '" + gitURL + "'");
5154
ExpansionBuffer eb = new ExpansionBuffer(gitURL);
5255
if (!eb.hasMoreLegalPlaceholders()) {
@@ -63,7 +66,8 @@ protected void execute(final GitBranchType type, final String gitBranch, final S
6366
goal("tag"),
6467
configuration(
6568
element(name("tag"), tag),
66-
element(name("developerConnectionUrl"), "scm:git:" + gitURL)
69+
element(name("connectionType"), "developerConnection"),
70+
element(name("developerConnectionUrl"), gitURL)
6771
),
6872
executionEnvironment(
6973
project,

0 commit comments

Comments
 (0)