Spinnaker Create Pipeline from Command Line: Difference between revisions
Jump to navigation
Jump to search
Line 41: | Line 41: | ||
] | ] | ||
} | } | ||
</syntaxhighlight> | |||
Once saved in <code>some-file.json</code>, the pipeline can be created with: | |||
<syntaxhighlight lang='bash'> | |||
spin pipeline save --file ./some-file.json | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 03:29, 31 May 2023
Internal
Overview
A pipeline, including its parameters, can be fully declared in a JSON file and then instantiated via CLI.
The JSON representation is similar to:
{
"schema": "v2",
"application": "my-application",
"name": "my-pipeline",
"keepWaitingPipelines": false,
"limitConcurrent": true,
"parameterConfig": [
{
"name": "param_1",
"default": "value 1",
"label": "The first parameter",
"description": "This is the description of param_1",
"pinned": true,
"required": true
}
],
"stages": [
{
"refId": "1",
"name": "Manual Judgment",
"type": "manualJudgment",
"instructions": "the value of param_1: ${execution.trigger.parameters['param_1']}",
"judgmentInputs": [
{
"value": "Option 1"
},
{
"value": "Option 2"
}
],
"failPipeline": true
}
]
}
Once saved in some-file.json
, the pipeline can be created with:
spin pipeline save --file ./some-file.json