本文整理了Java中hudson.model.AbstractProject.submit()
方法的一些代码示例,展示了AbstractProject.submit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractProject.submit()
方法的具体详情如下:
包路径:hudson.model.AbstractProject
类名称:AbstractProject
方法名:submit
暂无
代码示例来源:origin: jenkinsci/jenkins
@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.submit(req,rsp);
JSONObject json = req.getSubmittedForm();
getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this));
getBuildersList().rebuildHetero(req,json, Builder.all(), "builder");
getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher");
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.submit(req,rsp);
JSONObject json = req.getSubmittedForm();
buildBuildWrappers(req, json, BuildWrappers.getFor(this));
setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all()));
buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass()));
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException {
super.submit(req, rsp);
JSONObject json = req.getSubmittedForm();
buildBuildWrappers(req, json, BuildWrappers.getFor(this));
setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all()));
buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass()));
}
代码示例来源:origin: hudson/hudson-2.x
@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.submit(req,rsp);
JSONObject json = req.getSubmittedForm();
buildBuildWrappers(req, json, BuildWrappers.getFor(this));
setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all()));
buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass()));
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.submit(req,rsp);
JSONObject json = req.getSubmittedForm();
buildBuildWrappers(req, json, BuildWrappers.getFor(this));
setBuilders(DescribableListUtil.buildFromHetero(this, req, json, "builder", Builder.all()));
buildPublishers(req, json, BuildStepDescriptor.filter(Publisher.all(), this.getClass()));
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
protected void submit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.submit(req,rsp);
JSONObject json = req.getSubmittedForm();
getBuildWrappersList().rebuild(req,json, BuildWrappers.getFor(this));
getBuildersList().rebuildHetero(req,json, Builder.all(), "builder");
getPublishersList().rebuildHetero(req, json, Publisher.all(), "publisher");
}
代码示例来源:origin: org.jenkins-ci.plugins/matrix-project
@Override
protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException {
super.submit(req, rsp);
JSONObject json = req.getSubmittedForm();
if(req.getParameter("hasCombinationFilter")!=null) {
this.combinationFilter = Util.nullify(req.getParameter("combinationFilter"));
} else {
this.combinationFilter = null;
}
if(json.optBoolean("hasChildCustomWorkspace", json.has("childCustomWorkspace"))) {
setChildCustomWorkspace(Util.fixEmptyAndTrim(json.optString("childCustomWorkspace")));
} else {
setChildCustomWorkspace(null);
}
List<MatrixExecutionStrategyDescriptor> esd = getDescriptor().getExecutionStrategyDescriptors();
if (esd.size()>1)
executionStrategy = req.bindJSON(MatrixExecutionStrategy.class,json.getJSONObject("executionStrategy"));
else
executionStrategy = req.bindJSON(esd.get(0).clazz,json.getJSONObject("executionStrategy"));
DescribableList<Axis,AxisDescriptor> newAxes = new DescribableList<Axis,AxisDescriptor>(this);
newAxes.rebuildHetero(req, json, Axis.all(),"axis");
checkAxes(newAxes);
this.axes = new AxisList(newAxes.toList());
buildWrappers.rebuild(req, json, BuildWrappers.getFor(this));
builders.rebuildHetero(req, json, Builder.all(), "builder");
publishers.rebuildHetero(req, json, Publisher.all(), "publisher");
rebuildConfigurations(null);
}
内容来源于网络,如有侵权,请联系作者删除!