protected int run() throws Exception { Run run = job.getBuildByNumber(number); if (run == null) throw new IllegalArgumentException("No such build #"+number); run.checkPermission(Run.UPDATE); if ("=".equals(description)) { description = IOUtils.toString(stdin); } run.setDescription(description); return 0; }
protected void submit(JSONObject json) throws IOException { setDisplayName(Util.fixEmptyAndTrim(json.getString("displayName"))); setDescription(json.getString("description")); }
/** * Accepts the new description. */ @RequirePOST public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
@Override public void onStarted(Run<?, ?> build, TaskListener listener) { GitLabPushTrigger trigger = GitLabPushTrigger.getFromJob(build.getParent()); if (trigger != null && trigger.getSetBuildDescription()) { Cause cause = build.getCause(GitLabWebHookCause.class); if (cause != null && !cause.getShortDescription().isEmpty()) { try { build.setDescription(cause.getShortDescription()); } catch (IOException e) { listener.getLogger().println("Failed to set build description"); } } } }
private void setBuildDescription(final Run<?,?> build) { try { build.setDescription("Aborting build by `Bitbucket Pullrequest Builder Plugin`: " + build + " since PR is outdated"); } catch (IOException e) { logger.warning("Can't set up build description due to an IOException: " + e.getMessage()); } }
public void updateBuildDescription(Run<?, ?> build, String description, TaskListener listener) { if (updateBuildDescription && !StringUtils.isBlank(description)) { try { build.setDescription(description); } catch (IOException e) { listener.getLogger().println("Failed to set build description"); } } }
protected int run() throws Exception { Run run = job.getBuildByNumber(number); if (run == null) throw new IllegalArgumentException("No such build #"+number); run.checkPermission(Run.UPDATE); if ("=".equals(description)) { description = IOUtils.toString(stdin); } run.setDescription(description); return 0; }
protected void submit(JSONObject json) throws IOException { setDisplayName(Util.fixEmptyAndTrim(json.getString("displayName"))); setDescription(json.getString("description")); } public static final XStream XSTREAM = new XStream2();
protected void submit(JSONObject json) throws IOException { setDisplayName(Util.fixEmptyAndTrim(json.getString("displayName"))); setDescription(json.getString("description")); }
protected void submit(JSONObject json) throws IOException { setDisplayName(Util.fixEmptyAndTrim(json.getString("displayName"))); setDescription(json.getString("description")); }
protected void submit(JSONObject json) throws IOException { setDisplayName(Util.fixEmptyAndTrim(json.getString("displayName"))); setDescription(json.getString("description")); }
public void onStarted(Run run) { StashCause cause = this.getCause(run); if (cause == null) { return; } try { run.setDescription(cause.getShortDescription()); } catch (IOException e) { logger.log(Level.SEVERE, "Can't update build description", e); } }
/** * Accepts the new description. */ public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
/** * Accepts the new description. */ public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
/** * Accepts the new description. */ public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
/** * Accepts the new description. */ public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
protected int run() throws Exception { Run run = job.getBuildByNumber(number); run.checkPermission(Run.UPDATE); if ("=".equals(description)) { description = channel.call(new Callable<String,IOException>() { public String call() throws IOException { return IOUtils.toString(System.in); } }); } run.setDescription(description); return 0; }
/** * Accepts the new description. */ @RequirePOST public synchronized void doSubmitDescription( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { setDescription(req.getParameter("description")); rsp.sendRedirect("."); // go to the top page }
void onStarted(BitbucketCause cause, Run<?, ?> build) { if (cause == null) { return; } try { build.setDescription(cause.getShortDescription()); String buildUrl = getBuildUrl(build.getUrl()); repository.setBuildStatus(cause, BuildState.INPROGRESS, buildUrl); } catch (IOException e) { logger.log(Level.SEVERE, "Can't update build description", e); } }
@Override public void setDescription(String description) throws IOException { initPython(); if (pexec.isImplemented(76)) { pexec.execPythonVoid("set_description", description); } else { super.setDescription(description); } }