Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362488

Summary: Gerrit: Must have a way to rerun a failed build
Product: [Technology] EGit Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot
none
screenshot.png none

Description Dani Megert CLA 2011-10-31 09:48:13 EDT
Not sure whether 'Git' is the right component but couldn't find one for Gerrit.

Take a look at http://egit.eclipse.org/r/#change,4425. There, my proposed change got marked with a -1 from Hudson since the build failed. I was 100% sure that this was not caused by my fix but found no way to re-run the build. The Hudson message which rejects the change should contain a link that allows me to re-run the tests.

NOTE:
1. I tried the 'Build Now' button on
   https://hudson.eclipse.org/sandbox/job/egit.gerrit/1835/
   ==> shows a hover "Build scheduled", but nothing ever happens afterwards

2. I try to follow http://wiki.eclipse.org/EGit/Contributor_Guide#To_trigger_Hudson_build_for_a_change

   ==> 	
Access Denied

dmegert is missing the ManualTrigger permission

Not sure what I need to do to get this.
Comment 1 Eclipse Webmaster CLA 2011-11-01 15:31:28 EDT
I don't see your id in the job config for Egit.  Re-assigning to the Egit project.

-M.
Comment 2 Benjamin Muskalla CLA 2011-11-07 19:24:58 EST
Dani, if logged in, there is a button "Retrigger" in the web ui (on the same build, not job) to retrigger this build with the same parameters (means the same gerrit branch).
Comment 3 Dani Megert CLA 2011-11-08 02:32:24 EST
(In reply to comment #2)
> Dani, if logged in, there is a button "Retrigger" in the web ui (on the same
> build, not job) to retrigger this build with the same parameters (means the
> same gerrit branch).

Sorry, I can't see it. Or am I on the wrong web page (see attached screenshot)?
Comment 4 Dani Megert CLA 2011-11-08 02:32:51 EST
Created attachment 206567 [details]
Screenshot
Comment 5 Benjamin Muskalla CLA 2011-11-08 05:48:21 EST
Created attachment 206576 [details]
screenshot.png

Interesting. I see the gerrit trigger action. Might be only available for people with rights on this job.

Matthias, I think it would make sense to that at least Eclipse committers can retrigger the job if we really don't want to let all contributors retrigger it. Thoughts?
Comment 6 Matthias Sohn CLA 2011-11-08 11:56:09 EST
(In reply to comment #5)
> Created attachment 206576 [details]
> screenshot.png
> 
> Interesting. I see the gerrit trigger action. Might be only available for
> people with rights on this job.
> 
> Matthias, I think it would make sense to that at least Eclipse committers can
> retrigger the job if we really don't want to let all contributors retrigger it.
> Thoughts?

this makes sense, any clue what's the group containing all committers ?
Comment 7 Matthias Sohn CLA 2011-11-08 11:58:48 EST
Dani: I granted build permissions to you, so now you should be able to retrigger failed builds
Comment 8 Dani Megert CLA 2011-11-09 02:51:35 EST
(In reply to comment #7)
> Dani: I granted build permissions to you, so now you should be able to
> retrigger failed builds

I see the link now. Thanks Matthias!
Comment 9 Matthias Sohn CLA 2011-11-09 16:43:04 EST
We will not grant build permissions to all committers as this is really a big group, instead to those who explicitly ask for that.