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

Update restart for Travis API #416

Merged
merged 1 commit into from
Apr 8, 2020
Merged

Conversation

mrerrormessage
Copy link
Contributor

I was unable to get restart working via the Travis CLI this morning and found out that the endpoint formerly used "POST /requests" is no longer documented on the Travis API documentation. Every time I was trying to do a restart I was getting:

> travis restart 1837--debug
** Loading "/Users/<username>/.travis/config.yml"
** Loading gh
** GET "config"
**   took 0.93 seconds
** GitHub API: HEAD /repos/NetLogo/NetLogo
**   took 0.17 seconds
** GET "repos/NetLogo/NetLogo"
**   took 2.3 seconds
** GET "builds/" {:number=>"1837", :repository_id=>685178}
**   took 2 seconds
** GET "jobs/141467041"
**   took 1.6 seconds
** POST "requests" {"job_id"=>141467041}
**   took 1 seconds
resource not found ()

I was able to get it working by using the supported API endpoint, as shown in this PR.

@k-okada
Copy link

k-okada commented Jul 10, 2016

+1, I had same problem and this PR works fine for me too.

BanzaiMan added a commit that referenced this pull request Apr 8, 2020
@BanzaiMan BanzaiMan self-assigned this Apr 8, 2020
@BanzaiMan BanzaiMan merged commit 803d6c1 into travis-ci:master Apr 8, 2020
@BanzaiMan
Copy link
Contributor

Sorry for the long delay. The fix has been confirmed and merged.

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

Successfully merging this pull request may close these issues.

3 participants