|
|
7521d1 |
From c43e0af711742ae8e5c6b38efc7c3dbf16e57f01 Mon Sep 17 00:00:00 2001
|
|
|
7521d1 |
From: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
7521d1 |
Date: Fri, 20 Feb 2015 03:14:54 +0100
|
|
|
7521d1 |
Subject: [PATCH] reporter-mantisbt: adds man pages for reporter-mantisbt
|
|
|
7521d1 |
|
|
|
7521d1 |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
7521d1 |
|
|
|
7521d1 |
Conflicts:
|
|
|
7521d1 |
doc/Makefile.am
|
|
|
7521d1 |
---
|
|
|
7521d1 |
doc/Makefile.am | 13 ++-
|
|
|
7521d1 |
doc/centos_report_event.conf.5 | 1 +
|
|
|
7521d1 |
doc/mantisbt.conf.txt | 18 +++
|
|
|
7521d1 |
doc/mantisbt_format.conf.txt | 18 +++
|
|
|
7521d1 |
doc/mantisbt_formatdup.conf.txt | 18 +++
|
|
|
7521d1 |
doc/report_CentOSBugTracker.conf.txt | 45 +++++++
|
|
|
7521d1 |
doc/report_centos.conf.txt | 41 +++++++
|
|
|
7521d1 |
doc/reporter-mantisbt.txt | 219 +++++++++++++++++++++++++++++++++++
|
|
|
7521d1 |
src/plugins/Makefile.am | 4 +
|
|
|
7521d1 |
src/workflows/Makefile.am | 12 ++
|
|
|
7521d1 |
10 files changed, 387 insertions(+), 2 deletions(-)
|
|
|
7521d1 |
create mode 100644 doc/centos_report_event.conf.5
|
|
|
7521d1 |
create mode 100644 doc/mantisbt.conf.txt
|
|
|
7521d1 |
create mode 100644 doc/mantisbt_format.conf.txt
|
|
|
7521d1 |
create mode 100644 doc/mantisbt_formatdup.conf.txt
|
|
|
7521d1 |
create mode 100644 doc/report_CentOSBugTracker.conf.txt
|
|
|
7521d1 |
create mode 100644 doc/report_centos.conf.txt
|
|
|
7521d1 |
create mode 100644 doc/reporter-mantisbt.txt
|
|
|
7521d1 |
|
|
|
7521d1 |
diff --git a/doc/Makefile.am b/doc/Makefile.am
|
|
|
7521d1 |
index da4785e..b574a41 100644
|
|
|
7521d1 |
--- a/doc/Makefile.am
|
|
|
7521d1 |
+++ b/doc/Makefile.am
|
|
|
7521d1 |
@@ -25,6 +25,7 @@ MAN1_TXT += reporter-print.txt
|
|
|
7521d1 |
MAN1_TXT += reporter-rhtsupport.txt
|
|
|
7521d1 |
MAN1_TXT += reporter-upload.txt
|
|
|
7521d1 |
MAN1_TXT += reporter-ureport.txt
|
|
|
7521d1 |
+MAN1_TXT += reporter-mantisbt.txt
|
|
|
7521d1 |
|
|
|
7521d1 |
MAN5_TXT =
|
|
|
7521d1 |
MAN5_TXT += anaconda_event.conf.txt
|
|
|
7521d1 |
@@ -37,6 +38,9 @@ MAN5_TXT += bugzilla_formatdup_anaconda.conf.txt
|
|
|
7521d1 |
MAN5_TXT += bugzilla_formatdup.conf.txt
|
|
|
7521d1 |
MAN5_TXT += bugzilla_format_kernel.conf.txt
|
|
|
7521d1 |
MAN5_TXT += bugzilla_format_libreport.conf.txt
|
|
|
7521d1 |
+MAN5_TXT += mantisbt.conf.txt
|
|
|
7521d1 |
+MAN5_TXT += mantisbt_format.conf.txt
|
|
|
7521d1 |
+MAN5_TXT += mantisbt_formatdup.conf.txt
|
|
|
7521d1 |
MAN5_TXT += emergencyanalysis_event.conf.txt
|
|
|
7521d1 |
MAN5_TXT += forbidden_words.conf.txt
|
|
|
7521d1 |
MAN5_TXT += mailx.conf.txt
|
|
|
7521d1 |
@@ -45,20 +49,25 @@ MAN5_TXT += print_event.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_Bugzilla.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_event.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_fedora.conf.txt
|
|
|
7521d1 |
+MAN5_TXT += report_centos.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_Logger.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_rhel.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_rhel_bugzilla.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_logger.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_mailx.conf.txt
|
|
|
7521d1 |
MAN5_TXT += report_uploader.conf.txt
|
|
|
7521d1 |
+MAN5_TXT += report_CentOSBugTracker.conf.txt
|
|
|
7521d1 |
MAN5_TXT += rhtsupport.conf.txt
|
|
|
7521d1 |
MAN5_TXT += rhtsupport_event.conf.txt
|
|
|
7521d1 |
MAN5_TXT += uploader_event.conf.txt
|
|
|
7521d1 |
MAN5_TXT += ureport.conf.txt
|
|
|
7521d1 |
|
|
|
7521d1 |
+MAN5_PREFORMATTED =
|
|
|
7521d1 |
+MAN5_PREFORMATTED += centos_report_event.conf.5
|
|
|
7521d1 |
+
|
|
|
7521d1 |
# Manual pages are generated from .txt via Docbook
|
|
|
7521d1 |
man1_MANS = ${MAN1_TXT:%.txt=%.1}
|
|
|
7521d1 |
-man5_MANS = ${MAN5_TXT:%.txt=%.5}
|
|
|
7521d1 |
+man5_MANS = ${MAN5_TXT:%.txt=%.5} ${MAN5_PREFORMATTED}
|
|
|
7521d1 |
|
|
|
7521d1 |
SUFFIXES = .1 .5
|
|
|
7521d1 |
|
|
|
7521d1 |
@@ -73,5 +82,5 @@ SUFFIXES = .1 .5
|
|
|
7521d1 |
--conf-file ../asciidoc.conf \
|
|
|
7521d1 |
-alibreport_version=$(PACKAGE_VERSION) -o $@ $<
|
|
|
7521d1 |
|
|
|
7521d1 |
-EXTRA_DIST = $(MAN1_TXT) $(MAN5_TXT)
|
|
|
7521d1 |
+EXTRA_DIST = $(MAN1_TXT) $(MAN5_TXT) $(MAN5_PREFORMATTED)
|
|
|
7521d1 |
CLEANFILES = $(man1_MANS)
|
|
|
7521d1 |
diff --git a/doc/centos_report_event.conf.5 b/doc/centos_report_event.conf.5
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..71c3fcb
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/centos_report_event.conf.5
|
|
|
7521d1 |
@@ -0,0 +1 @@
|
|
|
7521d1 |
+.so man5/report_event.conf.5
|
|
|
7521d1 |
diff --git a/doc/mantisbt.conf.txt b/doc/mantisbt.conf.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..d4ba605
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/mantisbt.conf.txt
|
|
|
7521d1 |
@@ -0,0 +1,18 @@
|
|
|
7521d1 |
+mantisbt.conf(5)
|
|
|
7521d1 |
+===============
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+mantisbt.conf - configuration file for libreport.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+This configuration file provides default configuration for 'reporter-mantisbt'.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+reporter-mantisbt(1)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHOR
|
|
|
7521d1 |
+------
|
|
|
7521d1 |
+* ABRT team
|
|
|
7521d1 |
diff --git a/doc/mantisbt_format.conf.txt b/doc/mantisbt_format.conf.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..860d911
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/mantisbt_format.conf.txt
|
|
|
7521d1 |
@@ -0,0 +1,18 @@
|
|
|
7521d1 |
+mantisbt_format.conf(5)
|
|
|
7521d1 |
+=======================
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+mantisbt_format.conf - configuration file for libreport.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+This configuration file provides definition of general formatting for new MantisBT issues.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+reporter-mantisbt(1)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHOR
|
|
|
7521d1 |
+------
|
|
|
7521d1 |
+* ABRT Team
|
|
|
7521d1 |
diff --git a/doc/mantisbt_formatdup.conf.txt b/doc/mantisbt_formatdup.conf.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..a617226
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/mantisbt_formatdup.conf.txt
|
|
|
7521d1 |
@@ -0,0 +1,18 @@
|
|
|
7521d1 |
+mantisbt_formatdup.conf(5)
|
|
|
7521d1 |
+==========================
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+mantisbt_formatdup.conf - configuration file for libreport.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+This configuration file provides definition of general formatting for duplicate MantisBT issues.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+reporter-mantisbt(1)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHOR
|
|
|
7521d1 |
+------
|
|
|
7521d1 |
+* ABRT Team
|
|
|
7521d1 |
diff --git a/doc/report_CentOSBugTracker.conf.txt b/doc/report_CentOSBugTracker.conf.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..6ba35d3
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/report_CentOSBugTracker.conf.txt
|
|
|
7521d1 |
@@ -0,0 +1,45 @@
|
|
|
7521d1 |
+report_CentOSBugTracker.conf(5)
|
|
|
7521d1 |
+===============================
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+report_CentOSBugTracker.conf - libreport's configuration file for 'report_CentOSBugTracker' events.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+This configuration file contains values for options defined in
|
|
|
7521d1 |
+/usr/share/libreport/events/report_CentOSBugTracker.xml
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Configuration file lines should have 'PARAM = VALUE' format. The parameters are:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Login'::
|
|
|
7521d1 |
+ Login to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Password'::
|
|
|
7521d1 |
+ Password to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_MantisbtURL'::
|
|
|
7521d1 |
+ MantisBT HTTP(S) address. (default: https://bugs.centos.org)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_SSLVerify'::
|
|
|
7521d1 |
+ Use yes/true/on/1 to verify server's SSL certificate. (default: yes)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Project'::
|
|
|
7521d1 |
+ Project issue field value. Useful if you needed different project than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_ProjectVersion'::
|
|
|
7521d1 |
+ Version issue field value. Useful if you needed different project version than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'http_proxy'::
|
|
|
7521d1 |
+ the proxy server to use for HTTP
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'HTTPS_PROXY'::
|
|
|
7521d1 |
+ the proxy server to use for HTTPS
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+report_event.conf(5), reporter-mantisbt(1)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHOR
|
|
|
7521d1 |
+------
|
|
|
7521d1 |
+* ABRT team
|
|
|
7521d1 |
diff --git a/doc/report_centos.conf.txt b/doc/report_centos.conf.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..23a5fde
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/report_centos.conf.txt
|
|
|
7521d1 |
@@ -0,0 +1,41 @@
|
|
|
7521d1 |
+report_centos.conf(5)
|
|
|
7521d1 |
+=====================
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+report_centos.conf - configuration file for libreport.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+This configuration file specifies which of the reporting work flow definitions
|
|
|
7521d1 |
+are applicable for all problems types on CentOS.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+All applicable work flows are presented to users in User Interface as
|
|
|
7521d1 |
+possibilities for processing of any problems. A particular work flow becomes
|
|
|
7521d1 |
+applicable if its conditions are satisfied.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+This configuration file consists from one condition per line.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Each condition line must start with EVENT=workflow_NAME where "workflow_" is
|
|
|
7521d1 |
+constant prefix and "workflow_NAME" is base name of path to reporting work flow
|
|
|
7521d1 |
+configuration file.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+The rest of condition line has form VAR=VAL, VAR!=VAL or VAL~=REGEX, where VAR
|
|
|
7521d1 |
+is a name of problem directory element to be checked (for example,
|
|
|
7521d1 |
+"executable", "package", hostname" etc). The condition may consists
|
|
|
7521d1 |
+from as many element checks as it is necessary.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+EXAMPLES
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+Condition line::
|
|
|
7521d1 |
+ EVENT=workflow_CentOSCCpp analyzer=CCpp
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+The condition line above expects existence of /usr/share/libreport/workflows/workflow_CentOSCCpp.xml
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+report-gtk(1)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHOR
|
|
|
7521d1 |
+------
|
|
|
7521d1 |
+* ABRT team
|
|
|
7521d1 |
diff --git a/doc/reporter-mantisbt.txt b/doc/reporter-mantisbt.txt
|
|
|
7521d1 |
new file mode 100644
|
|
|
7521d1 |
index 0000000..92255b0
|
|
|
7521d1 |
--- /dev/null
|
|
|
7521d1 |
+++ b/doc/reporter-mantisbt.txt
|
|
|
7521d1 |
@@ -0,0 +1,219 @@
|
|
|
7521d1 |
+reporter-mantisbt(1)
|
|
|
7521d1 |
+====================
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+NAME
|
|
|
7521d1 |
+----
|
|
|
7521d1 |
+reporter-mantisbt - Reports problem to Mantis Bug Tracker.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SYNOPSIS
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+'reporter-mantisbt' [-vrf] [-c CONFFILE]... [-F FMTFILE] [-A FMTFILE2] -d DIR
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Or:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'reporter-mantisbt' [-v] [-c CONFFILE]... [-d DIR] -t[ID] FILE...
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Or:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'reporter-mantisbt' [-v] [-c CONFFILE]... -h DUPHASH
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+DESCRIPTION
|
|
|
7521d1 |
+-----------
|
|
|
7521d1 |
+The tool reads problem directory DIR. Then it logs in to MantisBT
|
|
|
7521d1 |
+and tries to find an issue with the same duphash HEXSTRING in 'abrt_hash' field.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+If such issue is not found, then a new issue is created. Elements of DIR
|
|
|
7521d1 |
+are stored in the issue as part of issue description or as attachments,
|
|
|
7521d1 |
+depending on their type and size.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Otherwise, if such issue is found and it is marked as CLOSED DUPLICATE,
|
|
|
7521d1 |
+the tool follows the chain of duplicates until it finds a non-DUPLICATE issue.
|
|
|
7521d1 |
+The tool adds a new note to found issue.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+The URL to new or modified issue is printed to stdout and recorded in
|
|
|
7521d1 |
+'reported_to' element in DIR.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Option -t uploads FILEs to the already created issue on MantisBT site.
|
|
|
7521d1 |
+The issue ID is retrieved from directory specified by -d DIR.
|
|
|
7521d1 |
+If problem data in DIR was never reported to MantisBT, upload will fail.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Option -tID uploads FILEs to the issue with specified ID on MantisBT site.
|
|
|
7521d1 |
+-d DIR is ignored.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Option -r sets the last url from reporter_to element which is prefixed with
|
|
|
7521d1 |
+TRACKER_NAME to URL field. This option is applied only when a new issue is to be
|
|
|
7521d1 |
+filed. The default value is 'ABRT Server'"
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Configuration file
|
|
|
7521d1 |
+~~~~~~~~~~~~~~~~~~
|
|
|
7521d1 |
+If not specified, CONFFILE defaults to /etc/libreport/plugins/mantisbt.conf.
|
|
|
7521d1 |
+Configuration file lines should have 'PARAM = VALUE' format. The parameters are:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Login'::
|
|
|
7521d1 |
+ Login to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Password'::
|
|
|
7521d1 |
+ Password to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'MantisbtURL'::
|
|
|
7521d1 |
+ MantisBT HTTP(S) address. (default: http://localhost/mantisbt)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'SSLVerify'::
|
|
|
7521d1 |
+ Use yes/true/on/1 to verify server's SSL certificate. (default: no)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Project'::
|
|
|
7521d1 |
+ Project issue field value. Useful if you needed different project than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'ProjectVersion'::
|
|
|
7521d1 |
+ Version issue field value. Useful if you needed different project version than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'CreatePrivate'::
|
|
|
7521d1 |
+ Create private MantisBT issue. (default: no)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Parameters can be overridden via $Mantisbt_PARAM environment variables.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Formatting configuration files
|
|
|
7521d1 |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
7521d1 |
+Lines starting with # are ignored.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Lines can be continued on the next line using trailing backslash.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Format:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ "%summary:: summary format"
|
|
|
7521d1 |
+ "section:: element1[,element2]..."
|
|
|
7521d1 |
+ The literal text line to be added to MantisBT Description or Additional information. Can be empty.
|
|
|
7521d1 |
+ (Empty lines are NOT ignored!)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ Summary format is a line of text, where %element% is replaced by
|
|
|
7521d1 |
+ text element's content, and [[...%element%...]] block is used only if
|
|
|
7521d1 |
+ %element% exists. [[...]] blocks can nest.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ Sections can be:
|
|
|
7521d1 |
+ - %summary: issue Summary format string.
|
|
|
7521d1 |
+ - %attach: a list of elements to attach.
|
|
|
7521d1 |
+ - %Additional info: issue Additional Information content.
|
|
|
7521d1 |
+ - text, double colon (::) and the list of comma-separated elements.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ Description and Additional information MantisBT's fields:
|
|
|
7521d1 |
+ All text, double colons (::) and lists of comma-separated elements which
|
|
|
7521d1 |
+ are placed above the section '%Additional info::' in the configuration file are
|
|
|
7521d1 |
+ stored in the 'Description' field in MantisBT. All text etc. which are placed
|
|
|
7521d1 |
+ under the '%Additional info::' are stored in the 'Additional information' field.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ For example:
|
|
|
7521d1 |
+ |:: comment | (Description)
|
|
|
7521d1 |
+ | | (Description)
|
|
|
7521d1 |
+ |Package:: package | (Description)
|
|
|
7521d1 |
+ | | (Description)
|
|
|
7521d1 |
+ |%Additional_info:: |
|
|
|
7521d1 |
+ |%reporter% | (Additional info)
|
|
|
7521d1 |
+ |User:: user_name,uid | (Additional info)
|
|
|
7521d1 |
+ | | (Additional info)
|
|
|
7521d1 |
+ |Directories:: root,cwd | (Additional info)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ Elements can be:
|
|
|
7521d1 |
+ - problem directory element names, which get formatted as
|
|
|
7521d1 |
+ <element_name>: <contents>
|
|
|
7521d1 |
+ or
|
|
|
7521d1 |
+ <element_name>:
|
|
|
7521d1 |
+ :<contents>
|
|
|
7521d1 |
+ :<contents>
|
|
|
7521d1 |
+ :<contents>
|
|
|
7521d1 |
+ - problem directory element names prefixed by "%bare_",
|
|
|
7521d1 |
+ which is formatted as-is, without "<element_name>:" and colons
|
|
|
7521d1 |
+ - %oneline, %multiline, %text wildcards, which select all corresponding
|
|
|
7521d1 |
+ elements for output or attachment
|
|
|
7521d1 |
+ - %binary wildcard, valid only for %attach section, instructs to attach
|
|
|
7521d1 |
+ binary elements
|
|
|
7521d1 |
+ - problem directory element names prefixed by "-",
|
|
|
7521d1 |
+ which excludes given element from all wildcards
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ Nonexistent elements are silently ignored.
|
|
|
7521d1 |
+ If none of elements exists, the section will not be created.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+Integration with ABRT events
|
|
|
7521d1 |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
7521d1 |
+'reporter-mantisbt' can be used as an ABRT reporter. Example
|
|
|
7521d1 |
+fragment for /etc/libreport/report_event.conf:
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+------------
|
|
|
7521d1 |
+# Report Python crashes
|
|
|
7521d1 |
+EVENT=report_CentOSBugTracker analyzer=Python
|
|
|
7521d1 |
+ reporter-mantisbt -d . -c /etc/libreport/plugins/mantisbt.conf
|
|
|
7521d1 |
+------------
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+OPTIONS
|
|
|
7521d1 |
+-------
|
|
|
7521d1 |
+-d DIR::
|
|
|
7521d1 |
+ Path to problem directory.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-c CONFFILE::
|
|
|
7521d1 |
+ Path to configuration file.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-f::
|
|
|
7521d1 |
+ Force reporting even if this problem is already reported.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-F CONF_FORMAT_FILE::
|
|
|
7521d1 |
+ Formatting file for new issues. Default: /etc/libreport/plugins/mantisbt_format.conf
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-A CONF_FORMAT_FILE::
|
|
|
7521d1 |
+ Formatting file for duplicates. Default: /etc/libreport/plugins/mantisbt_formatdup.conf
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-t[ID]::
|
|
|
7521d1 |
+ Upload FILEs to the already created issue on MantisBT site.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-h::
|
|
|
7521d1 |
+--duphash DUPHASH::
|
|
|
7521d1 |
+ Search in MantisBT by abrt's DUPHASH and print ISSUE_ID.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+-r TRACKER_NAME::
|
|
|
7521d1 |
+ Set the last url from reporter_to element which is prefixed with TRACKER_NAME to URL field in MantisBT.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+ENVIRONMENT VARIABLES
|
|
|
7521d1 |
+---------------------
|
|
|
7521d1 |
+Environment variables take precedence over values provided in
|
|
|
7521d1 |
+the configuration file.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Login'::
|
|
|
7521d1 |
+ Login to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Password'::
|
|
|
7521d1 |
+ Password to MantisBT account.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_MantisbtURL'::
|
|
|
7521d1 |
+ MantisBT HTTP(S) address. (default: http://localhost/mantisbt)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_SSLVerify'::
|
|
|
7521d1 |
+ Use yes/true/on/1 to verify server's SSL certificate. (default: no)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_Project'::
|
|
|
7521d1 |
+ Project issue field value. Useful if you needed different project than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_ProjectVersion'::
|
|
|
7521d1 |
+ Version issue field value. Useful if you needed different project version than specified in /etc/os-release
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+'Mantisbt_CreatePrivate'::
|
|
|
7521d1 |
+ Create private MantisBT issue. (default: no)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+FILES
|
|
|
7521d1 |
+-----
|
|
|
7521d1 |
+/usr/share/libreport/conf.d/plugins/mantisbt.conf::
|
|
|
7521d1 |
+ Readonly default configuration files.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+/etc/libreport/plugins/mantisbt.conf::
|
|
|
7521d1 |
+ Configuration file.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+/etc/libreport/plugins/mantisbt_format.conf::
|
|
|
7521d1 |
+ Configure formating for reporting.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+/etc/libreport/plugins/mantisbt_formatdup.conf::
|
|
|
7521d1 |
+ Configure formating for reporting duplicates.
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+SEE ALSO
|
|
|
7521d1 |
+--------
|
|
|
7521d1 |
+report_event.conf(5), mantisbt_format.conf(5), mantisbt_formatdup.conf(5)
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+AUTHORS
|
|
|
7521d1 |
+-------
|
|
|
7521d1 |
+* ABRT team
|
|
|
7521d1 |
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
|
|
|
7521d1 |
index d70b4db..77423c4 100644
|
|
|
7521d1 |
--- a/src/plugins/Makefile.am
|
|
|
7521d1 |
+++ b/src/plugins/Makefile.am
|
|
|
7521d1 |
@@ -107,6 +107,10 @@ if BUILD_UREPORT
|
|
|
7521d1 |
reporters_extra_dist += report_uReport.xml.in
|
|
|
7521d1 |
endif
|
|
|
7521d1 |
|
|
|
7521d1 |
+if BUILD_MANTISBT
|
|
|
7521d1 |
+reporters_extra_dist += report_CentOSBugTracker.xml.in
|
|
|
7521d1 |
+endif
|
|
|
7521d1 |
+
|
|
|
7521d1 |
EXTRA_DIST = $(reporters_extra_dist) \
|
|
|
7521d1 |
report_Logger.conf \
|
|
|
7521d1 |
report_Logger.xml.in \
|
|
|
7521d1 |
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
|
|
|
7521d1 |
index 5b8376a..b922e23 100644
|
|
|
7521d1 |
--- a/src/workflows/Makefile.am
|
|
|
7521d1 |
+++ b/src/workflows/Makefile.am
|
|
|
7521d1 |
@@ -104,3 +104,15 @@ EXTRA_DIST += \
|
|
|
7521d1 |
workflow_RHELBugzillaLibreport.xml.in \
|
|
|
7521d1 |
workflow_RHELBugzillaJava.xml.in
|
|
|
7521d1 |
endif
|
|
|
7521d1 |
+
|
|
|
7521d1 |
+if BUILD_MANTISBT
|
|
|
7521d1 |
+EXTRA_DIST += \
|
|
|
7521d1 |
+ workflow_CentOSCCpp.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSKerneloops.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSPython.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSPython3.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSVmcore.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSXorg.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSLibreport.xml.in \
|
|
|
7521d1 |
+ workflow_CentOSJava.xml.in
|
|
|
7521d1 |
+endif
|
|
|
7521d1 |
--
|
|
|
7521d1 |
1.8.3.1
|
|
|
7521d1 |
|