Uses of Class
hudson.model.Label
Package
Description
Beef up the plain text console output by adding HTML markup.
Core object model that are bound to URLs via stapler, rooted at
Jenkins
.Boolean expression over labels.
Code related to agents.
-
Uses of Label in hudson.console
-
Uses of Label in hudson.model
Modifier and TypeMethodDescriptionReturns the label that representsthis&&rhs
static Label
Obtains a label by its name.AbstractProject.getAssignedLabel()
If this project is configured to be always built on this node, return thatNode
.ParametersAction.getAssignedLabel
(SubTask task) ParameterValue.getAssignedLabel
(SubTask task) Controls where the build (that this parameter is submitted to) will happen.Queue.Item.getAssignedLabel()
If this task needs to be run on a node with a particular label, return thatLabel
.Queue.Item.getAssignedLabelFor
(SubTask st) Test if the specifiedSubTask
needs to be run on a node with a particular label.Returns the label that representsthis<->rhs
Returns the label that representsthis->rhs
Label.not()
Returns the label that represents!this
Returns the label that representsthis||rhs
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.Modifier and TypeMethodDescriptionAbstractProject.getRelevantLabels()
Set of labels relevant to this job.Modifier and TypeMethodDescriptionReturns 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.Deprecated.Validates the use of a label within a particular context.final int
int
Queue.countBuildableItemsFor
(Label l) How manyQueue.BuildableItem
s are assigned for the given label?Returns the label that representsthis<->rhs
Returns the label that representsthis->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
Modifier and TypeClassDescriptionclass
Atomic single token label, like "foo" or "bar".class
Boolean expression of labels.static final class
static class
static final class
static final class
static class
static final class
static class
No-op but useful for preserving the parenthesis in the user input.Modifier and TypeFieldDescriptionfinal Label
LabelExpression.Not.base
final Label
LabelExpression.Paren.base
LabelExpressionParser.ExprContext.l
LabelExpressionParser.Term1Context.l
LabelExpressionParser.Term2Context.l
LabelExpressionParser.Term3Context.l
LabelExpressionParser.Term4Context.l
LabelExpressionParser.Term5Context.l
LabelExpressionParser.Term6Context.l
final Label
LabelExpression.Binary.lhs
LabelExpressionParser.Term1Context.r
LabelExpressionParser.Term2Context.r
LabelExpressionParser.Term3Context.r
LabelExpressionParser.Term4Context.r
final Label
LabelExpression.Binary.rhs
Modifier and TypeMethodDescriptionLabelAssignmentAction.getAssignedLabel
(SubTask task) Reassigns where the task gets run. -
Uses of Label in hudson.model.queue
Modifier and TypeFieldDescriptionfinal Label
MappingWorksheet.WorkChunk.assignedLabel
If this task needs to be run on a node with a particular label, return thatLabel
.final Label
CauseOfBlockage.BecauseLabelIsBusy.label
final Label
CauseOfBlockage.BecauseLabelIsOffline.label
Modifier and TypeMethodDescriptionQueueTaskFilter.getAssignedLabel()
default Label
SubTask.getAssignedLabel()
If this task needs to be run on a node with a particular label, return thatLabel
. -
Uses of Label in hudson.slaves
Modifier and TypeMethodDescriptionCloud.CloudState.getLabel()
The label under consideration.NodeProvisioner.StrategyState.getLabel()
The label under consideration.Modifier and TypeMethodDescriptionboolean
Cloud.canProvision
(Label label) Deprecated.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.Deprecated.UseCloud.provision(CloudState, int)
instead.ModifierConstructorDescriptionCloudState
(Label label, int additionalPlannedCapacity) NodeProvisioner
(Label label, LoadStatistics loadStatistics) -
Uses of Label in jenkins.model
Modifier and TypeMethodDescriptionGets the label that exists on this system by the name. -
Uses of Label in jenkins.model.labels
Modifier and TypeMethodDescriptionValidates the use of a label within a particular context.
Cloud.canProvision(CloudState)
instead.