diff --git a/src/main/java/hudson/plugins/batch_task/BatchRun.java b/src/main/java/hudson/plugins/batch_task/BatchRun.java index d09c828..1c98291 100644 --- a/src/main/java/hudson/plugins/batch_task/BatchRun.java +++ b/src/main/java/hudson/plugins/batch_task/BatchRun.java @@ -16,6 +16,7 @@ import org.kohsuke.stapler.StaplerResponse; import org.kohsuke.stapler.export.Exported; import org.kohsuke.stapler.framework.io.LargeText; +import org.kohsuke.stapler.verb.POST; import java.io.File; import java.io.FileOutputStream; diff --git a/src/main/java/hudson/plugins/batch_task/BatchTask.java b/src/main/java/hudson/plugins/batch_task/BatchTask.java index 7e87d9a..ee443b3 100644 --- a/src/main/java/hudson/plugins/batch_task/BatchTask.java +++ b/src/main/java/hudson/plugins/batch_task/BatchTask.java @@ -39,6 +39,7 @@ import java.util.regex.Pattern; import com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter; +import org.kohsuke.stapler.verb.POST; /** * A batch task. @@ -264,6 +265,7 @@ public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) /** * Schedules the execution */ + @POST public synchronized void doExecute( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { getACL().checkPermission(AbstractProject.BUILD); @@ -278,6 +280,7 @@ public synchronized void doExecute( StaplerRequest req, StaplerResponse rsp ) th /** * Deletes this task. */ + @POST public synchronized void doDoDelete(StaplerResponse rsp) throws IOException, ServletException { getACL().checkPermission(AbstractProject.DELETE); @@ -319,6 +322,7 @@ private int[] parse(String num) { private static final Pattern BUILD_NUMBER_PATTERN = Pattern.compile("(\\d+)-(\\d+)"); + @POST public void doCancelQueue(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { checkAbortPermission(); diff --git a/src/main/resources/hudson/plugins/batch_task/BatchTask/delete.jelly b/src/main/resources/hudson/plugins/batch_task/BatchTask/delete.jelly deleted file mode 100644 index f4d16e4..0000000 --- a/src/main/resources/hudson/plugins/batch_task/BatchTask/delete.jelly +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -
- ${%description} - - -
-
-
\ No newline at end of file diff --git a/src/main/resources/hudson/plugins/batch_task/BatchTask/sidepanel.jelly b/src/main/resources/hudson/plugins/batch_task/BatchTask/sidepanel.jelly index 86990e1..9c95424 100644 --- a/src/main/resources/hudson/plugins/batch_task/BatchTask/sidepanel.jelly +++ b/src/main/resources/hudson/plugins/batch_task/BatchTask/sidepanel.jelly @@ -15,11 +15,11 @@ - + - +