Uses of Class
hudson.model.Label
-
Packages that use Label Package Description hudson.console Beef up the plain text console output by adding HTML markup.hudson.model Core object model that are bound to URLs via stapler, rooted atJenkins
.hudson.model.labels Boolean expression over labels.hudson.model.queue hudson.slaves Code related to agents.jenkins.model jenkins.model.labels -
-
Uses of Label in hudson.console
Methods in hudson.console with parameters of type Label Modifier and Type Method Description static String
ModelHyperlinkNote. encodeTo(Label label)
-
Uses of Label in hudson.model
Methods in hudson.model that return Label Modifier and Type Method Description Label
Label. and(Label rhs)
Returns the label that representsthis&&rhs
static Label
Label. get(String l)
Obtains a label by its name.Label
AbstractProject. getAssignedLabel()
If this project is configured to be always built on this node, return thatNode
.Label
ParametersAction. getAssignedLabel(SubTask task)
Label
ParameterValue. getAssignedLabel(SubTask task)
Controls where the build (that this parameter is submitted to) will happen.Label
Queue.Item. getAssignedLabel()
If this task needs to be run on a node with a particular label, return thatLabel
.Label
Queue.Item. getAssignedLabelFor(SubTask st)
Test if the specifiedSubTask
needs to be run on a node with a particular label.Label
Label. iff(Label rhs)
Returns the label that representsthis<->rhs
Label
Label. implies(Label rhs)
Returns the label that representsthis->rhs
Label
Label. not()
Returns the label that represents!this
Label
Label. or(Label rhs)
Returns the label that representsthis||rhs
Label
Label. paren()
Returns the label that represents(this)
This is a pointless operation for machines, but useful for humans who find the additional parenthesis often usefulstatic Label
Label. parseExpression(String labelExpression)
Parses the expression into a label expression tree.Methods in hudson.model that return types with arguments of type Label Modifier and Type Method Description Set<Label>
AbstractProject. getRelevantLabels()
Set of labels relevant to this job.Methods in hudson.model with parameters of type Label Modifier and Type Method Description Label
Label. and(Label rhs)
Returns the label that representsthis&&rhs
abstract FormValidation
AbstractProject.LabelValidator. check(AbstractProject<?,?> project, Label label)
Deprecated.Check the use of the label within the specified context.FormValidation
AbstractProject.LabelValidator. checkItem(Item item, Label label)
Deprecated.Validates the use of a label within a particular context.int
Label. compareTo(Label that)
int
Queue. countBuildableItemsFor(Label l)
How manyQueue.BuildableItem
s are assigned for the given label?Label
Label. iff(Label rhs)
Returns the label that representsthis<->rhs
Label
Label. implies(Label rhs)
Returns the label that representsthis->rhs
Label
Label. or(Label rhs)
Returns the label that representsthis||rhs
protected void
AbstractCIBase. resetLabel(Label l)
void
AbstractProject. setAssignedLabel(Label l)
Sets the assigned label.int
Queue. strictCountBuildableItemsFor(Label l)
How manyQueue.BuildableItem
s are assigned for the given label? -
Uses of Label in hudson.model.labels
Subclasses of Label in hudson.model.labels Modifier and Type Class Description class
LabelAtom
Atomic single token label, like "foo" or "bar".class
LabelExpression
Boolean expression of labels.static class
LabelExpression.And
static class
LabelExpression.Binary
static class
LabelExpression.Iff
static class
LabelExpression.Implies
static class
LabelExpression.Not
static class
LabelExpression.Or
static class
LabelExpression.Paren
No-op but useful for preserving the parenthesis in the user input.Fields in hudson.model.labels declared as Label Modifier and Type Field Description Label
LabelExpression.Not. base
Label
LabelExpression.Paren. base
Label
LabelExpressionParser.ExprContext. l
Label
LabelExpressionParser.Term1Context. l
Label
LabelExpressionParser.Term2Context. l
Label
LabelExpressionParser.Term3Context. l
Label
LabelExpressionParser.Term4Context. l
Label
LabelExpressionParser.Term5Context. l
Label
LabelExpressionParser.Term6Context. l
Label
LabelExpression.Binary. lhs
Label
LabelExpressionParser.Term1Context. r
Label
LabelExpressionParser.Term2Context. r
Label
LabelExpressionParser.Term3Context. r
Label
LabelExpressionParser.Term4Context. r
Label
LabelExpression.Binary. rhs
Methods in hudson.model.labels that return Label Modifier and Type Method Description Label
LabelAssignmentAction. getAssignedLabel(SubTask task)
Reassigns where the task gets run.Constructors in hudson.model.labels with parameters of type Label Constructor Description And(Label lhs, Label rhs)
Binary(Label lhs, Label rhs, LabelOperatorPrecedence op)
Iff(Label lhs, Label rhs)
Implies(Label lhs, Label rhs)
Not(Label base)
Or(Label lhs, Label rhs)
Paren(Label base)
-
Uses of Label in hudson.model.queue
Fields in hudson.model.queue declared as Label Modifier and Type Field Description Label
MappingWorksheet.WorkChunk. assignedLabel
If this task needs to be run on a node with a particular label, return thatLabel
.Label
CauseOfBlockage.BecauseLabelIsBusy. label
Label
CauseOfBlockage.BecauseLabelIsOffline. label
Methods in hudson.model.queue that return Label Modifier and Type Method Description Label
QueueTaskFilter. getAssignedLabel()
default Label
SubTask. getAssignedLabel()
If this task needs to be run on a node with a particular label, return thatLabel
.Constructors in hudson.model.queue with parameters of type Label Constructor Description BecauseLabelIsBusy(Label label)
BecauseLabelIsOffline(Label l)
-
Uses of Label in hudson.slaves
Methods in hudson.slaves that return Label Modifier and Type Method Description Label
Cloud.CloudState. getLabel()
The label under consideration.Label
NodeProvisioner.StrategyState. getLabel()
The label under consideration.Methods in hudson.slaves with parameters of type Label Modifier and Type Method Description boolean
Cloud. canProvision(Label label)
Deprecated.UseCloud.canProvision(CloudState)
instead.CauseOfBlockage
CloudProvisioningListener. canProvision(Cloud cloud, Label label, int numExecutors)
Deprecated.void
CloudProvisioningListener. onStarted(Cloud cloud, Label label, Collection<NodeProvisioner.PlannedNode> plannedNodes)
Called after a cloud has returned a PlannedNode, but before that node is necessarily ready for connection.Collection<NodeProvisioner.PlannedNode>
Cloud. provision(Label label, int excessWorkload)
Deprecated.UseCloud.provision(CloudState, int)
instead.Constructors in hudson.slaves with parameters of type Label Constructor Description CloudState(Label label, int additionalPlannedCapacity)
NodeProvisioner(Label label, LoadStatistics loadStatistics)
-
Uses of Label in jenkins.model
Methods in jenkins.model that return Label Modifier and Type Method Description Label
Jenkins. getLabel(String expr)
Gets the label that exists on this system by the name.Methods in jenkins.model that return types with arguments of type Label Modifier and Type Method Description Set<Label>
Jenkins. getLabels()
Gets all the active labels in the current system. -
Uses of Label in jenkins.model.labels
Methods in jenkins.model.labels with parameters of type Label Modifier and Type Method Description FormValidation
LabelValidator. check(Item item, Label label)
Validates the use of a label within a particular context.
-