Run git-stored orchestrator
Description
This example will download a git repository which is stored in the environment variable REPOSITORY_URL
and will run an orchestrator file ORC_SCRIPT_PATH
from it
Template
run.json |
---|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 | {
"steps": [
{
"id": "git-clone",
"command": "git",
"arguments": [
"clone",
"$REPOSITORY_URL",
"cloned-repository"
],
"useSystemEnvironment": true,
"environment": {
"REPOSITORY_URL": {
"description": "The URL of a repository to clone"
}
}
},
{
"id": "run-subscript",
"command": "csm-orc",
"useSystemEnvironment": true,
"arguments": [
"run",
"cloned-repository/$ORC_SCRIPT_PATH"
],
"environment": {
"ORC_SCRIPT_PATH": {
"description": "Path to an orchestrator script inside the cloned repository"
}
}
}
]
}
|