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.

Can I run the build from commandline? #1333

chetangeo ·
Hi Robin,

Is there any way to automaticaly run the build whenever I commit?
  • replies 7
  • views 3285
  • stars 0
robinshen ADMIN ·
Yes, as long as you can set up a hook in your SCM to automatically run the command to trigger a build. A build can be triggered via command line by using curl:
http://wiki.pmease.com/display/QB31/Int ... d+Requests
chetangeo ·
Hi Robin,

When I give curl command it gives following error.

D:\quickbuild-2.1.21-windows-x86-32\quickbuild-2.1.21-windows-x86-32\bin>curl ht
tp://localhost:8810/rest/ids?configurat ... pleProject
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 NOT_FOUND</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /rest/ids. Reason:
<pre> NOT_FOUND</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>

Please tell me how to use curl command.
robinshen ADMIN ·
Please quote the configuration path, for example:
http://localhost:8810/rest/ids?configuration_path="root/myproject"

Regards
Robin
chetangeo ·
Hi Robin,
I have given coats but still the same problem.


C:\Documents and Settings\Shilpaag>curl http://localhost:8810/rest/ids?configura
tion_path="root"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rest/ids. Reason:
<pre> INTERNAL_SERVER_ERROR</pre></p><hr /><i><small>Powered by Jetty://</sma
ll></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>

C:\Documents and Settings\Shilpaag>
robinshen ADMIN ·
Please check the system log of QuickBuild to see if there is any detail information about the error got printed.
chetangeo ·
Log contains following exception.


2011-02-15 16:27:27,022 [7715118@qtp-3981922-7] ERROR com.pmease.quickbuild.rest.providers.GenericExceptionMapper - Error serving restful request.
com.sun.jersey.api.NotFoundException
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:991)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:932)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:384)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:451)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:632)
at com.pmease.quickbuild.rest.RestServlet.service(RestServlet.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:540)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
robinshen ADMIN ·
I just noticed that you are on QB2. The link I posted previously is for QB 3.1
For QB2, please check this link:
http://wiki.pmease.com/display/QB21/Int ... ith+Builds