File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ class PipelineDefinitionErrorCode(enum.Enum):
7777
7878 PIPELINE_DOES_NOT_SUPPORT_PARAMETERS = "PIPELINE_DOES_NOT_SUPPORT_PARAMETERS"
7979 INVALID_TIMEOUT_VALUE = "INVALID_TIMEOUT_VALUE"
80+ DUPLICATE_PIPELINE_VERSION_NAME = "DUPLICATE_PIPELINE_VERSION_NAME"
8081
8182
8283class PermissionDenied (Exception ):
@@ -589,6 +590,8 @@ def upload_pipeline(
589590 raise InvalidDefinitionError (
590591 "Timeout value is invalid : ensure that it's no negative and inferior to 12 hours."
591592 )
593+ elif PipelineDefinitionErrorCode .DUPLICATE_PIPELINE_VERSION_NAME .value in data ["uploadPipeline" ]["errors" ]:
594+ raise InvalidDefinitionError ("The pipeline version name is already used. Please choose another name." )
592595 else :
593596 raise Exception (data ["uploadPipeline" ]["errors" ])
594597
You can’t perform that action at this time.
0 commit comments