本文整理了Java中hudson.model.Job.getFullDisplayName()
方法的一些代码示例,展示了Job.getFullDisplayName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Job.getFullDisplayName()
方法的具体详情如下:
包路径:hudson.model.Job
类名称:Job
方法名:getFullDisplayName
暂无
代码示例来源:origin: jenkinsci/jenkins
@Override public String getShortDescription() {
return name + "=" + job.getFullDisplayName();
}
}
代码示例来源:origin: jenkinsci/jenkins
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName()+' '+getDisplayName();
}
代码示例来源:origin: jenkinsci/jenkins
ParametersDefinitionProperty pdp = job.getProperty(ParametersDefinitionProperty.class);
if (pdp==null)
throw new IllegalStateException(job.getFullDisplayName()+" is not parameterized but the -p option was specified.");
SCMTriggerItem item = SCMTriggerItem.SCMTriggerItems.asSCMTriggerItem(job);
if (item == null)
throw new AbortException(job.getFullDisplayName()+" has no SCM trigger, but checkSCM was specified");
String msg = Messages.BuildCommand_CLICause_CannotBuildUnknownReasons(job.getFullDisplayName());
if (job instanceof ParameterizedJobMixIn.ParameterizedJob && ((ParameterizedJobMixIn.ParameterizedJob) job).isDisabled()) {
msg = Messages.BuildCommand_CLICause_CannotBuildDisabled(job.getFullDisplayName());
} else if (job.isHoldOffBuildUntilSave()){
msg = Messages.BuildCommand_CLICause_CannotBuildConfigNotSaved(job.getFullDisplayName());
代码示例来源:origin: jenkinsci/jenkins
@Override protected synchronized JSON data() {
JSONArray r = new JSONArray();
for (User u : modified) {
UserInfo i = users.get(u);
JSONObject entry = new JSONObject().
accumulate("id", u.getId()).
accumulate("fullName", u.getFullName()).
accumulate("url", u.getUrl()).
accumulate("avatar", i.avatar != null ? i.avatar : Stapler.getCurrentRequest().getContextPath() + Functions.getResourcePath() + "/images/" + iconSize + "/user.png").
accumulate("timeSortKey", i.getTimeSortKey()).
accumulate("lastChangeTimeString", i.getLastChangeTimeString());
Job,?> p = i.getJob();
if (p != null) {
entry.accumulate("projectUrl", p.getUrl()).accumulate("projectFullDisplayName", p.getFullDisplayName());
}
r.add(entry);
}
modified.clear();
return r;
}
代码示例来源:origin: jenkinsci/jenkins
@Override protected void calculate(Run,?> build, JSONObject element) {
BallColor icOnColor= build.getIconColor();
element.put("iconColorOrdinal", iconColor.ordinal());
element.put("iconColorDescription", iconColor.getDescription());
element.put("url", build.getUrl());
element.put("buildStatusUrl", build.getBuildStatusUrl());
element.put("parentUrl", build.getParent().getUrl());
element.put("parentFullDisplayName", Functions.breakableString(Functions.escape(build.getParent().getFullDisplayName())));
element.put("displayName", build.getDisplayName());
element.put("timestampString", build.getTimestampString());
element.put("timestampString2", build.getTimestampString2());
element.put("timestampString3", Util.XS_DATETIME_FORMATTER.format(new Date(build.getStartTimeInMillis())));
Run.Summary buildStatusSummary = build.getBuildStatusSummary();
element.put("buildStatusSummaryWorse", buildStatusSummary.isWorse);
element.put("buildStatusSummaryMessage", buildStatusSummary.message);
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override public String getShortDescription() {
return name + "=" + job.getFullDisplayName();
}
}
代码示例来源:origin: jenkinsci/gerrit-trigger-plugin
@Override
public String getShortDescription() {
return Messages.DependentBuildIsBuilding(blockingProject.getFullDisplayName());
}
}
代码示例来源:origin: jenkinsci/parameterized-trigger-plugin
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public String getProjectListAsString(List
StringBuilder projectListString = new StringBuilder();
for (Iterator
Job project = iterator.next();
projectListString.append(HyperlinkNote.encodeTo('/'+ project.getUrl(), project.getFullDisplayName()));
if(iterator.hasNext()){
projectListString.append(", ");
}
}
return projectListString.toString();
}
代码示例来源:origin: jenkinsci/dockerhub-notification-plugin
public void onTriggered(@Nonnull Job job, @Nonnull PushNotification pushNotification) {
logger.log(Level.FINER, "Job {0} triggered for payload: {1}", new Object[]{job.getFullDisplayName(), pushNotification});
TriggerStore.getInstance().triggered(pushNotification, job);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName()+' '+getDisplayName();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName()+' '+getDisplayName();
}
代码示例来源:origin: jenkinsci/dockerhub-notification-plugin
public synchronized void triggered(@Nonnull final PushNotification pushNotification, Job, ?> job) {
try {
TriggerEntry entry = getOrCreateEntry(pushNotification);
entry.addEntry(job);
save(entry);
} catch (Exception e) {
logger.log(Level.SEVERE, "Failed to update triggered info for " + job.getFullDisplayName(), e);
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName()+' '+getDisplayName();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName() + ' ' + getDisplayName();
}
代码示例来源:origin: hudson/hudson-2.x
@Exported
public String getFullDisplayName() {
return project.getFullDisplayName()+' '+getDisplayName();
}
代码示例来源:origin: jenkinsci/jira-plugin
public List
Job, ?> cOntext= Stapler.getCurrentRequest().findAncestorObject(Job.class);
JiraSite site = JiraSite.get(context);
if (site == null)
throw new IllegalStateException("JIRA site needs to be configured in the project " + context.getFullDisplayName());
JiraSession session = site.getSession();
if (session == null) throw new IllegalStateException("Remote access for JIRA isn't configured in Jenkins");
return session.getVersions(projectKey).stream().
sorted( VersionComparator.INSTANCE ).
filter( version -> match( version ) ).
map( version -> new Result( version )).
collect( Collectors.toList() );
}
代码示例来源:origin: jenkinsci/jira-plugin
public List
Job, ?> cOntext= Stapler.getCurrentRequest().findAncestorObject(Job.class);
JiraSite site = JiraSite.get(context);
if (site == null)
throw new IllegalStateException("JIRA site needs to be configured in the project " + context.getFullDisplayName());
JiraSession session = site.getSession();
if (session == null) throw new IllegalStateException("Remote access for JIRA isn't configured in Jenkins");
List
List
for (Issue issue : fixNull(issues)) {
issueValues.add(new Result(issue));
}
return issueValues;
}
代码示例来源:origin: jenkinsci/build-failure-analyzer-plugin
@Override
public void onStarted(Run build, TaskListener listener) {
if (PluginImpl.shouldScan(build)
&& build.getParent().getProperty(ScannerJobProperty.class) == null) {
try {
build.getParent().addProperty(new ScannerJobProperty(false));
} catch (IOException e) {
logger.log(Level.WARNING, "Failed to add a ScannerJobProperty to "
+ build.getParent().getFullDisplayName(), e);
listener.getLogger().println("[BFA] WARNING! Failed to add the scanner property to this job.");
}
}
}
代码示例来源:origin: Diabol/delivery-pipeline-plugin
public static ListBoxModel fillAllProjects(ItemGroup> context, Class extends Job> type) {
ListBoxModel optiOns= new ListBoxModel();
for (Job p : JenkinsUtil.getInstance().getAllItems(type)) {
options.add(p.getFullDisplayName(), p.getRelativeNameFrom(context));
}
return options;
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override protected void calculate(Run,?> build, JSONObject element) {
BallColor icOnColor= build.getIconColor();
element.put("iconColorOrdinal", iconColor.ordinal());
element.put("iconColorDescription", iconColor.getDescription());
element.put("url", build.getUrl());
element.put("buildStatusUrl", build.getBuildStatusUrl());
element.put("parentUrl", build.getParent().getUrl());
element.put("parentFullDisplayName", Functions.breakableString(Functions.escape(build.getParent().getFullDisplayName())));
element.put("displayName", build.getDisplayName());
element.put("timestampString", build.getTimestampString());
element.put("timestampString2", build.getTimestampString2());
element.put("timestampString3", Util.XS_DATETIME_FORMATTER.format(new Date(build.getStartTimeInMillis())));
Run.Summary buildStatusSummary = build.getBuildStatusSummary();
element.put("buildStatusSummaryWorse", buildStatusSummary.isWorse);
element.put("buildStatusSummaryMessage", buildStatusSummary.message);
}