Access Build Artifacts Info

You are viewing an old version (v. 1) of this page.
The latest version is v. 2, last edited on Jun 10, 2010 (view differences | )
view page history | view next version >>

Syntax

Information of build artifacts can be accessed by build psuedo id using http GET method through below url:

http://localhost:8810/rest/files?id=<build psuedo id>&path=<path>

Here <path> represents the relative path under publish directory of the specified build. The response is of mime type application/xml and the content is xml representation of the information about files and directories under the specified path. A sample response is like below:

<list>
  <com.pmease.quickbuild.rest.FileInfo>
    <name>file1.zip</name>

    <!-- size in bytes -->
    <size>287111</size>
    
    <!-- number of milliseconds since January 1, 1970, 00:00:00 GMT -->
    <lastModified>1258091663171</lastModified> 

    <directory>false</directory>
  </com.pmease.quickbuild.rest.FileInfo>

  <com.pmease.quickbuild.rest.FileInfo>
    <name>dir1</name>
    <size>0</size>

    <!-- number of milliseconds since January 1, 1970, 00:00:00 GMT -->
    <lastModified>1258091663171</lastModified> 

    <directory>true</directory>
  </com.pmease.quickbuild.rest.FileInfo>
</list>

Security

You will need to use http BASIC authentication to login as an authorized QuickBuild user if the anonymous is not allowed to access artifacts of specified build.

Demo

Below curl command demonstrates how to get information of artifacts in build with id 100:

curl -u admin:admin "http://localhost:8810/rest/files?id=100&path=artifacts"
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.