public String getEntryDescription(Run entry) { return entry.getDescription(); }
private boolean fitsSearchParams(@Nonnull Run run) { if (searchString == null) { return true; } if (fitsSearchString(run.getDisplayName())) { return true; } else if (fitsSearchString(run.getDescription())) { return true; } else if (fitsSearchString(run.getNumber())) { return true; } else if (fitsSearchString(run.getQueueId())) { return true; } else if (fitsSearchString(run.getResult())) { return true; } else if (run instanceof AbstractBuild && fitsSearchBuildVariables((AbstractBuild) run)) { return true; } else { ParametersAction parametersAction = run.getAction(ParametersAction.class); if (parametersAction != null && fitsSearchBuildParameters(parametersAction)) { return true; } } // Non of the fuzzy matches "liked" the search term. return false; }
public String getEntryDescription(Run entry) { return entry.getDescription(); }
public String getEntryDescription(Run entry) { return (entry.getDescription()!= null ? DESCRIPTION_SUFIX + entry.getDescription(): null); }
public String getEntryDescription(Run entry) { return (entry.getDescription()!= null ? DESCRIPTION_SUFIX + entry.getDescription(): null); }
public String getEntryDescription(Run entry) { return (entry.getDescription()!= null ? DESCRIPTION_SUFIX + entry.getDescription(): null); }
public String getEntryDescription(Run entry) { return (entry.getDescription() != null ? DESCRIPTION_SUFIX + entry.getDescription() : null); }
public String superGetDescription() { return super.getDescription(); }
/** * Returns the description of the run used for the Stash notification. * Uses the run description provided by the Jenkins job, if available. * * @param run the run to be described * @param state the state of the run * @return the description of the run */ protected String getBuildDescription( final Run<?, ?> run, final StashBuildState state) { if (run.getDescription() != null && run.getDescription().trim().length() > 0) { return run.getDescription(); } else { switch (state) { case INPROGRESS: return "building on Jenkins @ " + getRootUrl(); default: return "built by Jenkins @ " + getRootUrl(); } } } }
@Override @Exported public String getDescription() { initPython(); if (pexec.isImplemented(18)) { return (String) pexec.execPython("get_description"); } else { return super.getDescription(); } }
private boolean fitsSearchParams(@Nonnull Run run) { if (searchString == null) { return true; } if (fitsSearchString(run.getDisplayName())) { return true; } else if (fitsSearchString(run.getDescription())) { return true; } else if (fitsSearchString(run.getNumber())) { return true; } else if (fitsSearchString(run.getQueueId())) { return true; } else if (fitsSearchString(run.getResult())) { return true; } else if (run instanceof AbstractBuild && fitsSearchBuildVariables((AbstractBuild) run)) { return true; } else { ParametersAction parametersAction = run.getAction(ParametersAction.class); if (parametersAction != null && fitsSearchBuildParameters(parametersAction)) { return true; } } // Non of the fuzzy matches "liked" the search term. return false; }
protected void sync() { R build = getBuild(); if ( build == null || build.hasLoadFailure() ) { return; } setBuildNumber( build.getNumber()); setResult( build.getResult()); setState( build.getState()); setBuilding( build.isBuilding()); setLogUpdated( build.isLogUpdated()); setTimeInMillis( build.getTimeInMillis()); setDisplayName( build.getDisplayName()); setDescription( build.getDescription()); setDuration( build.getDuration()); if ( build instanceof AbstractBuild) { setBuiltOnNodeName(((AbstractBuild)build).getBuiltOnStr()); setFullDisplayName( build.getFullDisplayName()); setUrl( build.getUrl()); } }