Package | Description |
---|---|
hudson.model |
Core object model that are bound to URLs via stapler, rooted at Hudson.
|
hudson.model.labels |
Boolean expression over labels.
|
hudson.model.queue | |
hudson.slaves |
Code related to slaves.
|
jenkins.model |
Modifier and Type | Method and Description |
---|---|
Label |
Label.and(Label rhs)
Returns the label that represents "this&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 that
Node . |
Label |
Queue.Item.getAssignedLabel()
If this task needs to be run on a node with a particular label,
return that
Label . |
Label |
ParameterValue.getAssignedLabel(SubTask task)
Controls where the build (that this parameter is submitted to) will happen.
|
Label |
ParametersAction.getAssignedLabel(SubTask task) |
Label |
Queue.Item.getAssignedLabelFor(SubTask st)
Test if the specified
SubTask needs to be run on a node with a particular label. |
Label |
Label.iff(Label rhs)
Returns the label that represents "this<->rhs"
|
Label |
Label.implies(Label rhs)
Returns the label that represents "this->rhs"
|
Label |
Label.not()
Returns the label that represents "!this"
|
Label |
Label.or(Label rhs)
Returns the label that represents "this|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 useful
|
static Label |
Label.parseExpression(String labelExpression)
Parses the expression into a label expression tree.
|
Modifier and Type | Method and Description |
---|---|
Set<Label> |
AbstractProject.getRelevantLabels()
Set of labels relevant to this job.
|
Modifier and Type | Method and Description |
---|---|
Label |
Label.and(Label rhs)
Returns the label that represents "this&rhs"
|
abstract FormValidation |
AbstractProject.LabelValidator.check(AbstractProject<?,?> project,
Label label)
Check the use of the label within the specified context.
|
int |
Label.compareTo(Label that) |
int |
Queue.countBuildableItemsFor(Label l)
How many
BuildableItem s are assigned for the given label? |
Label |
Label.iff(Label rhs)
Returns the label that represents "this<->rhs"
|
Label |
Label.implies(Label rhs)
Returns the label that represents "this->rhs"
|
Label |
Label.or(Label rhs)
Returns the label that represents "this|rhs"
|
protected void |
AbstractCIBase.resetLabel(Label l) |
void |
AbstractProject.setAssignedLabel(Label l)
Sets the assigned label.
|
int |
Queue.strictCountBuildableItemsFor(Label l)
How many
BuildableItem s are assigned for the given label?
The implementation is quite similar to Queue.countBuildableItemsFor(hudson.model.Label) ,
but it has another behavior for null parameters. |
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
Label |
LabelExpression.Not.base |
Label |
LabelExpression.Paren.base |
Label |
LabelExpression.Binary.lhs |
Label |
LabelExpression.Binary.rhs |
Modifier and Type | Method and Description |
---|---|
Label |
LabelExpressionParser.expr() |
Label |
LabelAssignmentAction.getAssignedLabel(SubTask task)
Reassigns where the task gets run.
|
Label |
LabelExpressionParser.term1() |
Label |
LabelExpressionParser.term2() |
Label |
LabelExpressionParser.term3() |
Label |
LabelExpressionParser.term4() |
Label |
LabelExpressionParser.term5() |
Label |
LabelExpressionParser.term6() |
Constructor and 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) |
Modifier and Type | Field and Description |
---|---|
Label |
MappingWorksheet.WorkChunk.assignedLabel
If this task needs to be run on a node with a particular label,
return that
Label . |
Label |
CauseOfBlockage.BecauseLabelIsOffline.label |
Label |
CauseOfBlockage.BecauseLabelIsBusy.label |
Modifier and Type | Method and Description |
---|---|
Label |
QueueTaskFilter.getAssignedLabel() |
Label |
AbstractSubTask.getAssignedLabel() |
Label |
SubTask.getAssignedLabel()
If this task needs to be run on a node with a particular label,
return that
Label . |
Constructor and Description |
---|
BecauseLabelIsBusy(Label label) |
BecauseLabelIsOffline(Label l) |
Modifier and Type | Method and Description |
---|---|
Label |
NodeProvisioner.StrategyState.getLabel()
The label under consideration.
|
Modifier and Type | Method and Description |
---|---|
CauseOfBlockage |
CloudProvisioningListener.canProvision(Cloud cloud,
Label label,
int numExecutors)
Allows extensions to prevent a cloud from provisioning.
|
abstract boolean |
Cloud.canProvision(Label label)
Returns true if this cloud is capable of provisioning new nodes for the given label.
|
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.
|
abstract Collection<NodeProvisioner.PlannedNode> |
Cloud.provision(Label label,
int excessWorkload)
Provisions new
Node s from this cloud. |
Constructor and Description |
---|
NodeProvisioner(Label label,
LoadStatistics loadStatistics) |
Modifier and Type | Method and Description |
---|---|
Label |
Jenkins.getLabel(String expr)
Gets the label that exists on this system by the name.
|
Modifier and Type | Method and Description |
---|---|
Set<Label> |
Jenkins.getLabels()
Gets all the active labels in the current system.
|
Copyright © 2017. All rights reserved.