Index: main/core/src/main/java/hudson/model/Queue.java =================================================================== --- main/core/src/main/java/hudson/model/Queue.java (revision 32714) +++ main/core/src/main/java/hudson/model/Queue.java (working copy) @@ -342,6 +342,14 @@ buildables.cancelAll(); scheduleMaintenance(); } + + /** + * Called from queue.jelly. + */ + public void doCancelAll( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { + clear(); + rsp.forwardToPreviousPage(req); + } private File getQueueFile() { return new File(Hudson.getInstance().getRootDir(), "queue.txt"); @@ -1296,7 +1304,7 @@ rsp.forwardToPreviousPage(req); } - /** + /** * Participates in the cancellation logic to set the {@link #future} accordingly. */ /*package*/ void onCancelled() { Index: main/core/src/main/resources/lib/hudson/queue.jelly =================================================================== --- main/core/src/main/resources/lib/hudson/queue.jelly (revision 32714) +++ main/core/src/main/resources/lib/hudson/queue.jelly (working copy) @@ -55,6 +55,13 @@ + + + + ${%Cancel Queued Builds} + + +