createMicroservice

Back to index

Summary

Creates a new microservice for a project or application.
projectName
Stringrequired
The name for the project that must be unique among all projects.
applicationName
Stringrequired
The name of the application.
microserviceName
Stringrequired
The name of the microservice.
addDeployProcess
Booleanoptional
If set to true, then a microservice process is also created.
definitionSource
Stringoptional
Enum representing the source of the microservice definition.
Possible values: "git", "helm_repository", "yaml_content"
definitionSourceParameter
Arrayoptional
Parameters to resolve the source of the artifact representing the microservice definition.
definitionType
Stringoptional
Microservice definition type.
Possible values: "helm", "yaml"
deployParameter
Arrayoptional
Parameters to supply to deploy procedure of microservice definition type provider.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
rollbackParameter
Arrayoptional
Parameters to store microservice definition rollback parameters.

Usage

Perl

$cmdr->createMicroservice( "test-projectName", # projectName "test-applicationName", # applicationName "test-microserviceName" # microserviceName # optionals );

ectool

ectool createMicroservice \ "test-projectName" `# projectName` \ "test-applicationName" `# applicationName` \ "test-microserviceName" `# microserviceName` \ # optionals

Examples

Perl

$cmdr->createMicroservice({ projectName => "Default", microserviceName => "myMicroservice" , applicationName => "myApp", definitionType => "helm", definitionSource => "git", definitionSourceParameter =>[ { definitionSourceParameterName => "config", value => "test" },{ definitionSourceParameterName => "branch", value => "main" },{ definitionSourceParameterName => "repoUrl", value => "https://your_repo_url" }], deployParameter =>[ { deployParameterName => "releaseName", value => "test" },{ deployParameterName => "chart", value => "chart/test" }] });

ectool

ectool createMicroservice "Default" "myMicroservice" --applicationName "myApp" --definitionType "helm" --definitionSource "git" --definitionSourceParameter config="test" branch="main" repoUrl="https://your_repo_url" --deployParameter releaseName="test" chart="chart/test"