createCatalog
Creates a new catalog.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . Argument type: String |
iconUrl |
(Optional) Set icon URL for a catalog. Argument type: String |
createCatalogItem
Creates a new catalog item in a catalog.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
catalogItemName |
The name of the catalog item. Argument type: String |
afterItem |
(Optional) If specified, the catalog item will be placed after the named catalog item. Argument type: String |
beforeItem |
(Optional) If specified, the catalog item will be placed before the named catalog item. Argument type: String |
buttonLabel |
(Optional) The name of the button label. Argument type: String |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . This argument supports HTML. For example:
|
dslParamForm |
(Optional) The DSL Parameter form metadata. Argument type: String |
dslString |
(Optional) The DSL string that is evaluated for the catalog item. Argument type: String |
endTargetJson |
(Optional) A DSL string to specify the end target object of the this catalog item. It has the following form:
where:
Argument type: String |
firstItem |
(Optional) True to make a catalog item the first in a catalog. Argument type: Boolean |
iconUrl |
(Optional) The URL for the icon to be used in the UI. Place a custom icon for the catalog item in the Argument type: String |
subpluginKey |
(Optional) The name of the procedure’s pluginKey. Argument type: String |
subprocedure |
(Optional) The name of the subprocedure. Argument type: String |
subproject |
(Optional) The name of the project that contains the subprocedure or subprocess. Argument type: String |
usrFormalParameter |
If If Argument type: Boolean |
deleteCatalog
deleteCatalogItem
Deletes a catalog item.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
catalogItemName |
The name of the catalog item. Argument type: String |
getCatalog
Retrieves a catalog by name.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
getCatalogItem
Retrieves a catalog item by name.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
catalogItemName |
The name of the catalog item. Argument type: String |
getCatalogItems
Retrieves all catalog items for a catalog.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
getCatalogs
Retrieves all catalogs in a project.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
modifyCatalog
Modifies a catalog.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . Argument type: String |
iconUrl |
(Optional) Set icon URL for a catalog. Argument type: String |
newName |
(Optional) New name for an existing object that is being renamed. Argument type: String |
modifyCatalogItem
Modifies an existing catalog item.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog. Argument type: String |
catalogItemName |
The name of the catalog item. Argument type: String |
afterItem |
(Optional) If specified, the catalog item will be placed after the named catalog item. Argument type: String |
beforeItem |
(Optional) If specified, the catalog item will be placed before the named catalog item. Argument type: String |
buttonLabel |
(Optional) The name of the button label. Argument type: String |
description |
(Optional) Comment text describing this object; not interpreted at all by CloudBees CD/RO . This argument supports HTML. For example:
|
dslParamForm |
(Optional) The DSL Parameter form metadata. Argument type: String |
dslString |
(Optional) The DSL string that is evaluated for the catalog item. Argument type: String |
endTargetJson |
(Optional) A DSL string to specify the end target object of the this catalog item. It has the following form:
where:
Argument type: String |
firstItem |
(Optional) True to make a catalog item the first in a catalog. Argument type: Boolean |
iconUrl |
(Optional) The URL for the icon to be used in the UI. Place a custom icon for the catalog item in the Argument type: String |
newName |
(Optional) New name for an existing object that is being renamed. Argument type: String |
subpluginKey |
(Optional) The name of the procedure’s pluginKey. Argument type: String |
subprocedure |
(Optional) The name of the subprocedure. Argument type: String |
subproject |
(Optional) The name of the project that contains the subprocedure or subprocess. Argument type: String |
usrFormalParameter |
If If Argument type: Boolean |
runCatalogItem
Run a catalog item.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument type: String |
catalogName |
The name of the catalog under which Argument type: String |
catalogItemName |
The name of the catalog item to run. Argument type: String |
actualParameter |
List of parameter/value pairs in the form Argument type: list |
formParameter |
List of parameter/value pairs in the form Argument Type: list |
Positional arguments
projectName
, catalogName
, catalogItemName
===Authentication contexts
When runCatalogItem
is initiated from a command job step, take into account the following:
-
For DSL-based catalog items, the DSL script is evaluated with principals in the authentication context of the launching job user and the procedure project.
-
For procedure- and plugin-based catalog items: the catalog item procedure is run with principals in the authentication context of the launching job project and the subprocedure project. So in this case the proper privileges must be provided for one of the project.
Consider this example:
-
A procedure,
create-project
, in project, ` test1`, with the following command step:ectool createProject $[projName]
-
A catalog item ,
catalogItem1
, in catalog,testCatalog
, in project,test2
, where subproject=test1
, subprocedure=create-project
, and formal parameter isprojName
. -
A procedure,
testProcedure
, in project,test3
, with a command step:ectool runCatalogItem test2 testCatalog catalogItem1 --actualParameter projName=newProject
Run the procedure: ectool runProcedure test3 --procedureName testProcedure
Result: the run job completes with success, but the runCatalogItem
job fails with the following error:
ectool error [AccessDenied]: None of the principals in this authentication context ('project: test3', 'project: test1') have modify privilege on systemObject 'projects'
Response
-
DSL-based catalog items: the response from evaluating the DSL.
-
Plugin-based catalog items: the job Id.
-
Procedure-based catalog items: the job Id.