/** * @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(); }
public void keepLog(boolean newValue) throws IOException { checkPermission(newValue ? UPDATE : DELETE); keepLog = newValue; save(); }
public void setDescription(String description) throws IOException { checkPermission(UPDATE); this.description = description; save(); }
/** * 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); } }
save(); } catch (IOException e) { LOGGER.log(Level.SEVERE, "Failed to save build record",e);
public void setDescription(String description) throws IOException { checkPermission(UPDATE); this.description = description; save(); }
/** * @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(); }
public void setDescription(String description) throws IOException { checkPermission(UPDATE); this.description = description; save(); }
/** * @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(); }
public void keepLog(boolean newValue) throws IOException { checkPermission(UPDATE); keepLog = newValue; save(); }
/** * @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(); }
public void keepLog(boolean newValue) throws IOException { checkPermission(UPDATE); keepLog = newValue; save(); }
/** * @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(); }
public void setDescription(String description) throws IOException { checkPermission(UPDATE); this.description = description; save(); }
@Override public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException { option.execute(run, launcher, listener); run.save(); }
public void setDescription(String description) throws IOException { checkPermission(UPDATE); this.description = description; save(); }
/** * 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(); }
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(); }
@Override public synchronized void save() throws IOException { initPython(); if (pexec.isImplemented(62)) { pexec.execPythonVoid("save"); } else { super.save(); } }
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(); }