php-travis-client icon indicating copy to clipboard operation
php-travis-client copied to clipboard

Method to restart a past build

Open doublejosh opened this issue 10 years ago • 2 comments
trafficstars

http://docs.travis-ci.com/api/#jobs

Use-case is triggering a build which generates static content based on content updates-- for automatic deployment.

doublejosh avatar Dec 10 '14 21:12 doublejosh

Having a little trouble getting the endpoint to behave. It's rather picky and purely serves a 400 at present. https://github.com/tableau-mkt/php-travis-client/blob/master/src/Travis/Client.php#L62

doublejosh avatar Jan 08 '15 07:01 doublejosh

Got this working. Added a new $client->restartBuild($build) method /src/Travis/Client.php. You'll need to first fetch the repository and find out which build to restart. Note: all restarting also required authorized access.

https://github.com/l3l0/php-travis-client/issues/4

doublejosh avatar Jan 13 '15 20:01 doublejosh