The Build Information tool provides access to the build history for an application, showing commits and other information. You can configure external services, such as GitHub, Hudson, and JIRA, allowing you to reference bugs you have fixed and code you have changed.
When fixing a JIRA bug, add a reference to the bug code (such as
ABC-123) to the commit message. This is then linked automatically in the Build Information tool. You can add multiple bug references to a single commit, and all will be linked individually.
Add the following to a Maven project’s
pom.xml file to configure the build tool:
<issueManagement> <system>JIRA</system> <url>JIRA_URL_HERE</url> </issueManagement> <scm> <connection>scm:git:ssh://firstname.lastname@example.org/organization/repo-name.git</connection> <developerconnection>scm:git:ssh://email@example.com/organization/repo-name.git</developerconnection> <url>https://github.com/organization/repo-name</url> </scm>
The above syntax specifies the SSH protocol. You can specify other protocols supported by Maven’s implementation for source-control management. For examples, see SCM Implementation: Git.
SCM Implementation: GitSCM Implementation: GitSCM Implementation: Git