jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Mojo Build Number Maven Plugin
  • Mojo Build Number Maven Plugin
  • MBUILDNUM-87

Branch is always UNKNOWN with git

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    1

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).

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    fix-git-branch.patch
    10/Feb/12 11:23 PM
    2 kB
    Vincent Seguin

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MBUILDNUM-66 Git - problems with scmBranch resolving

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Anders Hammar made changes - 05/Dec/12 8:00 AM
Field Original Value New Value
Affects Version/s 1.2 [ 18465 ]
Anders Hammar made changes - 05/Dec/12 8:01 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Duplicate [ 3 ]
Anders Hammar made changes - 05/Dec/12 8:02 AM
Link This issue duplicates MBUILDNUM-66 [ MBUILDNUM-66 ]

People

  • Assignee:
    Unassigned
    Reporter:
    Vincent Seguin
Vote (7)
Watch (8)

Dates

  • Created:
    10/Feb/12 11:23 PM
    Updated:
    05/Dec/12 8:02 AM
    Resolved:
    05/Dec/12 8:01 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.