mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
making more bug fixes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3400 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
5c2f7cbd91
commit
2edbbe9cf1
2 files changed
+19
-12
No files matched your search
@@ -15,12 +15,19 @@ import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.StaplerResponse;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.ServletException;
|
||||
|
||||
/**
|
||||
* Common part of {@link CVSSCM.TagAction} and {@link SubversionTagAction}.
|
||||
*
|
||||
* <p>
|
||||
* This class implements the action that tags the modules. Derived classes
|
||||
* need to provide <tt>tagForm.jelly</tt> view that displays a form for
|
||||
* letting user start tagging.
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
abstract class AbstractScmTagAction extends AbstractModelObject implements Action {
|
||||
public abstract class AbstractScmTagAction extends AbstractModelObject implements Action {
|
||||
protected final AbstractBuild build;
|
||||
|
||||
/**
|
||||
@@ -51,6 +58,17 @@ abstract class AbstractScmTagAction extends AbstractModelObject implements Actio
|
||||
return workerThread;
|
||||
}
|
||||
|
||||
public void doIndex(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
|
||||
req.setAttribute("build",build);
|
||||
req.getView(this,chooseAction()).forward(req,rsp);
|
||||
}
|
||||
|
||||
private synchronized String chooseAction() {
|
||||
if(workerThread!=null)
|
||||
return "inProgress.jelly";
|
||||
return "tagForm.jelly";
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles incremental log output.
|
||||
*/
|
||||
|
||||
@@ -1054,17 +1054,6 @@ public class CVSSCM extends AbstractCVSFamilySCM implements Serializable {
|
||||
return tagName.split(" ");
|
||||
}
|
||||
|
||||
public void doIndex(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
|
||||
req.setAttribute("build",build);
|
||||
req.getView(this,chooseAction()).forward(req,rsp);
|
||||
}
|
||||
|
||||
private synchronized String chooseAction() {
|
||||
if(workerThread!=null)
|
||||
return "inProgress.jelly";
|
||||
return "tagForm.jelly";
|
||||
}
|
||||
|
||||
/**
|
||||
* Invoked to actually tag the workspace.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user