Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to restart a past build #7

Open
doublejosh opened this issue Dec 10, 2014 · 2 comments
Open

Method to restart a past build #7

doublejosh opened this issue Dec 10, 2014 · 2 comments

Comments

@doublejosh
Copy link

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 doublejosh changed the title Method to restart a build Method to restart a past build Dec 10, 2014
@doublejosh
Copy link
Author

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
Copy link
Author

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.

#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant