Skip to end of metadata
Go to start of metadata

Plugin Information

View Mantis on the plugin site for more information.

Mantis Plugin


This plugin integrates Mantis Bug Tracker to Jenkins. Mantis is a free popular web-based bugtracking system written in PHP scripting language.
This plugin decorates Hudson "Changes" HTML to create links to your Mantis issues, and update issues with private / public notes.
As an example, if you committed a change with the following log message (which is configurable see Project Configuration):


fix issue #410

Mantis keys in changelogs are now hyperlinked to the corresponding Mantis issue pages (complete with tooltips),
and Mantis issues are also updated with note as following.




This plugin only supports Mantis 1.1.0 and above.

Configuration

System Configuration

First, you need to go to system config screen to tell Jenkins where's your Mantis.

  • URL - the root URL of your Mantis installation, eg. http://example.org/mantis/
  • Version - version of your Mantis installation. 1.1.X or 1.2.X(1.2.0a3 and later, this is experimental)
  • User Name, Password - user name and password of your Mantis installation to update relevant Mantis issues.

Project Configuration

In the top section, select the url of your Mantis installation.


  • %ID% is placeholder which means Mantis issue id.
  • Project and Category is mandatory for "File a ticket when build is broken or unstable".

Update Mantis issue

In the Post-build Actions section, choose "Updated relevant Mantis issues" (option).


This plugin updates Mantis issues if build is stable or unstable.

File a ticket if build is broken or unstable

In the Post-build Actions section, choose "File a ticket to Mantis" (option).


To Update Mantis issues, Mantis user must have at least "DEVELOPER".

Trouble Shooting

If you have ran into trouble,

  1. Select New Log Recorder in System log screen.

  2. Configure Log Recorder. Logger is "hudson.plugins.mantis", log level is "finest". and save.
  3. Update Mantis issue...
  4. See System log. Check SOAP request and response.

Use BASIC_AUTH (Workaround)

Tips

  • "Array to string conversion" while try to connect to mantis(JENKINS-27077).

Change Log

Version 0.26 (Feb 16, 2015)
  • Mantis password written in plain text in build.xml(JENKINS-26831).
Version 0.25 (May 31, 2013)
Version 0.24 (Apr, 30, 2012)
  • Do not update mantis entry for all downstream jobs (JENKINS-11839).
Version 0.23 (Apr, 1, 2012)
  • NullPointerException when Category have value : not selected (JENKINS-13215).
Version 0.22 (Mar, 12, 2012)
  • NullPointerException when parsing changeset of Matrix project (JENKINS-12849).
  • Mantis Plugin causes Configuration Loading Overlay to not disappear (JENKINS-13023).
    • added "veiyfy" button under advanced button to check credentials.
  • Updated wsdl.
Version 0.21 (Jan, 1, 2012)
  • enable to select a subproject for filing a ticket.
Version 0.20 (Oct, 5, 2011) (unstable)
  • File a ticket if build is broken or unstable
Version 0.12 (Oct 9, 2011)
  • updated wsdl to support Mantisbt 1.28
Version 0.11 (Apr 29, 2011)
Version 0.10.1 (May 2, 2010)
  • Fix 'update relevant mantis issue' is not saved'. (JENKINS-6363)
Version 0.10 (April 4, 2010)
Version 0.9 (Mar 3, 2010)
  • Update code for more recent Hudson.
Version 0.8.3 (Jul 26, 2009)
  • Allow empty pattern in form validation.
Version 0.8.2
  • check if user has Job.CONFIGURE, not ADMINISTER when configuring project (JENKINS-4077).
  • fixed NPE in M2 project (JENKINS-4049).
  • replaced deprecated classes and methods.
Version 0.8.1
  • Support subversion plugin.
  • Saved regexp pattern per build, which enables link in old history even if configuration is changed.
Version 0.8.0
  • Regexp pattern support.
Version 0.7.1
  • Support Mercurial changelog, which requires Mercurial Plugin 1.15.
  • Support Git changelog, which requires Git Plugin 0.5.
  • Fixed a bit.
Version 0.7
  • Record changelog in Mantis note.
Version 0.6.1
  • Don't change build status if failing to add note. (JENKINS-3005).
  • check permission.
Version 0.6
  • Hudson 1.281 and later required.
  • Supported Mantis 1.2.0a3 and later (experimental) (JENKINS-2877).
  • Logged SOAP Request and Response.
  • Improved error diagnostics.
Version 0.5.2
  • Use default issue id pattern if project configuration has not saved after upgrading (JENKINS-2307).
Version 0.5.1
  • Improved performance of hyperlink to mantis.
Version 0.5
  • Configurable Mantis issue IDs patterns (JENKINS-2117).
  • Hyperlink to mantis even if checkbox is not checked (JENKINS-2117).
Version 0.4.3
  • Fixed UnknownFormatConversionException (JENKINS-2116).
  • Improved Japanese translation.
Version 0.4.2
  • Added more logging for debugging.
  • The username and password of Mantis installation is now optional.
Version 0.4.1
Version 0.4
  • Update mantis issue if build status is unstable.
  • Support unsigned server certs.
Version 0.3.1
  • Fix JavaScript error
Version 0.3
  • Support HTTP Basic Authentication(Not Mantis's BASIC_AUTH)
  • Fix small bug
Version 0.2
  • Remove mantisconnect-client-api.jar.
Version 0.1
  • First version

21 Comments

  1. Unknown User (tlarrow)

    Thank you very much, this plugin works great!

  2. Unknown User (shadowspires)

    I like to throw the ability to use HTTPS on the heap of features.  Our Mantis install is remote from our Hudson install and don't like any passwords going unsecure.

    Additionally, is it reasonable to make this plugin update mantis even when unstable a setting or something?  I mean we run unstable right now a lot because we have a few broken tests out of 500+, I hate the idea of losing mantis updates just because someone has a test in a broken state.

    1. please use the issue tracker for RFEs and bugs.

  3. Apologies for mentioning it here, but I'm not sure if its a bug yet. 

    My build works and creates artifacts:

         (from System log)
         2/09/2008 15:22:41 hudson.model.Run run

         INFO: Wombat Compile #54 main build action completed: SUCCESS

    This will succeed if there are no Mantis references detected.

    but if there are Mantis references detected, the bit at the end that creates the Mantis notes fails, and so the whole build fails.

         (from console)
         [MANTIS] Failed to add note to Mantis issue #4,564 (cause: Access Denied).
         [MANTIS] Failed to add note to Mantis issue #14,665 (cause: Access Denied).
         [MANTIS] Failed to add note to Mantis issue #14,748 (cause: Access Denied).
         finished: FAILURE

     My Mantis setup:

        Mantis 1.1.1

        $g_login_method = MD5;

        Mantis user "hudson" with global "reporter" access to all projects

    My Hudson setup:

        Hudson 1.232, mantis plugin 0.43 & 0.5

        Mantis URL, username "hudson" and password set

        HTTP Basic Authentication fields are blank (as we don't use it on our intranet)

    I have tested manually by logging into Mantis as "hudson" and can add notes to the above issue numbers.

    Any idea what I might be missing?  What kind of setup is the plugin being developed against?  Is there any other config or log file I can check?

    Thank you!

    1. Mantis user "hudson" with global "reporter" access to all projects

      The Mantis SOAP API that the plugin uses requires "DEVELOPER" access level to add note.

      See api/mc_config_defaults_inc.php 16L,

      # Minimum global access level required to access webservice for read/write operations.
      $g_mc_readwrite_access_level_threshold = DEVELOPER;

       If you replace "DEVELOPER" with "REPORTER", It will work..

  4. Unknown User (hugolu82)

    Hi:

    I'm having an error when Hudson tries to add a note into mantis,a org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed, could not find anything on google I wonder if anybody have had this error before?, or any ideas what could it be or how to solve it or should I open a bug?, Thks,

    I created a log for the plugin here it is:

    Aug 2, 2010 5:01:15 PM hudson.plugins.mantis.Updater perform
    WARNING: Failed to add note to Mantis issue #hudson.plugins.mantis.changeset.SubversionChangeSet@11323b2.
    hudson.plugins.mantis.MantisHandlingException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at hudson.plugins.mantis.soap.mantis110.MantisSessionImpl.getIssue(MantisSessionImpl.java:63)
        at hudson.plugins.mantis.MantisSite.getIssue(MantisSite.java:137)
        at hudson.plugins.mantis.Updater.perform(Updater.java:71)
        at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
        at hudson.model.Build$RunnerImpl.post2(Build.java:158)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
        at hudson.model.Run.run(Run.java:1276)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:124)
    Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at hudson.plugins.mantis.soap.mantis110.MantisConnectBindingStub.mc_issue_get(MantisConnectBindingStub.java:1634)
        at hudson.plugins.mantis.soap.mantis110.MantisSessionImpl.getIssue(MantisSessionImpl.java:60)
        ... 13 more
    Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        ... 23 more
    Aug 2, 2010 5:01:15 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Response:
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://futureware.biz/mantisconnect"><SOAP-ENV:Body><ns1:mc_issue_getResponse xmlns:ns1="http://futureware.biz/mantisconnect"><return xsi:type="tns:IssueData"><id xsi:type="xsd:integer">613</id><view_state xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">public</name></view_state><last_updated xsi:type="xsd:dateTime">2010-08-02T11:51:37Z</last_updated><project xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">19</id><name xsi:type="xsd:string">Hudson</name></project><category xsi:type="xsd:string">bug</category><priority xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">30</id><name xsi:type="xsd:string">normal</name></priority><severity xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">minor</name></severity><status xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">new</name></status><reporter xsi:type="tns:AccountData"><id xsi:type="xsd:integer">36</id><name xsi:type="xsd:string">hudson</name><real_name xsi:type="xsd:string">hudson</real_name><email xsi:type="xsd:string">user@domain.com</email></reporter><summary xsi:type="xsd:string">test bug 1</summary><reproducibility xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">always</name></reproducibility><date_submitted xsi:type="xsd:dateTime">2010-08-02T11:51:37Z</date_submitted><sponsorship_total xsi:type="xsd:integer">0</sponsorship_total><projection xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></projection><eta xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></eta><resolution xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">open</name></resolution><description xsi:type="xsd:string">testing hudson connectivity with mantis</description><attachments xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:AttachmentData[0]"></attachments><relationships xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:RelationshipData[0]"></relationships><notes xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:IssueNoteData[0]"></notes></return></ns1:mc_issue_getResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Aug 2, 2010 5:01:15 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
      <ns1:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
       <username xsi:type="xsd:string">hudson</username>
       <password xsi:type="xsd:string">hudson</password>
       <issue_id xsi:type="xsd:integer">613</issue_id>
      </ns1:mc_issue_get>
     </soapenv:Body>
    </soapenv:Envelope>
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Response: (null)
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
      <ns1:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
       <username xsi:type="xsd:string">hudson</username>
       <password xsi:type="xsd:string">hudson</password>
       <issue_id xsi:type="xsd:integer">613</issue_id>
      </ns1:mc_issue_get>
     </soapenv:Body>
    </soapenv:Envelope>
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.mantis110.MantisSessionImpl
    INFO: Mantis version is 1.1.X
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.Updater perform
    WARNING: Failed to add note to Mantis issue #hudson.plugins.mantis.changeset.SubversionChangeSet@3bb475.
    hudson.plugins.mantis.MantisHandlingException: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at hudson.plugins.mantis.soap.mantis110.MantisSessionImpl.getIssue(MantisSessionImpl.java:63)
        at hudson.plugins.mantis.MantisSite.getIssue(MantisSite.java:137)
        at hudson.plugins.mantis.Updater.perform(Updater.java:71)
        at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
        at hudson.model.Build$RunnerImpl.post2(Build.java:158)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
        at hudson.model.Run.run(Run.java:1276)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:124)
    Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at hudson.plugins.mantis.soap.mantis110.MantisConnectBindingStub.mc_issue_get(MantisConnectBindingStub.java:1634)
        at hudson.plugins.mantis.soap.mantis110.MantisSessionImpl.getIssue(MantisSessionImpl.java:60)
        ... 13 more
    Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        ... 23 more
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Response:
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://futureware.biz/mantisconnect"><SOAP-ENV:Body><ns1:mc_issue_getResponse xmlns:ns1="http://futureware.biz/mantisconnect"><return xsi:type="tns:IssueData"><id xsi:type="xsd:integer">613</id><view_state xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">public</name></view_state><last_updated xsi:type="xsd:dateTime">2010-08-02T11:51:37Z</last_updated><project xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">19</id><name xsi:type="xsd:string">Hudson</name></project><category xsi:type="xsd:string">bug</category><priority xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">30</id><name xsi:type="xsd:string">normal</name></priority><severity xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">minor</name></severity><status xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">new</name></status><reporter xsi:type="tns:AccountData"><id xsi:type="xsd:integer">36</id><name xsi:type="xsd:string">hudson</name><real_name xsi:type="xsd:string">hudson</real_name><email xsi:type="xsd:string">user@domain.com</email></reporter><summary xsi:type="xsd:string">test bug 1</summary><reproducibility xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">always</name></reproducibility><date_submitted xsi:type="xsd:dateTime">2010-08-02T11:51:37Z</date_submitted><sponsorship_total xsi:type="xsd:integer">0</sponsorship_total><projection xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></projection><eta xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></eta><resolution xsi:type="tns:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">open</name></resolution><description xsi:type="xsd:string">testing hudson connectivity with mantis</description><attachments xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:AttachmentData[0]"></attachments><relationships xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:RelationshipData[0]"></relationships><notes xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:IssueNoteData[0]"></notes></return></ns1:mc_issue_getResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
      <ns1:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
       <username xsi:type="xsd:string">hudson</username>
       <password xsi:type="xsd:string">hudson</password>
       <issue_id xsi:type="xsd:integer">613</issue_id>
      </ns1:mc_issue_get>
     </soapenv:Body>
    </soapenv:Envelope>
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Response: (null)
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.LogHandler
    FINE: Request: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <soapenv:Body>
      <ns1:mc_issue_get soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect">
       <username xsi:type="xsd:string">hudson</username>
       <password xsi:type="xsd:string">hudson</password>
       <issue_id xsi:type="xsd:integer">613</issue_id>
      </ns1:mc_issue_get>
     </soapenv:Body>
    </soapenv:Envelope>
    Aug 2, 2010 5:01:14 PM hudson.plugins.mantis.soap.mantis110.MantisSessionImpl
    INFO: Mantis version is 1.1.X

  5. Hi,

    I would really love to use your plugin, but that is not possible since none of my projects are found. I don't know what the problem is and the log doesn't say anything as well. I'm using Mantis 1.2.10 and the Jenkins user has a user level of Administrator.

    1. Hi Koen, did you were able to connect Mantis with Jenkins?, right now I have the same issue, my projects are not listed in the Job Configuration, I will appreciate any help, thanks.

      1. My jobs are listed now, but I don't know what I did back then. I don't think I did much, they suddenly appeared I think.

  6. Same issue as Koen V, please update your steps to connect Mantis with Jenkins, my projects are not found on the Job Configuration, thanks-

      1. so bad(( 

        how to assign ticket via plugin? i need use regexp ?  If i need use regexp please show me example.

      2. so bad(( 

        how to assign ticket via plugin? i need use regexp ?  If i need use regexp please show me example.

  7. Hello,

    I'm trying to use this plugin with a Matrix project configuration, and it seems to failed to add the note.

    I'm using the latest version of Jenkins and of this plugin !

    Sadly I don't have any log to give, because the logger doesn't save any trace of this operation ..

    The only error message I have is :

    "[MANTIS] No Mantis site is configured for this project. This must be a project configuration error Build step 'Updated relevant Mantis issues' changed build result to FAILURE"

    But there IS a Mantis site configured for this job. Actually it works perfectly in other simple jobs ..

    my guess is the Mantis Site config is not propagated to the matrix configs.

    Also, it still tries to add a note in each configs of the matrix.

    1. It seems to be bug. Would you file a ticket to JIRA?

      1. Ok, I'll do that :)

  8. Hi,
    I've correctly followed the instruction for connecting jenkins with mantis, but it is not able to see Projects or Categories as well,
    This is the log, I double checked all the user and pass. The machine is local, I use 127.0.0.1 as ip instead of localhost or internal network ip.
    Mantis version is taken from bitnami-mantis-1.2.15-1-windows-installer.exe
    Jenkins is 1.532v. What's wrong (sad) ?

    Oct 08, 2013 2:18:42 PM INFO hudson.plugins.mantis.soap.mantis120.MantisSessionImpl
    Mantis version is 1.2.X

    Oct 08, 2013 2:18:42 PM FINE hudson.plugins.mantis.soap.LogHandler
    Request:

    myUser
    myPassword

    Oct 08, 2013 2:18:42 PM FINE hudson.plugins.mantis.soap.LogHandler
    Response: (null)

    Oct 08, 2013 2:18:42 PM FINE hudson.plugins.mantis.soap.LogHandler
    Request:

    myUser
    myPassword

    Oct 08, 2013 2:18:42 PM FINE hudson.plugins.mantis.soap.LogHandler
    Response:
    ServerError Type: SYSTEM NOTICE,
    Error Description: Array to string conversion

      1. thx very much, fixed commenting debug line.

  9. Works great. Please add an option to customize Title and Description when the ticket is filed on build failure.