A shortcut can be used to reference a property without knowing the exact name of the object that contains the property. You might think of a shortcut as another part of the property hierarchy. Shortcuts resolve to the correct property path even though its path elements may have changed because a project or procedure was renamed. Shortcuts are particularly useful if you do not know your exact location in the property hierarchical tree.
A shortcut can be used to reference a property without knowing the exact name of the object that contains the property. You might think of a shortcut as another part of the property hierarchy. Shortcuts resolve to the correct property path even though its path elements may have changed because a project or procedure was renamed. Shortcuts are particularly useful if you do not know your exact location in the property hierarchical tree.
Available shortcut contexts
The table below lists all shortcuts and the context in which they are available. Click on a shortcut name for more information about it.
Shortcut Name | Available Context | ||
---|---|---|---|
job, step, or job step |
pipeline, task, stage, or gate |
Context Independent |
|
myApplication |
✓ |
N/A |
N/A |
myApplicationTier |
✓ |
N/A |
N/A |
myArtifactVersion |
N/A |
N/A |
|
myCluster |
✓ |
N/A |
N/A |
myComponent |
✓ |
N/A |
N/A |
myCredential |
✓ |
✓ |
N/A |
myEvent |
N/A |
N/A |
✓ |
myEnvironment |
✓ |
N/A |
N/A |
myEnvironmentTier |
✓ |
N/A |
N/A |
myGate |
✓ |
✓ |
N/A |
myGateRuntime |
✓ |
✓ |
N/A |
myGroupTaskRuntime[/myGroupTaskRuntime] |
✓ |
✓ |
N/A |
myJob |
✓ |
N/A |
N/A |
myJobStep |
✓ |
N/A |
N/A |
myMicroserviceRuntime |
✓ |
N/A |
N/A |
myParent |
✓ |
N/A |
N/A |
myPipeline |
✓ |
✓ |
|
myPipelineRuntime |
✓ |
✓ |
N/A |
myPipelineStageRuntime |
✓ |
✓ |
|
myProcedure |
✓ |
N/A |
N/A |
myProcess |
✓ |
N/A |
N/A |
myProcessStep |
✓ |
N/A |
N/A |
myProject |
✓ |
✓ |
N/A |
myResource |
✓ |
N/A |
N/A |
myResourcePool |
✓ |
N/A |
N/A |
myRetrievedArtifact |
✓ |
N/A |
N/A |
myService |
✓ |
N/A |
N/A |
myStage |
✓ |
✓ |
N/A |
myStageRuntime |
✓ |
✓ |
N/A |
myStep |
✓ |
N/A |
N/A |
myState |
✓ |
N/A |
N/A |
mySubjob |
✓ |
N/A |
N/A |
mySubworkflow |
✓ |
N/A |
N/A |
myTask |
✓ |
✓ |
N/A |
myTaskRuntime |
✓ |
✓ |
N/A |
myTransition |
✓ |
N/A |
N/A |
myTriggeringPipelineRuntime |
✓ |
✓ |
N/A |
myUser |
N/A |
N/A |
✓ |
myWorkflow |
✓ |
N/A |
N/A |
myWorkflowDefinition |
✓ |
N/A |
N/A |
myWorkspace |
✓ |
N/A |
N/A |
Shortcut reference
Shortcuts to property paths that provide convenient run-time access include:
Property | Description |
---|---|
|
Start in the property sheet for the |
|
Start in the property sheet for the |
|
Start in the property sheet for the |
|
Start in the property sheet for the |
|
Start in the property sheet for the |
|
Start in the property sheet for the credential associated with the current job step. This form produces an error if the current job step does not have a credential. |
|
Start in the property sheet for the deployer runtime to retrieve information for the current deployer runtime instance. Examples:
|
|
This is a special property used only within an email notifier.
|
|
Start in the property sheet for the |
|
Start in the property sheet for the |
|
|
|
Start in the property sheet for the gate runtime to retrieve information for the current gate runtime instance. Examples:
|
|
Examples:
|
|
Starts in the property sheet for the environment inventory. |
|
Start in the global property sheet for the current job. |
|
Start in the property sheet for the current job step. |
|
Start in the property sheet for the |
|
Start in the global property sheet for the parent job step or job if this is a top-level step. In addition, you can reference a sibling step by calling |
|
Start in the property sheet for the |
|
Start in the property sheet for the Examples:
|
|
Start in the property sheet for the |
|
Starts in the property sheet for the plugin associated with the current job. |
|
Start in the property sheet for the procedure in which the current job step was defined. If the current job step is executing as part of a nested procedure, |
|
Start in the property sheet for the application or component process in which the current job or job step was defined. |
|
Start in the property sheet for the application or component process step in which the current job step was defined. |
|
Start in the property sheet for the project in which the current job step was defined. If the job step has nested procedure invocations, this is the project associated with the innermost nested procedure, for example, the project associated with |
|
Start in the property sheet for the resource assigned to the current job step. |
|
Start in the property sheet for the resource pool that provided the resource for the current job step. Returns null if the step did not specify a resource pool. |
|
Start in the property sheet for the pipeline stage in which the current job or job step was defined. |
|
Start in the property sheet for the stage runtime for the current stage runtime instance. This can be used to retrieve information for the summary property of the stage runtime. Examples:
|
|
Start in the property sheet for the current step. "Step" refers to the (static) definition of a step, which is part of a procedure– this is different from a job step, which represents a step when it executes (dynamically) in a job. Use |
|
Start in the property sheet for the state object so you can reference built-in and custom state properties or find parameter values passed to that state. When accessed from a state, |
|
Start in the property sheet for the subjob so you can reference built-in and custom job properties, parameters passed to the job, and properties on steps within that job. When accessed from a transition, |
|
Start in the property sheet for the subworkflow so you can reference built-in and custom workflow properties. When accessed from a transition, |
|
Start in the property sheet for the pipeline task in which the current job or job step was defined. |
|
Start in the property sheet for the task runtime. This can be used to retrieve information for the summary property of the task runtime. Examples:
|
|
Start in the property sheet for the transition object so you can reference intrinsic and custom transition properties. |
|
In a situation where a pipeline triggers a sub-pipeline, this property accesses the runtime context of the parent pipeline from within the sub-pipeline runtime context. |
|
This property can be used only if the current session is associated with: the predefined "admin" user, a user defined as "local", or a user defined by a Directory Provider (LDAP or ActiveDirectory). This property cannot be used if the user is a "project principal", which is normally the case when running inside a CloudBees CD/RO step. For example, with an interactive login you can use: |
|
Start in the property sheet for the workflow object so you can reference built-in and custom workflow properties. When accessed from a state or transition, |
|
Starts in the property sheet for the workflow definition object so you can reference built-in and custom workflow properties. |
|
Start in the property sheet for the workspace associated with the current job step. |