Reference - 4.5.0
On this page
Related information for 4.5.0
Actions
Action |
Category |
Description |
Required parameters |
Optional parameters |
Output formats |
|
---|---|---|---|---|---|---|
1 | Agent Assignments |
Assign a project, plan, or job to a specific agent. This makes the agent is dedicated to only perform builds for all assignments. Use continue to ignore already exists error. |
|
|||
2 | Agents |
Add a local agent. |
|
|||
3 | Artifacts |
Add an artifact dependency a job. Artifact must be a shared artifact from another job. |
|
|
||
4 | Artifacts |
Add an artifact definition to a job. Server instances only. |
|
|||
5 | Comments |
Add a comment to a build. |
|
|||
6 | Jobs |
Add a job to a stage. |
|
|||
7 | Labels |
Add a comma separated list of labels to a build. |
|
|||
8 | Notifications |
Add a plan notification. There are 2 parts to a notification - an event that triggers the notification and a recipient type that determines the notification protocol. There are built-in notifications and others provided by add-ons. A recipient type may have additional parameters. Generally, these can be specified by the field and values parameters. In some cases, pre-defined parameters are available. |
fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
||
9 | Repositories |
Add a global or plan repository. For a plan repository, you can reference a linked (global) repository. Otherwise a valid repository key or alias is required. Valid aliases are: BITBUCKET, CVS, GIT, GITHUB, MERCURIAL, PERFORCE, STASH, SUBVERSION |
repository or name |
plan, repositoryKey, replace, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
|
10 | Requirements |
Add requirement to a plan job. |
|
|||
11 | Stages |
Add a stage to a plan. |
|
|||
12 | Tasks |
Add a task to a plan job. A valid task key or alias is required. Valid aliases are: ANT, CHECKOUT, CLI_BAMBOO, CLI_CONFLUENCE, CLI_CRUCIBLE, CLI_FISHEYE, CLI_HIPCHAT, CLI_JIRA, CLI_STASH, GANT, GINT, GRADLE, GRADLEW, GROOVY, MAVEN2, MAVEN3, SCRIPT |
disable, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
||
13 | Triggers |
Add a trigger to a plan. Valid types are: polling, remote, scheduled. One or more repositories can be specified for triggers based on repositories. See the schedule parameter for accepted values. Server instances only. |
|
|||
14 | Variables |
Add global or plan variables. |
|
plan, replace fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
|
15 | Plans |
Clone a plan. |
|
|||
16 | Projects |
Clone each plan in a project to another project. If toProject is not provided, the plans will be cloned to the same project. If the toProject does not exist, it will be created with name provided by projectName. |
|
|
||
17 | Plans |
Create a new plan. Provide a 2-part plan key where the first part is the project key. If the project key does not exist, it will be created with the provided project name. Server instances only. |
|
|||
18 | Plans |
Delete a plan. |
|
|
||
19 | Projects |
Delete project and all project plans. |
|
|||
20 | Agents |
Disable an agent. |
|
|
||
21 | Jobs |
Disable a job from running. |
|
|
||
22 | Plans |
Disable a plan from running. |
|
|
||
23 | Projects |
Disable all project plans. |
|
|
||
24 | Agents |
Enable an agent. |
|
|
||
25 | Jobs |
Enable a job to run. |
|
|
||
26 | Plans |
Enable a plan to run. |
|
|
||
27 | Projects |
Enable all project plans. |
|
|
||
28 | Agents |
Get a list of agents based on regex filtering of agent names.. |
|
1 - basic |
||
29 | Artifacts |
Download a copy of a build artifact into a file. |
|
|||
30 | Builds |
Get a list of builds. Default limit is 25. |
limit, favorite, labels, issues, columns, file, append, encoding |
1 - basic |
||
31 | Builds |
Get a list of builds waiting in the build queue. Subset by project or build. |
|
|
||
32 | Builds |
Get build result. |
|
|||
33 | Info |
Get information about the this client tool. |
|
1 - basic |
||
34 | Comments |
Get a list of comments for a build. |
|
|||
35 | Jobs |
Get a list of jobs for a plan with regex filtering on job key or name. Subset by stage if desired. |
|
|||
36 | Labels |
Get a list of labels for a build. |
|
|||
37 | Builds |
Get the number of the last completed build for this plan. |
|
|
||
38 | Notifications |
EAP (subject to change). Get a list of plan notifications. |
|
|
||
39 | Plans |
Get a list of plans for a project with regex filtering on plan key or name. Use @all for project to get a list of plans across all projects. |
|
|||
40 | Plans |
Get plan information. |
|
|
||
41 | Projects |
Get a list of projects. Projects are selected based on regex filtering on project key or name. Legacy list support is deprecated and will be removed in the near future. |
|
|
||
42 | Repositories |
Get a list of global or plan repositories with regex filtering on repository name. |
|
|
||
43 | Repositories |
Get details of a global or plan repository. Sets the repository and repositoryId replacement variables. |
|
|||
44 | Info |
Get information about the Bamboo server. |
|
1 - basic |
||
45 | Stages |
Get a list of stages for a plan with regex filtering on stage name. |
|
|||
46 | Variables |
Get a list of global or plan variables based on regex filtering of variable names. |
|
|
||
47 | Repositories |
Order repository in the list of repositories for a plan. Defaults to move the repository to the top to make it the default repository. Otherwise specify the after respository name. |
|
|||
48 | Builds |
Queue a build to run. If wait is specified, the action will not complete until the queued build completes or the timeout period elapses. The action will fail if the build fails unless continue parameter is used to ignore a failed result. A specific revision can be built if the revision parameter is specified. Plan variables can be set using the field and value parameters. |
revision, wait, continue, timeout, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
||
49 | Agent Assignments |
Remove an assignment from a specific agent. Use continue to ignore not found error. |
|
|||
50 | Agents |
Remove an agent. |
|
|
||
51 | Artifacts |
Remove an artifact definition from a job. Server instances only. |
|
|
||
52 | Labels |
Remove labels from a build. Labels can be a comma separated list or regex. Either build or search terms (searchLabels, issues) must be provided |
|
|||
53 | Notifications |
Remove a plan notification. Use id of -1 to remove all notifications for a plan. |
|
|
||
54 | Repositories |
Remove global or plan repository. Use @all to remove all repositories. |
repository or id |
|
||
55 | Requirements |
Remove a plan requirement. |
|
|
||
56 | Stages |
Remove a stage from a plan. Use id = -1 to remove all stages. Use continue to ignore not found errors. |
|
|||
57 | Tasks |
Remove a task from a plan job. Use id = -1 to remove all tasks. |
|
|
||
58 | Triggers |
Remove a trigger from a plan. Use id = -1 to remove all triggers. Server instances only. |
|
|
||
59 | Variables |
Remove global or plan variables |
|
plan, fields, field1, field2, field3, field4, field5, field6 |
|
|
60 | Render |
Render url based request. The response data modified by findReplace processing is returned. |
requestParameters, requestType, type, acceptType, build, file, encoding, findReplace, findReplaceRegex |
|
||
61 | Agents |
Run actions for each agent with regex filtering on agent name. Available replacement variables are agent and agentId. |
|
regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
|
62 | Run |
Run actions generated from a CSV file. |
common, propertyFile, continue, quiet, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex |
|
||
63 | Jobs |
Run actions for each job with regex filtering on job key or name. Restrict to a specific stage or leave stage blank to get jobs across all stages. Available replacement variables are project, projectName, plan, planName, stageId, stageName, job, and jobName. |
stage, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
||
64 | Run |
Run actions for each entry in a list. When file is provided, each action in the file augmented by the common parameter will be run for each entry. Otherwise, just the action specified by the common parameter will be run. Available replacement variable is entry. |
file, common, continue, quiet, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex |
|
||
65 | Plans |
Run actions for each plan with regex filtering on plan key or name. Use @all for project to get a list of plans across all projects. Available replacement variables are project, projectName, plan, and planName. |
favorite, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
||
66 | Projects |
Run actions for each project with regex filtering on project key or name. Available replacement variables are project and projectName. |
|
regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
|
67 | Repositories |
Run actions for each repository with regex filtering on repository name. Available replacement variables are repository and repositoryId. |
|
plan, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
|
68 | Run |
Run actions generated by SQL provided by the sql parameter, a file, or standard input |
common, driver, database, host, port, url, dbUser, dbPassword, propertyFile, continue, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex |
|
||
69 | Stages |
Run actions for each stage with regex filtering on stage name. Available replacement variables are project, projectName, plan, planName, stageId, and stageName. |
stage, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex |
|
||
70 | Run |
Run actions from a file or standard input. |
file or standard input |
common, continue, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex |
|
|
71 | Jobs |
Set miscellaneous option for a job. The following options are specifically supported: clean working directory after job completes (cleanAfter switch) and pattern matching labeling (regex and labels parameters). Use the field and value parameters for additional settings with values determined from the screen. Some previous settings may be lost if not specifically requested. |
|
|||
72 | Repositories |
Update a global or plan repository. |
repository or id |
plan, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
|
73 | Requirements |
Update a plan requirement. |
|
|||
74 | Tasks |
Update a task in a plan job. You must provide the same parameters as if you were creating the task. |
enable, disable, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
||
75 | Variables |
Update existing global or plan variables |
|
plan fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6 |
|
|
76 | Misc |
Validates the CLI Connector is enabled and licensed on the server. |
|
|
|
|
77 | Builds |
Verify build was successful. |
|
Parameter Tips
Common parameters
A few common parameters are available that are not specifically listed as optional parameters for each action: help, verbose, debug, quiet, special, dateFormat, dateFormat2, and outputType. Similarly for database related parameters that are optional for all get list actions: url, dbUser, dbPassword, database, driver, dbJar, host, port, dbCreateTable, dbTable, dbTableKeys, afterSql, and propertyFile.
Tips
- To get help for a specific action, type the action followed by --help - example: --action getProjectList --help
- Use double dash for multi-letter parameters - example: --help
- Use single dash for single letter parameters indicated in the Short column in parameter help - example: -v
- When parameters are specified, most need a value as indicated by a check in the Value column in parameter help - example: --action addPage
- Some parameters are flags (boolean) and must not be followed by a value - example: --verbose
- Parameter names are case sensitive, but, action values are not - example: --userid is invalid but --action addpage is equivalent to --action addPage
- An incorrect case parameter will result in an unknown parameter error and show action help with correctly cased parameter (9.8 or higher)
- Some parameters become required once a specific action is chosen. This is indicated in the action help text as required.
- Some parameters have both short (one letter) and long (more than one letter) parameter names - example: -a or --action are the same and cannot both be specified
- Some parameters have default values, if so, they are indicated in the help text
- Values that contain blanks or some special characters (platform specific) must be enclosed by double quotes - example: --title "this is my title"
- Quoting rules in commands can vary by terminal environment:
- Windows command terminals or run action scripts for all platforms: embedded double quotes within a double quoted string must be escaped by doubling the double quote - example: –common "-a addComment --comment ""This is an example of a double quoted string inside a double quote"" "
- Linux and Mac/OSX command terminals require standard Linux style escaping: embedded double quotes within a double quoted string can be escaped with a \ - example: –common " -a addComment --comment \"This is an example of a double quoted string inside a double quote\" "
- Run CLI Actions usage: embedded double quotes within a double quoted string can be escaped by doubling the double quote (first example above)
- A single quote sometimes can used in place of a double quotes on some command terminal environments - example: –common '-a addComment --comment "This is an example of a double quoted string inside a double quote" '
- Some parameters allow entry of a comma separated list of values, values containing a comma must be enclosed in single quotes - example: --custom "'first:a,b,c', second:x". Embedded single quotes within a quoted string must be doubled
- Some text fields support the automatic conversion of " \n " (blanks are significant) to be replaced with a new line character - example: --description "A multi-line text field: \n # line 1 \n # line 2"
Special parameter
Some special characters are difficult to deal with or make action text very complicated. This is because they have special meaning in either the OS command terminal handling, the tool's command line parsing, or the tool's use of separators (like comma or colon separated lists). As a convenience to avoid some of these nasty situations, a special parameter was implemented to allow alternate characters to be used instead of (or in addition to) the problematic characters within parameter values. The choice of what special characters to use depends on the content so that you do not have conflicts with intended content. The special parameter works by the user providing a order specific alternate character. The alternative character is replaced with the real character after all other parsing occurs. It is implemented for many action parameters that are problematic in this area. Not all situations are covered, but, that will improve as other use cases are identified.
Position | Character | Character name | Suggested alternate | Usage |
---|---|---|---|---|
1 | , | comma | Some parameters use comma separated lists. | |
2 | : | colon | # | Some parameters use colon separated values. |
3 | @ | at sign | Replacement variables syntax: @...@. | |
4 | ' | single quote | Used in separated lists to cover cases where content contains separator. | |
5 | " | double quote | ~ | Parameters containing blanks. |
6 | ^ | caret | Substitution double quote indicator: ^^...^^. See ACLI-673 for details. |
A blank in any position is ignored (no alternate provided).
Example: –special " # ~" provides alternates for colon and double quote.
--common "--findReplace ~something to find containing a : (colon)#replacement~"
Character Set
User and password values should be in the ISO-8859-1 character set. Also avoid characters that require escaping on your OS command terminal. Non standard characters will result in an authorization error similar to: User is not authorized to perform the request.
Parameters
Parameter |
Short |
Value |
Description |
|
---|---|---|---|---|
1 | acceptType |
|
|
Content type to accept for renderRequest if different than type. |
2 | action |
a |
|
|
3 | after |
|
|
Used in orderRepository to name the repository after which the repository will be positioned. |
4 | agent |
|
|
Agent name. |
5 | api |
|
|
API version. Some requests produce different results based on the api version used. (default: latest) |
6 | append |
|
|
For some actions using the file parameter, append will append output to the existing file. |
7 | artifact |
|
|
Build artifact name. May be extended by a path name for locating files within an artifact representing a dirctory. |
8 | assignment |
|
|
Key used to identify a project, plan, or job to be assigned to a specific agent. This makes the agent dedicated to only perform builds for all assignments. Example: XXX, XXX-DEF, XXX-DEF-JOB1 |
9 | attribute |
|
|
Attribute to list. |
10 | build |
|
|
Build key. Normally used to refer to a specific build (3 part name). However, it was also an older terminology for a plan and some action continue to accept the older terminology. Example: XXX-DEF or XXX-DEF-1 |
11 | cleanAfter |
|
|
Clean working directory after each job completes. Use on setJobOptions. |
12 | clearFileBeforeAppend |
|
|
For run actions, this option will automatically clear an existing file on the first append requested. |
13 | columns |
|
|
Column selection and ordering when action generates CSV output. A comma separated list of column numbers (1-based) or column names (case insensitive). Only columns provided by the selected outputFormat are available for selection. Invalid columns will be ignored. |
14 | comment |
|
|
Comment for an build. |
15 | common |
|
|
Common parameter string added to all run actions. |
16 | connectionTimeout |
|
|
Allow overriding environment settings for connect and read timeouts on URL connections. In milliseconds, 0 means infinite. |
17 | continue |
|
|
Continue processing even after errors are encountered for run actions. Also used for some action to ignore certain errors like not found errors on remove actions. |
18 | cookies |
|
|
Name of file to restore and persist cookies across invocations of CLI actions. Can be used to provide Data Center session affinity for actions using REST APIs. |
19 | copyPattern |
|
|
Copy pattern for an artifact definition. |
20 | database |
|
|
Database name is required for SQL actions. |
21 | dateFormat |
|
|
Format string for date in Java SimpleDateFormat, default is client date format. |
22 | dbPassword |
|
|
Database user password. Defaults to password. |
23 | dbUser |
|
|
Database user name. Defaults to user. |
24 | debug |
|
|
Requests detail debug output. Optional for all actions. |
25 | description |
|
|
Description for entity. |
26 | disable |
|
|
Disable an entity for those entities like plans, stages, jobs, and tasks. |
27 | driver |
|
|
JDBC driver class or predefined value: postgresql, mysql, mssql, oracle, or db2400. Required for SQL actions. |
28 | enable |
|
|
Enable an entity when updating. |
29 | encoding |
|
|
Character encoding (character set) for text based file content - must be an encoding supported by your JAVA platform. |
30 | event |
|
|
Event alias or key. Add-ons provide events identified by key. Example key: com.atlassian.bamboo.plugin.system.notifications:chainCompleted.failedChains |
31 | expand |
|
|
Expanded request information to obtain more detailed data on request. |
32 | favorite |
|
|
Subset to favorites. Same as favourite. |
33 | favourite |
|
|
Subset to favourites. Same as favorite. |
34 | field1 |
|
|
Task or repository specific field or variable name. Value is specified by the value1 parameter. |
35 | field2 |
|
|
Task or repository specific field or variable name. Value is specified by the value2 parameter. |
36 | field3 |
|
|
Task or repository specific field or variable name. Value is specified by the value3 parameter. |
37 | field4 |
|
|
Task or repository specific field or variable name. Value is specified by the value4 parameter. |
38 | field5 |
|
|
Task or repository specific field or variable name. Value is specified by the value5 parameter. |
39 | field6 |
|
|
Task or repository specific field or variable name. Value is specified by the value6 parameter. |
40 | fields |
|
|
Use to specify task or repository specific fields or variables and their values. A comma separated list of key:value pairs. Single quote the key:value pair if it contains a comma (,) or line breaks. |
41 | file |
f |
|
Path to file based content or result output. Use - for standard input. |
42 | findReplace |
|
|
Find and replace text. Comma separated list of colon separated pairs. Single quote values containing a delimiter. Embedded quotes must be doubled. |
43 | findReplaceRegex |
|
|
Find and replace text with a regular expression. Comma separated list of colon separated pairs. Single quote values containing a delimiter. Embedded quotes must be doubled. |
44 | help |
|
|
Prints this help message. |
45 | host |
|
|
Database host server for SQL actions. Not used if url is provided. (default: localhost) |
46 | id |
|
|
Stage or task id. |
47 | ipRestriction |
|
|
Comma separated list of IP addresses to restrict ability to remotely trigger builds. |
48 | issues |
|
|
Comma separated list of JIRA issue keys. |
49 | job |
|
|
Job key. Example: JOB1 |
50 | labels |
|
|
Comma or blank separated list of labels. |
51 | limit |
|
|
Maximum number of entries to return. (default: 2147483647) |
52 | list |
|
|
Comma separated list of entries. Single quote values containing a delimiter. Embedded quotes must be doubled. |
53 | location |
|
|
Working directory relative path to a source location for an artifact definition or a destination location for an artifact dependency. |
54 | manual |
|
|
Indicate that a stage be run manually. |
55 | name |
|
|
Name of entity, like plan name. |
56 | number |
|
|
Build number. Defaults to latest. (default: 0) |
57 | outputFormat |
|
|
Specify output format for an action. (default: 1) |
58 | password |
p |
|
User password for remote access. |
59 | plan |
|
|
Plan key containing the project key. Preferred way to reference a plan instead of the older build terminology. Example: XXX-DEF |
60 | port |
|
|
Database host port for SQL actions. Optional, defaults to database default. Not used if url is provided. |
61 | project |
|
|
Project key. Example: XXX |
62 | projectName |
|
|
Project name. |
63 | propertyFile |
|
|
Property file with mapping information. |
64 | quiet |
|
|
Limit some output messages. Optional for all actions. |
65 | recipientType |
|
|
Recipient type alias or key. Add-ons provide recipient types identified by key. Example key: com.atlassian.bamboo.plugins.bamboo-hipchat:recipient.hipchat |
66 | regex |
|
|
Regular expression for list filtering and similar. Also for pattern match labelling. |
67 | replace |
|
|
Replace existing entity. |
68 | repository |
|
|
Name of a repository. In some cases, a comma separated list of repository names. |
69 | repositoryKey |
|
|
Repository key that uniquely identifies the repository type. Example: com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-mercurial:hg |
70 | request |
|
|
URL fragment for a request. |
71 | requestParameters |
|
|
URL request parameters |
72 | requestType |
|
|
Type of a render request like GET or POST (default: GET) |
73 | requirement |
|
|
Plan requirement key, either a custom key or a system capability key like: system.builder.ant.Ant. |
74 | revision |
|
|
Revision id or tag. |
75 | schedule |
|
|
Cron, daily time, or periodic schedule. A cron schedule must be valid cron expresssions and defaults to 0 0 0 ? * *. A daily time is a 24 hour format (HH:mm) value. A periodic schedule is a numeric value in seconds and defaults to 180. |
76 | searchLabels |
|
|
Comma or blank separated list of labels used for search. |
77 | server |
s |
|
Server URL. Normally the base URL of the server and the same as how the server is accessed from a browser. |
78 | service |
|
|
Service address extension. (default: /rest/api) |
79 | shared |
|
|
For an artifact definition, makes the artifact available for other builds. |
80 | simulate |
|
|
Simulate running actions. Log the action that would be taken. |
81 | special |
|
|
Ordered list of alternate characters for comma ( , ), colon ( : ), at ( @ ), quote ( ' ), and double quote ( " ) characters used for specialized processing of some specific parameters. |
82 | sql |
|
|
SQL select statement used to generate a run script. |
83 | stage |
|
|
Stage name. |
84 | taskKey |
|
|
Task key. Example: com.atlassian.bamboo.plugins.scripttask:task.builder.script |
85 | timeout |
|
|
Wait timeout in seconds. Use -1 to wait forever. (default: -1) |
86 | toPlan |
|
|
Plan key to be created. Example: XXX-DEF |
87 | toProject |
|
|
Project key to clone to. |
88 | type |
|
|
Requirement match type. Values: exist, equal, match. Also, content type for renderRequest. (default: exist) |
89 | url |
|
|
Action specific setting. Example: Database access url for SQL actions. Optional when host is provided. |
90 | user |
u |
|
User name for remote access. (default: automation) |
91 | value |
|
|
Requirement match value. |
92 | value1 |
|
|
Value corresponding to the field1 parameter name. |
93 | value2 |
|
|
Value corresponding to the field2 parameter name. |
94 | value3 |
|
|
Value corresponding to the field3 parameter name. |
95 | value4 |
|
|
Value corresponding to the field4 parameter name. |
96 | value5 |
|
|
Value corresponding to the field5 parameter name. |
97 | value6 |
|
|
Value corresponding to the field6 parameter name. |
98 | verbose |
v |
|
Requests verbose output to help with problem determination. Optional for all actions. |
99 | wait |
|
|
Wait for action to complete. |
Log a request with our support team.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.