Manage Pipelines
spin
can manage the whole lifecycle of your pipeline:
The following assumes Spinnaker is running and Gate is listening on http://localhost:8084
. If gate is running elsewhere, you can set the Gate endpoint with the global --gate-endpoint
flag.
Managing Your Pipeline’s Lifecycle
$ spin pipeline save --file <path to pipeline json>
Pipeline save succeeded
You can also template the pipeline JSON using your favorite templating engine.
spin pipeline get --name my-pipeline --application my-app
"stages": [...]
}
Start a pipeline execution with execute
:
If your pipeline is parameterized, you can submit a JSON-formatted map of the parameters and their values via the --parameter-file
flag
{
"parameter1": "value1",
"parameter2": "value2",
}