Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

integrate with bugzilla #1847

bingxue0222 ·
I find every time I config some plugin, they all don't work well <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
now I integrate with bugzilla,it config is:
bugzilla server url:http://bugzillaserver/test
user name:admin
pwd:admin
pattern:default
when I commit my modifies, in commit messge I write 'bug:23 or #23,then click run the cofiguration, the build finished,the bugzilla tab display (0), the issue id 23 is exist in bugzilla, I use quickbuild version 4.0.37, my config is right?
  • replies 14
  • views 6089
  • stars 0
bingxue0222 ·
steveluo ADMIN ·
What is your bugzilla version? and also you need enable bugzilla XMLRPC. To verify whether your XMLRPC is enabled or not, just type below url to see what's the result.
http://bugzillaserver/xmlrpc.cgi

To enable bugzilla XMLRPC, run below commands:
$ perl -MCPAN -e 'install "SOAP::Lite"'
$ ./checksetup.pl

and install the missed modules.

By the way, bugzilla also has a script to help verify the XMLRPC:
contrib/bz_webservice_demo.pl
bingxue0222 ·
I run http://servername/test(one of my projects)/xmlrpc.cgi, it display nothing.
then i run command:
'perl -MCPAN -e install "SOAP::Lite"
./checksetup.pl
I see soap:lite installed ok.
I run the configuration again,it doesnot work still. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
bingxue0222 ·
oh, I forgot to tell the bugzilla version ,it is 4.0.2.
steveluo ADMIN ·
So, it seems that your bugzilla server is http://bugzillaserver in server url field, don't append the project name.
bingxue0222 ·
Yes, I input http://bugzillaserver/xmlrpc.cgi, but it display ' the page cannot be found',
I installed SOAP::Lite module and run ./checksetup.pl, but it still display the error message.
bingxue0222 ·
I check server log, find some error message,it wrote:
caused by <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->rg.apache.xmlrpc.client.xmlrpcclientexception:failed to parse server's response:xml document structures must start and end within the same entity.

on client, must install perl?
steveluo ADMIN ·
Please post the full stack trace you found in the log. And please use contrib/bz_webservice_demo.pl bundled with bugzilla to verify your bugzilla XML RPC works as expected. You may refer to below page to see how to use bz_webservice_demo.pl:
http://www.bugzilla.org/docs/tip/en/htm ... _demo.html

You needn't install perl on your QuickBuild server or agents. Also, I need confirm with you that you have filled in the bugzilla server url field with http://bugzillaserver (without any project name).
steveluo ADMIN ·
Below is my test using bz_webservice_demo.pl.

Command:

$ /usr/share/bugzilla4/contrib/bz_webservice_demo.pl --uri http://localhost/bugzilla4/xmlrpc.cgi --login steve@pmease.com --password xxx --bug_id 5


here the bugzilla server url is http://localhost/bugzilla4 which I defined in my apache httpd server. After running the command, I got below result:


Connecting to a Bugzilla of version 4.0.1.
Bugzilla's timezone is +0000.
Login successful.
priority: Normal
creator: steve@pmease.com
blocks: ARRAY(0x2cb8738)
last_change_time: 20110708T14:31:48
is_cc_accessible: 1
keywords: ARRAY(0x2cb8e10)
cc: ARRAY(0x2cb8fd8)
groups: ARRAY(0x2cbb910)
see_also: ARRAY(0x2cbb748)
url:
assigned_to: steve@pmease.com
...
bingxue0222 ·
hi steveluo,
I really have filled in the bugzilla server url field with http://bugzillaserver (without any project name).
my log file is in internal net, and it is not linked to internet, so I can't copy the log file,
I see http://www.bugzilla.org/docs/tip/en/htm%20...%20_demo.html, but I don't know how to use it <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> ,
it reads:
--uri
URI to Bugzilla's xmlrpc.cgi script, along the lines of http://your.bugzilla.installation/path/ ... pc.cgi.The path ' your.bugzilla.installation/path/to/bugzilla' mean what? I don't test successfully, please give me some advice? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
steveluo ADMIN ·
See my previous post, I have given you an example on how to use bz_webservice_demo.pl. 'your.bugzilla.installation/path' is the path that you visit your bugzilla. That is, the url you input in your browser to visit bugzilla and will display the bugzilla home page which is normally configured by your bugzilla administrator. In my example, the url is configured in apache httpd config file which can be located on /etc/apache2/ directory.
bingxue0222 ·
I do as your post,my command is:
bz_webservice_demo.pl --uri http://server1/test/xmlrpc.cgi --login admin --password pwd --bug_id 553
run it,it works well,it display as your results.
but when my commit message is #553 or bug:553,it still hasnot hyperlink. <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
steveluo ADMIN ·
From your description, your bugzilla server url is http://server1/test
Please change your configuration log level to debug and run a build with some commits (the commit message include #553 or bug:553), and then look through your build log to see if there is any error/exception.
bingxue0222 ·
I try again, now it works well ,I do nothing, so strange <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thank you very much!