Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Trying to run jenkins job from Test Rail


I have installed TestRail as a server in my local
Installed jenkins in my local
Added the UI script in test rail ‘Start automation’ and trigger.php also added in the root folder.

But job is not triggered

$resourceUrl = ‘http://localhost:8080/job/Travelopia/build?token=tokenex’;

$ch = curl_init($resourceUrl);
curl_setopt($ch, CURLOPT_NOBODY, true);
$statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

//201 = OK
if($statusCode == '201'){
	return 7;
} else { return 5;}

Please help me how to sort out this issue?