Skip to content

Add a rebuild button #674

Closed
grosser opened this Issue Aug 19, 2012 · 15 comments

9 participants

@grosser
grosser commented Aug 19, 2012

Sometimes builds fail for same weird reason, hitting rebuild would be nice, instead of having to go to github - admin - hooks - travis - fire test hook

@michaelklishin

It will probably be too much work at the moment with very little improvement over the Test Hook button.

@grosser
grosser commented Aug 20, 2012

making a link_to with proper params is a lot of work oO
already know a few people that rather push a new commit / do not know the test hook button exists

@michaelklishin

@grosser it is not about adding a link. It is about adding authorization across 4-5 applications. The amount of effort is disproportional to the benefit.

@grosser
grosser commented Aug 20, 2012

ah yes, auth can be tricky :)

As an alternative it could be linked like:

"Rebuild" -> inline message or popup:
Go here(https://github.com/user/project/admin/hooks) + click travis + click "test hook"

it would only save 1 click but would show people who do not know the test-hook feature how to do it

@dmathieu

This solution, while interesting at first thought would open a lot more of problems.
Only repository admins can access the webhooks github interface. But anybody could want to use this feature.

@roidrage
Travis CI member

It's a very reasonable feature to ask for, we've actually been talking about it for a while, and while we need to make sure that permissions are appropriately checked, we do have all the data (the GitHub payload) around to kick off a new build. It is bound to be supported soon :)

@ndbroadbent

I'd like to reopen this, since I'd also find a 'rebuild' button to be useful. For example, the VM just crashed during one of my builds, and a button would be more convenient than going all the way to the github -> admin -> service hooks page.

I'm going to work on adding this button, authenticating via your Travis session if you've logged in via GitHub.

@ndbroadbent ndbroadbent reopened this Oct 3, 2012
@ndbroadbent

Heh, well, I've managed to add a 'Rebuild now' button that only shows if the repo belongs to the user, or one of the user's organizations: ndbroadbent/travis-ember@d635fff

That's about as far as I could get on my own, this is a tough codebase to dive into! Closing for now, sorry for the spam

@ndbroadbent ndbroadbent closed this Oct 3, 2012
@joshk
Travis CI member
joshk commented Oct 3, 2012

Hey @ndbroadbent,

Your comments are not spam :)

@rkh actually has this on his list and has some ideas about how it can be achieved. It won't be added to the old client (https://travis-ci.org) but instead to the new api and client (https://api.travis-ci.org and https://next.travis-ci.org).

We hope to add this soon and blog about it once it is ready :)

Reopening the issue.

Josh

@joshk joshk reopened this Oct 3, 2012
@defunctzombie

Not sure what the status of this is, but I would like to say that such a feature would be useful. I contribute to a number of projects which I am not the admin for (but do have commit rights). The build sometimes fails due to a timeout or other issue. Given that many users put the travis badges on their readme files it looks quite bad to have a failing tests badge and not being able to request a rerun.

@drogus
Travis CI member
drogus commented Oct 23, 2012

@shtylman it's available already on http://next.travis-ci.org, we will replace http://travis-ci.org with next version soon (it just needs some polishing and optimizations), please read more at:http://about.travis-ci.org/blog/2012-10-23-introducing-travis-cis-next-generation-web-client//

@defunctzombie

@drogus is that only shown to repo owners? I don't see the requeue build option like the blog post indicates (maybe I am not looking hard enough).

@drogus
Travis CI member
drogus commented Oct 23, 2012

@shtylman check if you're logged in, we don't have single sign on yet on those 2 sites. You should see rebuild button even if you're not an owner

@defunctzombie

@drogus that did the trick. Awesome! Props on the new interface :)

@henrikhodne
Travis CI member

Closing this since it's available on the new interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.