public class LabelLinkedJobsAction extends AbstractLinkedJobsAction
This class is responsible for building and collecting the data necessary to build this additional page. Besides boiler-plate code for pure UI purpose, the interesting function is getJobsGroups, which scans all Jobs/Projects of this Jenkins instance
Constructor and Description |
---|
LabelLinkedJobsAction(hudson.model.labels.LabelAtom labelAtom) |
Modifier and Type | Method and Description |
---|---|
protected List<JobsGroup> |
buildResult(HashMap<hudson.model.Label,JobsGroup> tmpResult) |
List<JobsGroup> |
getJobsGroups()
This function retrieves all jobs existing on this jenkins instance and
group them by "assigned label", keeping only such labels that contains
the particular label of this LabelLinkedJobsAction instance
|
hudson.model.labels.LabelAtom |
getLabel() |
List<hudson.slaves.Cloud> |
getProvisioningClouds() |
int |
getSize(List<hudson.slaves.Cloud> l) |
String |
getTitle() |
protected boolean |
isLabelRelevant(hudson.model.Label jobLabel) |
buildJobsGroups, getDetailedView, getDisplayName, getIconFileName, getUrlName
public LabelLinkedJobsAction(hudson.model.labels.LabelAtom labelAtom)
public String getTitle()
public hudson.model.labels.LabelAtom getLabel()
public List<hudson.slaves.Cloud> getProvisioningClouds()
public int getSize(List<hudson.slaves.Cloud> l)
public List<JobsGroup> getJobsGroups()
protected List<JobsGroup> buildResult(HashMap<hudson.model.Label,JobsGroup> tmpResult)
buildResult
in class AbstractLinkedJobsAction
protected boolean isLabelRelevant(hudson.model.Label jobLabel)
isLabelRelevant
in class AbstractLinkedJobsAction
Copyright © 2016–2020. All rights reserved.