Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
specificationVersion: jobtemplate-2023-09
name: TestJob
jobEnvironments:
- name: JobEnv
variables:
JOB_VAR: value
steps:
- name: Step1
stepEnvironments:
- name: StepEnv
variables:
VAR1: value1
script:
actions:
onRun:
command: python
args:
- "-c"
- "print()"
- name: Step2
stepEnvironments:
- name: StepEnv
variables:
VAR1: value2
script:
actions:
onRun:
command: python
args:
- "-c"
- "print()"
6 changes: 5 additions & 1 deletion wiki/2023-09-Template-Schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ Where:
1. No two Environments in this list may have the same value for the `name` property.
2. The Environments defined in this list must not have the same `name` as a Job Environment defined in the same
Job Template.
* Note: The scope of a Step Environment's `name` is the Step that defines it. Different Steps may each define a
Step Environment with the same `name`; a Session only ever contains the Step Environments of a single Step, so

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

these names never collide.
6. *hostRequirements* — Describes the requirements on Worker host's capabilities that must be satisfied for the Task(s) of
the Step to be scheduled to the host. See: [<HostRequirements>](#33-hostrequirements).
7. *parameterSpace* — Defines the parameterization of the Step's action; the available parameters, the values that they
Expand Down Expand Up @@ -1494,7 +1497,8 @@ variables: <EnvironmentVariables> # @optional

Where:

1. *name* — An identifier given to the environment that is unique within the Environment's defined scope.
1. *name* — An identifier given to the environment that is unique within the Environment's defined scope: the Job
Template for a Job Environment, and the Step Template for a Step Environment.
2. *description* — A description to apply to the environment. It has no functional purpose, but may appear in UI elements.
See: [&lt;Description&gt;](#72-description).
3. *script* — The action that is taken by this Environment when it is run on a Worker host.
Expand Down
Loading