本文整理了Java中hudson.model.Project.submit()
方法的一些代码示例,展示了Project.submit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.submit()
方法的具体详情如下:
包路径:hudson.model.Project
类名称:Project
方法名:submit
暂无
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp)
throws IOException, ServletException, Descriptor.FormException {
super.submit(req, rsp);
setCustomWorkspace(
req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null);
}
代码示例来源:origin: etsy/jenkins-master-project
@Override
protected void submit(StaplerRequest req, StaplerResponse res)
throws IOException, ServletException, Descriptor.FormException {
// Handle the job list
jobNames.clear();
for (TopLevelItem item : Hudson.getInstance().getItems()) {
if (req.getParameter(item.getName()) != null) {
jobNames.add(item.getName());
}
}
super.submit(req, res);
}
代码示例来源:origin: hudson/hudson-2.x
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp)
throws IOException, ServletException, Descriptor.FormException {
super.submit(req, rsp);
setCustomWorkspace(
req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp)
throws IOException, ServletException, Descriptor.FormException {
super.submit(req, rsp);
setCustomWorkspace(
req.hasParameter("customWorkspace") ? req.getParameter("customWorkspace.directory") : null);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp)
throws IOException, ServletException, Descriptor.FormException {
super.submit(req, rsp);
JSONObject json = req.getSubmittedForm();
JSONObject customWorkspace = json.has("customWorkspace")?
json.getJSONObject("customWorkspace"):null;
setCustomWorkspace( customWorkspace != null?
customWorkspace.getString("directory") : null);
}
代码示例来源:origin: com.cloudbees.plugins/build-flow-plugin
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException {
super.submit(req, rsp);
JSONObject json = req.getSubmittedForm();
this.buildNeedsWorkspace = json.containsKey("buildNeedsWorkspace");
if (Jenkins.getInstance().hasPermission(Jenkins.RUN_SCRIPTS)) {
this.dsl = json.getString("dsl");
if (this.buildNeedsWorkspace) {
JSONObject o = json.getJSONObject("buildNeedsWorkspace");
this.dslFile = Util.fixEmptyAndTrim(o.getString("dslFile"));
} else {
this.dslFile = null;
}
}
}
代码示例来源:origin: i-m-c/jenkins-inheritance-plugin
super.submit(req, rsp);
代码示例来源:origin: hudson.plugins/project-inheritance
super.submit(req, rsp);
内容来源于网络,如有侵权,请联系作者删除!