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.
Status
Required.
Syntax
--file=<upload-pipeline-file-path>
Default value
No default.
Input type
io.ReadCloser
--name The name of the new pipeline.
Status
Optional.
Syntax
--name=<pipeline-name>
Default value
No default.
Input type
string
--pipeline-id Specify a pipeline identifier.
Status
Required.
Syntax
--pipeline-id=<pipeline-identifier>
Default value
No default.
Input type
string
--project-id Specify an IBM Software Hub project instance.
Status
Optional.
Syntax
--project-id=<project-id>
Default value
No default.
Input type
string
Valid values
A valid project identifier.
--space-id Specify a space identifier.
Status
Optional.
Syntax
--space-id=<space-identifier>
Default value
No default.
Input type
string
--uploadfile-content-type The content type of Uploadfile.
Status
Optional.
Syntax
--uploadfile-content-type=<upload-file-content>
Default value
No default.
Input type
string
--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.
Status
Optional.
Syntax
--volatile=<placeholder-text>
Default value
No default.
Input type
Boolean