pipeline version
upload
Uploads a pipeline file and creates a new pipeline version (or updates a volatile one). You must specify either project_id or space_id.
Syntax
cpd-cli pipeline version
upload \
--file=<upload-pipeline-file-path> \
[--name=<pipeline-name>] \
[--pipeline-id=<pipeline-identifier>] \
[--project-id=<project-id>] \
[--space-id=<space-identifier>] \
[--uploadfile-content-type=<upload-file-content>] \
[--volatile=<placeholder-text>]
Options
Table 1: Command options
| Option | Description |
|---|---|
--file |
The pipeline file to
be uploaded. The supported file formats are pipeline.json or compressed file (.zip) that contains
pipeline.json inside, with content-type being absent, equal to application/JSON or
application/compressed file.
|
--name |
The name of the new
pipeline.
|
--pipeline-id |
Specify a pipeline
identifier.
|
--project-id |
Specify an IBM Software Hub
project instance.
|
--space-id |
Specify a space
identifier.
|
--uploadfile-content-type |
The content type of
Uploadfile.
|
--volatile |
Work-in-progress pipeline versions
can be updated, with this option set to true, multiple times before committed as a finished state.
When set to true, indicates that the version is a work-in-progress. If the --volatile option is used
while the default version is already volatile, it updates that version instead of creating a new
one. If the --volatile option is not used while a volatile version is the default one, upload fails
with an error.
|