Hi Kristis
Thanks for ur reply
iam able to commit the files, now how to ask scmbug to append the
comments to bugid in bugzilla
with the details given by you i have configured my glue.conf as follows
iam pasting as follows, pl guide me after commiting with bugid to
getting appended comment under bugid, my bugzilla is up and running, with
any problem,
#aaaaaaaaaaaaaaaaaaaaaaaaaaa
# This is a template configuration file for the Scmbug glue.
#
$glue_configuration = {
#
# Flags whether the glue is active
#
enabled => 1,
#
# Describes the SCM system integrated with bug-tracking
#
scm => {
name => 'CVS',
# Comma(,)-separated list of paths to any binaries the SCM
# tool may need to use
binary_paths => '/usr/bin',
# This applies only to Subversion. It is recommended that tags
# are stored in the 'tags' directory, and branches in the
# 'branches' directory.
label_directories => [
'tags',
'branches'
],
# This applies only to Subversion. It is recommended that the
# main trunk work is stored in the 'trunk' directory.
main_trunk_directories => [
'trunk'
]
},
#
# Describes the daemon that will process the integration requests
#
daemon => {
location => '10.0.1.113',
port => 3872,
},
#
# List of policies the glue can enforce
#
policies => {
# Log template.
#
# Regular expressions that describe how the bug id and log
# comment will be identified must be defined.
#
# This policy is ALWAYS enabled
log_template => {
# The bugid_regex is a regular expression that must set
# the unnamed variable $1 to the bug number, or list of
# bug numbers. It is checked for a match as: m/$regex/s
bugid_regex => 'bug\s*',
# The bugid_split_regex is a regular expression describing
# how a list of bug ids will be split in individual bug
# numbers. It is split as: /$regex/
bugid_split_regex => '',
# The log_regex is a regular expression that must set the
# unnamed variable $1 to the log comment. It is checked
# for a match as: m/$regex/s
log_regex => 'bug.*?:\s*(.*)'
},
#
# Presence of bug ids. There are 3 options:
#
# - 'required'. A bug id must be specified during each
# activity. Activities without a bug id will not be permitted.
#
# - 'optional'. If a bug id is supplied, the activity will be
# integrated. If not the activity will be permitted to go
# through in the SCM system, but without bug-tracking
# integration.
#
# - 'none'. Never integrate activities regardless. This is
# different than flagging the glue inactive. The remaining
# policies are still enforced were applicable.
# (e.g. policy minimum_log_message_size).
#
# This policy is ALWAYS enabled
presence_of_bug_ids => {
value => 'optional'
},
# The SCM user issuing an activity must be the user to which
# the bug is assigned
valid_bug_owner => {
enabled => 1
},
# The bug against which an activity is issued must be in an
# open state
open_bug_state => {
enabled => 1
},
# Minimum number of characters log message.
minimum_log_message_size => {
enabled => 1,
size => 5
},
# Format of label names (tag or branch names) defined as
# regular expressions.
label_name => {
enabled => 1,
names => [
# Convention for official releases.
# For example:
# SCMBUG_RELEASE_0-2-7
'^.+?__[0-99]+_[0-999]+_[0-999]+$',
# Convention for development builds.
# For example:
# SCMBUG_BUILD_28_added_a_policies_mechanism
'^.+?_BUILD_[0-9]+_.+$',
# Convention for branches.
# For example:
# b_experimenting_with_policies_on_glue_side
'^b_.+$',
# Convention for private developer tags. Uses
# the developer's initials (either 2 or 3).
# For example:
# p_kpm_prior_to_bug353_stabilization_fixes
'^p_[a-zA-Z][a-zA-Z]?[a-zA-Z]_.+$'
]
},
# Valid product name. There are 2 options:
#
# - type is 'manual'. Each bug id supplied during commit
# messages must be filed against the product name
# specified in value.
#
# - type is 'auto'. The product name will be
# autodetected. Value must be a comma(,)-separated list of
# regular expressions. Each regular expression must set the
# unnamed variable $1 to the product name.
valid_product_name => {
enabled => 1,
type => 'manual',
value => 'AKPRODUCT'
},
# Send an email after a successful activity (both committing
# and labeling).
mail_on_success => {
enabled => 0,
# Sending email when a tag is moved or deleted in CVS can
# be annoying, since multiple emails are sent per
# directory(but not when a tag is added). mail_on_label
# can disable that behavior.
mail_on_label => 1,
values => {
# Must be a valid email address. Can remain empty if
# other users should be notified.
To => '[EMAIL PROTECTED]',
# Must be a valid email address. Can remain empty if
# mail_also_appears_from_scm_user is enabled.
From => 'Scmbug <[EMAIL PROTECTED]>',
# Defaults to localhost if left empty
Smtp => '10.0.1.116'
},
# Make the email also appear to have been sent by the SCM
# user.
mail_also_appears_from_scm_user => 1,
# List of users that will be notified
mail_scm_user => 1,
mail_bug_owner => 1,
mail_bug_reporter => 1,
mail_bug_monitors => 1,
mail_product_owners => 1
}
}
};
with regards
D.Chandra Shaker
On 5/12/07, Kristis Makris <[EMAIL PROTECTED]> wrote:
Hi Chandra,
On Sat, 2007-05-12 at 09:50 +0530, Chandra Shaker Deverkonda wrote:
>
> 1) how to write bug id suitable for this regular expressions, what
> ever value i put in commit message iam getting error,
Don't modify the regular expressions at all, and write a log message
like the example in:
http://files.mkgnu.net/files/scmbug/SCMBUG_RELEASE_0-19-13/manual/html-single/manual.html#FIG-LOG-TEMPLATE-EXAMPLE
> Problem:2
> mapping_values => {
> enabled => 1,
> values => {
> 'educeit' => '[EMAIL PROTECTED]',
>
> In my understanding i thought like if ldap users, or users who can
> dont satisfy regex, are not available we can map the users directly
> like above, i dont know myway of writing user is wrong iam getting the
> following error
Your configuration looks correct. Make sure you also have:
mappings => {
# Enable SCM username translation. This flag must be
# turned on for any of the mappings that follow to apply.
enabled => 1,
I believe this is disabled by default.
> ** Scmbug error 7: Username 'educeit' could not be translated
Did you restart the daemon ?
--
D.Chandra Shaker
Sr.Linux Admin
REDHAT CERTIFIED ENGINEER
9989888853
కిరణానికి చీకటి లేదు......... సిరిమువ్వకి మౌనం లేదు........... చిరునవ్వుకి
మరణంలేదు..... మన స్నేహనికి అంతంలేదు..... మరిచే స్నేహం చెయ్యకు......... చేసే
స్నేహం మరవకు
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users