すべてのバージョン
Fisheye 4.2 ドキュメントFisheye 4.1 ドキュメント
Fisheye 4.0 ドキュメント
その他...
When browsing commit messages or comments in FishEye, any issue IDs or Bug IDs that appear will be turned into hyperlinks, allowing you to easily click to see those referenced issues or pages. This capability is due to FishEye's ability to detect special substrings in commit messages, and hyperlink those substrings to other systems.
This is particularly useful if you use an issue tracking system, and put the issue identifiers into your commit messages. The 'Linkers' repository option (Administration > Repository Defaults > Linkers, or Administration > View Repository List > View (next to your REPO) > Linkers) allows you to define the substrings and their related URLs.
Any linkers defined in the repository defaults are added to each individual repository.
Here are some examples of how to create simple linkers.
If you have already set up JIRA integration, ignore the following instructions.
Regex: [a-zA-Z]{2,}-\d+ Href: http://jirahost:8080/browse/${0}
jirahost
with the hostname of the desired JIRA instance.Regex: (JRA|CONF|CRUC)-\d+ Href: http://jirahost:8080/browse/${0}
jirahost
with the hostname of the desired JIRA instance.Regex: (ABC)-[a-zA-Z]+-\d+ Href: http://bamboohost/browse/${0}
bamboohost
with the hostname of the desired bamboo instance.Regex: ^BUG: (\d+) Href: http://bugzilla/bugzilla/show_bug.cgi?id=${1}
Regex: (?i)bug[#|\s|:]*(\d+) Href: http://bugzilla/bugzilla/show_bug.cgi?id=${1}
FishEye uses the Java regular expression language, which is based on Perl 5 regular expressions.
Note: If you want your regex to be case insensitive, put (?i)
at the start of the regex.
To try out your regular expressions, you can use this online test page.
This is an advanced feature, intended for use by experienced developers only.
This example matches numbers that appear after a PR: and might be seperated by commas or 'and':
PR: 123 PR: 123 456 PR: 123, 456 PR: 123, 456 and 789
<syntaxdef> /PR:\s*((\d+\s*(and|,)?\s*)+)/i : { nummatcher(${1}); } context nummatcher { /\d+/ : { region { href="http://issues.apache.org/bugzilla/show_bug.cgi?id=${0}"; } } }
Understanding the SyntaxDef example