本文整理了Java中hudson.model.Run.save
方法的一些代码示例,展示了Run.save
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Run.save
方法的具体详情如下:
包路径:hudson.model.Run
类名称:Run
方法名:save
[英]Save the settings to a file.
[中]将设置保存到文件中。
代码示例来源:origin: jenkinsci/jenkins
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public void setDisplayName(String value) throws IOException {
checkPermission(UPDATE);
this.displayName = value;
save();
}
代码示例来源:origin: jenkinsci/jenkins
public void keepLog(boolean newValue) throws IOException {
checkPermission(newValue ? UPDATE : DELETE);
keepLog = newValue;
save();
}
代码示例来源:origin: jenkinsci/jenkins
public void setDescription(String description) throws IOException {
checkPermission(UPDATE);
this.description = description;
save();
}
代码示例来源:origin: jenkinsci/jenkins
/**
* Selects an object responsible for storing and retrieving build artifacts.
* The first time this is called on a running build, {@link ArtifactManagerConfiguration} is checked
* to see if one will handle this build.
* If so, that manager is saved in the build and it will be used henceforth.
* If no manager claimed the build, {@link StandardArtifactManager} is used.
* <p>This method should be used when a build step expects to archive some artifacts.
* If only displaying existing artifacts, use {@link #getArtifactManager} instead.
* @return an appropriate artifact manager
* @throws IOException if a custom manager was selected but the selection could not be saved
* @since 1.532
*/
public final synchronized @Nonnull ArtifactManager pickArtifactManager() throws IOException {
if (artifactManager != null) {
return artifactManager;
} else {
for (ArtifactManagerFactory f : ArtifactManagerConfiguration.get().getArtifactManagerFactories()) {
ArtifactManager mgr = f.managerFor(this);
if (mgr != null) {
artifactManager = mgr;
save();
return mgr;
}
}
return new StandardArtifactManager(this);
}
}
代码示例来源:origin: jenkinsci/jenkins
save();
} catch (IOException e) {
LOGGER.log(Level.SEVERE, "Failed to save build record",e);
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
public void setDescription(String description) throws IOException {
checkPermission(UPDATE);
this.description = description;
save();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public void setDisplayName(String value) throws IOException {
checkPermission(UPDATE);
this.displayName = value;
save();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public void setDescription(String description) throws IOException {
checkPermission(UPDATE);
this.description = description;
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public void setDisplayName(String value) throws IOException {
checkPermission(UPDATE);
this.displayName = value;
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public void keepLog(boolean newValue) throws IOException {
checkPermission(UPDATE);
keepLog = newValue;
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public void setDisplayName(String value) throws IOException {
checkPermission(UPDATE);
this.displayName = value;
save();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public void keepLog(boolean newValue) throws IOException {
checkPermission(UPDATE);
keepLog = newValue;
save();
}
代码示例来源:origin: hudson/hudson-2.x
/**
* @param value
* Set to null to revert back to the default "#NNN".
*/
public void setDisplayName(String value) throws IOException {
checkPermission(UPDATE);
this.displayName = value;
save();
}
代码示例来源:origin: hudson/hudson-2.x
public void setDescription(String description) throws IOException {
checkPermission(UPDATE);
this.description = description;
save();
}
代码示例来源:origin: jenkinsci/docker-plugin
@Override
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException {
option.execute(run, launcher, listener);
run.save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public void setDescription(String description) throws IOException {
checkPermission(UPDATE);
this.description = description;
save();
}
代码示例来源:origin: org.jenkins-ci.plugins/pipeline-input-step
/**
* Called when {@link InputStepExecution} is completed to remove it from the active input list.
*/
public synchronized void remove(InputStepExecution exec) throws IOException, InterruptedException, TimeoutException {
loadExecutions();
if (executions == null) {
throw new IOException("cannot load state");
}
executions.remove(exec);
ids.remove(exec.getId());
run.save();
}
代码示例来源:origin: groupon/DotCi
private void addProcessedYamlToDotCiInfoAction(final Run run, final Map config) throws IOException {
final DotCiBuildInfoAction dotCiBuildInfoAction = run.getAction(DotCiBuildInfoAction.class);
if (dotCiBuildInfoAction == null) {
run.addAction(new DotCiBuildInfoAction(new Yaml().dump(config)));
} else {
dotCiBuildInfoAction.setBuildConfiguration(new Yaml().dump(config));
}
run.save();
}
代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper
@Override
public synchronized void save() throws IOException {
initPython();
if (pexec.isImplemented(62)) {
pexec.execPythonVoid("save");
} else {
super.save();
}
}
代码示例来源:origin: groupon/DotCi
private void addExecutionInfoAction(final Run run, final ShellCommands commands) throws IOException {
final DotCiBuildInfoAction dotCiBuildInfoAction = run.getAction(DotCiBuildInfoAction.class);
if (dotCiBuildInfoAction == null) {
run.addAction(new DotCiBuildInfoAction(commands));
} else {
dotCiBuildInfoAction.addCommands(commands);
}
run.save();
}
内容来源于网络,如有侵权,请联系作者删除!