Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: buildnumber-maven-plugin-1.0, 1.1, 1.2
-
Fix Version/s: None
-
Labels:None
-
Environment:MacOS X
-
Patch Submitted:Yes
-
Number of attachments :
Description
Plugin tries to obtain branch from URL, which doesn't work with git.
Steps to reproduce:
1. Add the following section to a pom build in a git repository
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
2. Look at build output - branch is always identified as UNKNOWN
Patch attached (works, but might be questionable - I'm definitely not a maven plugin expert).
Issue Links
- duplicates
-
MBUILDNUM-66
Git - problems with scmBranch resolving
-
Activity
Anders Hammar
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 1.2 [ 18465 ] |
Anders Hammar
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Duplicate [ 3 ] |
Anders Hammar
made changes -
| Link | This issue duplicates MBUILDNUM-66 [ MBUILDNUM-66 ] |