Manual Reference Pages - SVN::HOOKS::JIRAACCEPTANCE (3)
SVN::Hooks::JiraAcceptance - Integrate Subversion with the JIRA ticketing system.
This SVN::Hooks plugin is deprecated. Please, consider using the
SVN::Hooks::CheckJira plugin instead.
This plugin was derived from version 1.3 of the JIRA Commit
When enabled, it requires that any commits affecting some parts of the
repository structure must make reference to valid JIRA issues in the
commit log message. JIRA issues are referenced by their ids which
consists of a sequence of uppercase letters separated by an hyfen from
a sequence of digits. E.g., CDS-123, RT-1, and SVN-97.
Its active in the pre-commit hook.
Its configured by the following directives.
JIRA_CONFIG(BASEURL, LOGIN, PASSWORD)
This directive specify how to connect to the JIRA server by specifying
its base URL and the login credentials of a user who has browsing
By default the JIRA references are looked for in the commit log
message as a whole. Sometimes this can be suboptimal because the user
can introduce in the message some text that inadvertently looks like a
JIRA reference whithout being so.
With this directive, the log message is matched against the REGEXP and
only the first group matched (i.e., the part of the message captured
by the first parenthesis ($1)) is used to look for JIRA
references. Moreover, you can pass a help MESSAGE that is shown to the
user in case the JIRA test fails.
"The JIRA references must be inside brackets at the beginning of the message.",
This directive tells what parts of the repository structure must be
integrated with what JIRA projects.
During a commit, all files being changed are tested against the
REGEXP. If at least one of them matches, then the log message must
contain references to the PROJECT_KEYS.
PROJECT_KEYS can contain multiple comma-separated JIRA project keys
like TST,ARP. If you specify multiple keys, the commit will be
accepted if at least one project listed accepts it. Or you can
specify * to force using the global commit acceptance settings if
you dont want to specify any exact project key.
JIRA_ACCEPTANCE(qr/^(trunk|branches/fix)/ => CDS,TST);
Gustavo L. de M. Chaves <email@example.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by CPqD <www.cpqd.com.br>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
|perl v5.20.3 ||SVN::HOOKS::JIRAACCEPTANCE (3) ||2015-08-29 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.