Customers
User information
 Loading ...
Show article in Knowledge Base

 Create a build from your build environment (and upload file) Export knowledge base Export     SubscribeSubscribe      Show article info

With a simple HTTP (GET or POST) request you can notify VisionProject that a new build has been created. Every issues that has been completed since the last build will then be assigned a build number. As a response to the http request the current Release notes will be returned. This is an easy but efficient way for your build environment to communicate with VisionProject.

 

For HTTP GET, you should use the following URL:

 

https://www.VisionProject.se/BuildVersionUpdate.do?projectHash=[YOUR PROJECT HASH]&version=[VERSION_NUMBER]&linkToLatestBuild=[URL to latest build]&buildType=[type of build 1 or 2]&createdBy=[name]&buildInfo=[optional information text]&updateIssues=[should recently Completed issues be updated with build number?]

 

Parameters:

  • projectHash: the project's hash code. String. Mandatory.
  • version: version and build number for the build. String. Mandatory. If the string is like 1.0.0.5 the version number will be 1.0.0 and the build number will be 5. If the version isn't found a new version will be created.
  • linkToLatestBuild: URL to the latest build. String. Optional. Note that the URL should be URL encoded.
  • buildType: Type of build, Values: 1 (=Internal) or 2 (=Published). Optional. If not supplied Internal will be set.
  • createdBy: Name that should be set as created by. String. Optional. If not set "Build system" will be set.
  • buildInfo: Information of the build. String. Optional.
  • updateIssues: should recently Completed issues be updated with build number? Valid values: true or false. Optional. If not supplied true will be used.

 

Sample: http://localhost:8080/VisionProject/BuildVersionUpdate.do?projectHash=eqyz3g2Ad4pfym2703DJSZC00AA2&version=1.0.0&createdBy=Our%20auto%20build%20system&buildInfo=Auto%20build

 

For HTTP POST (i.e. if you want to include the actual build-files) you should use the following :

 

 

  • HTTP POST URL: https://www.VisionProject.se/BuildVersionUpdate.do
  • projectHash: the project's hash code. String. Mandatory.
  • version: version and build number for the build. String. Mandatory. If the string is like 1.0.0.5 the version number will be 1.0.0 and the build number will be 5. If the version isn't found a new version will be created.
  • linkToLatestBuild: URL to the latest build. String. Optional. Note that the URL should be URL encoded.
  • buildType: Type of build, Values: 1 (=Internal) or 2 (=Published). Optional. If not supplied Internal will be set.
  • createdBy: Name that should be set as created by. String. Optional. If not set "Build system" will be set.
  • buildInfo: Information of the build. String. Optional.
  • updateIssues: should recently Completed issues be updated with build number? Valid values: true or false. Optional. If not supplied true will be used.
  • buildFile: Any number of files that you want to upload
  • useFileAsLinkToLatestBuild: Should the URL for the file in VisionProject be used as link
  • publishFile: Should the files uploaded be published automatically, i.e. and be available in the support center
  • relativeFilePath: Where should the files be located, such as buildfiles/2009/Q1/

 

Sample:


<form name="myForm" action="http://localhost:8080/VisionProject/BuildVersionUpdate.do" METHOD="POST" enctype="multipart/form-data">
   <input type="hidden" name="projectHash" value="u6o8IG6EI9WERTLIkAwL">
   <input type="text" name="version" value="1.0.0">
   <input type="text" name="buildType" value="1">
   <input type="text" name="createdBy" value="joe">
   <input type="text" name="buildInfo" value="Some info here"><br>
   <input type="file" name="buildFile">
   <input type="text" name="useFileAsLinkToLatestBuild" value="true">
   <input type="text" name="publishFile" value="true">
   <input type="text" name="relativeFilePath" value="buildfiles\2009\Q1">
   <input type="submit">
</form>

User comments
 Loading ...