HTTP Status Task

Sends an HTTP request to the specified URL.

Version

Available from version 1.5

Examples

Minimalist example

1<checkHttpStatus>
2  <httpRequest>
3    <uri>http://somewhere.com</uri>
4  </httpRequest>
5</checkHttpStatus>

Full example

 1<checkHttpStatus>
 2  <dynamicValues />
 3  <includeContent>False</includeContent>
 4  <httpRequest>
 5    <method>GET</method>
 6    <uri>http://somewhere.com/</uri>
 7    <useDefaultCredentials>false</useDefaultCredentials>
 8  </httpRequest>
 9  <retries>3</retries>
10  <successStatusCodes>200</successStatusCodes>
11</checkHttpStatus>

Configuration Elements

Element Description Type Required Default Version
description Description used for the visualisation of the buildstage, if left empty the process name will be shown. String No The task/publisher name. 1.5
dynamicValues The dynamic values to use for the task. Dynamic Values array No None 1.5
environment A set of environment variables set for commands that are executed.
Each variable should be specified as
1<variable name="name" value="value" />

.
Environment Variable array No
includeContent Whether to include the content of the call in the log. Boolean No false 1.5
httpRequest The request settings. HTTP Settings Yes n/a 1.5
retries The number of retries to allow. Int32 No 3 1.5
retryDelay Gets or sets the retry delay. Timeout Configuration No
successStatusCodes The list of exit codes that indicate success, separated by commas. String No 200 1.5
taskTimeout The timeout period to allow. Timeout Configuration No 5 seconds 1.5

Notes

Task supplied by Patrik Husfloen.

Automatically Generated

Documentation generated on Monday, 26 May 2014 at 7:18:04 AM