Reference - 6.8.0

On this page

Quick Tips

  • To get all help from a command line use: --help
  • To get help for any action, add --help to the action
    • Example: --action getClientInfo --help
  • More tips

Actions

 

Action

Description

Required Parameters

Optional Parameters

Output Formats

Category

Type

1

addAgent

Add a local agent.

agent

description

 

Agents

Create

2

addAgentAssignment

Assign a project, plan, job, deployment project, or environment to a specific agent. This makes the agent dedicated to only perform builds for all assignments. If deployment or environment names are used instead of keys, type must be provided to indicate assignment represents a DEPLOYMENT_PROJECT or ENVIRONMENT. Use continue to ignore already exists error.

agent, assignment

type, continue

 

Agent Assignments

Create

3

addArtifact

Add an artifact definition to a job.

plan, job, artifact, copyPattern

location, shared

 

Artifacts

Create

4

addArtifactDependency

Add an artifact dependency to a job. Artifact must be a shared artifact from another job.

plan, job, artifact, location

 

 

Artifacts

Create

5

addBranch

Add a branch to a plan. The plan branch will be disabled by default. For add, the branch parameter refers to the repository branch. An optional name for the plan branch can be specified, otherwise the repository branch name will be used.

plan, branch

name, description, enable

 

Branches

Create

6

addComment

Add a comment to a build.

build, comment

number, findReplace, findReplaceRegex, file, encoding

 

Comments

Create

7

addEnvironment

Experimental. Add an environment to deployment project.

deploymentProject, name

description

 

Deployment

Create

8

addEnvironmentTask

Experimental. Add a task to a deployment environment.

deploymentProject, environment, taskKey

description, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Deployment

Create

9

addEnvironmentTrigger

Experimental. Add a trigger to a deployment project. Pre-defined types are: scheduled, afterSuccessfulStage. One or more repositories can be specified for pre-defined type triggers based on repositories. Custom types can be specified with the appropriate trigger key (or alias) and all required parameters using the various field parameters.

deploymentProject, name, type

repository, schedule, ipRestriction, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Deployment

Create

10

addJob

Add a job to a stage.

plan, stage, job

name, description, disable

 

Jobs

Create

11

addLabels

Add a comma separated list of labels to a build.

build, labels

number

 

Labels

Create

12

addNotification

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.

plan, event, recipientType

recipient, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Notifications

Create

13

addRepository

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, BITBUCKET_CLOUD, BITBUCKET_SERVER, STASH, BCVS, GIT, GITHUB, MERCURIAL, PERFORCE, SUBVERSION

repository or name

plan, repositoryKey, replace, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Repositories

Create

14

addRequirement

Add requirement to a plan job.

plan, job, requirement

type, value

 

Requirements

Create

15

addStage

Add a stage to a plan.

plan, stage

description, manual

 

Stages

Create

16

addTask

Add a task to a plan job. A valid task key or alias is required. Valid aliases are: ANT, ARTIFACT_DOWNLOAD, CHECKOUT, CLI_BAMBOO, CLI_BITBUCKET, CLI_CONFLUENCE, CLI_CRUCIBLE, CLI_FISHEYE, CLI_HIPCHAT, CLI_JIRA, CLI_SERVICE_DESK, CLI_UPM, GANT, GINT, GRADLE, GRADLEW, GROOVY, MAVEN2, MAVEN3, SCP, SQL, SCRIPT, SSH, VARIABLE_REPLACE

plan, job, taskKey

disable, final, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Tasks

Create

17

addTrigger

Add a trigger to a plan. Pre-defined types are: polling, remote, scheduled. One or more repositories can be specified for pre-defined type triggers based on repositories. Polling triggers default to all plan repositories or use repository @all. Custom types can be specified with the appropriate trigger key (or alias) and all required parameters using the various field parameters. Use of the name parameter is deprecated - description should be used instead.

plan, type

description, repository, schedule, ipRestriction, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Triggers

Create

18

addVariables

Add global or plan variables. Defaults to global variables unless a plan is specified. Use the field parameters for the variable name and the corresponding value parameters for the variable values.

 

plan, replace, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Variables

Create

19

clonePlan

Clone a plan.

plan, toPlan, name

description, projectName, disable

 

Plans

Create

20

cloneProject

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.

project, toProject, projectName, disable

 

 

Projects

Create

21

createDeploymentProject

Experimental. Create a deployment project for a plan.

plan, name

description, branch

 

Deployment

Create

22

createOrUpdatePlan

Same as createPlan when plan does not exist. However, it will update an existing plan's name and description.

plan

name, projectName, description, disable

 

Plans

Create

23

createPlan

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. Use continue to ignore the request if the plan already exists.

plan

name, projectName, description, disable, replace, continue

 

Plans

Create

24

deleteDeploymentProject

Experimental. Delete a deployment project by name or id.

deploymentProject

continue

 

Deployment

Delete

25

deletePlan

Delete a plan.

plan

 

 

Plans

Delete

26

deleteProject

Delete project and all project plans.

project

file

 

Projects

Delete

27

deployEnvironment

Experimental. Deploy environment. To promote (re-deploy) an existing version, use --replace.

deploymentProject, environment, version

build, number, replace

 

Deployment

 

28

disableAgent

Disable an agent.

agent

 

 

Agents

Update

29

disableJob

Disable a job from running.

plan, job

 

 

Jobs

Update

30

disablePlan

Disable a plan from running.

plan

 

 

Plans

Update

31

disableProject

Disable all project plans.

project

 

 

Projects

Update

32

enableAgent

Enable an agent.

agent

 

 

Agents

Update

33

enableJob

Enable a job to run.

plan, job

 

 

Jobs

Update

34

enablePlan

Enable a plan to run.

plan

 

 

Plans

Update

35

enableProject

Enable all project plans.

project

 

 

Projects

Update

36

exportPlan

Experimental. Export a plan to source that can be used for plan creation. Valid export types are CLI, JAVA (Bamboo 6.0 and higher).

plan

type, file, encoding, dateFormat

 

Plans

Export

37

getAgentAssignmentList

Get a list of assignments for agents with regex filtering on entity key or name. Specify an agent to filter by agent. Specify an assignment type to filter on type. Valid types are PROJECT, PLAN, JOB, DEPLOYMENT_PROJECT, ENVIRONMENT.

 

agent, type, limit, regex, file, append, encoding, columns

 

Agent Assignments

Get

38

getAgentList

Get a list of agents based on regex filtering of agent names.

 

regex, file, append, encoding, columns

1 - basic, 2 - detail

Agents

Get

39

getArtifact

Download a copy of a build artifact into a file.

Uses same parameters and logic as getArtifactList for identifying build result artifacts to search. For artifacts that represent a directory (not a file), use the artifact name plus the path to the file in the artifact.

plan or build, artifact, file

job, number, replace, encoding

Artifacts

Get

40

getArtifactDefinitionList

Get a list of artifact definitions for a plan with regex filtering on artifact name.

plan

limit, regex, columns, file, append, encoding

 

Artifacts

Get

41

getArtifactList

Get a list of build result artifacts. When the build does not include a job portion, only shared artifacts are provided. Use @all for the job parameter to get both sharted and non-shared artifacts for all plan jobs.

plan or build

job, number, limit, regex, file, append, encoding

 

Artifacts

Get

42

getBranch

Get information for a branch to a plan. Branch can be either the short or long name of the branch.

plan, branch

file, encoding

 

Branches

Get

43

getBranchList

Get a list of branches for a plan with regex filtering on branch name or short name.

plan

limit, regex, columns, file, append, encoding

 

Branches

Get

44

getBuild

Get build result.

build

number, expand, file, encoding

 

Builds

Get

45

getBuildList

Get a list of build results. Build results can be filtered by using fields and values. Supported fields are state, notState, and started. For example, include only successful results by using: --field1 state --value SUCCESSFUL, or include only builds started after a specific date use: --field2 started --value2 2016-04-30 --dateFormat yyyy-MM-dd. Default limit is 25.

plan

limit, favorite, labels, issues, columns, file, append, encoding, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

1 - basic, 2 - test information

Builds

Get

46

getBuildQueueList

Get a list of builds waiting in the build queue. Subset by project or build.

 

project, build, file, append, encoding, columns

 

Builds

Get

47

getClientInfo

Get information about this client tool.

 

outputFormat, file, append, encoding

1 - basic, 2 - JVM, 11 - action list, 12 - parameter list

Info

Get

48

getCommentList

Get a list of comments for a build.

build

number, file, append, encoding, columns

 

Comments

Get

49

getDeploymentProject

Experimental. Get information for a deployment project by name or id.

deploymentProject

 

 

Deployment

Get

50

getDeploymentProjectList

Experimental. Get a list of deployment projects based on regex filtering of project names.

 

regex, file, append, encoding, columns

 

Deployment

Get

51

getEnvironment

Experimental. Get information for an environment from a deployment project by name or id.

deploymentProject, environment

file, encoding

 

Deployment

Get

52

getEnvironmentList

Experimental. Get a list of environments for a deployment project based on regex filtering of environment names.

deploymentProject

regex, file, append, encoding, columns

 

Deployment

Get

53

getJob

Get job information.

plan, job

 

 

Jobs

Get

54

getJobList

Get a list of jobs for a plan with regex filtering on job key or name. Subset by stage if desired.

plan

stage, limit, regex, file, attribute, columns

 

Jobs

Get

55

getLabelList

Get a list of labels for a build.

build

number, file, append, encoding, columns

 

Labels

Get

56

getLatestBuildNumber

Get the number of the last completed build for this plan.

plan

 

 

Builds

Get

57

getNotificationList

Get a list of plan notifications.

 

plan, file, append, encoding

 

Notifications

Get

58

getPlan

Get plan information.

plan

 

 

Plans

Get

59

getPlanList

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. Advanced filtering based on state and date of the latest build for the plan is also available. See getBuildList for more information.

project

favorite, excludeDisabled, excludeEnabled, limit, regex, outputFormat, dateFormat, columns, file, append, encoding, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

1 - plan, 999 - last build results

Plans

Get

60

getProjectList

Get a list of projects. Projects are selected based on regex filtering on project key or name.

 

regex, file, append, encoding, columns

 

Projects

Get

61

getRepository

Get details of a global or plan repository. Sets the repository and repositoryId replacement variables.

repository

plan

 

Repositories

Get

62

getRepositoryList

Get a list of global or plan repositories with regex filtering on repository name.

 

plan, regex, file, append, encoding

 

Repositories

Get

63

getServerInfo

Get information about the Bamboo server.

 

outputFormat, dateFormat, file, append, encoding

1 - basic, 2 - detail, 3 - state

Info

Get

64

getStage

Get plan stage information.

plan, stage

 

 

Stages

Get

65

getStageList

Get a list of stages for a plan with regex filtering on stage name.

plan

regex, file, attribute, columns

 

Stages

Get

66

getTask

Get detail information on a task from a plan job. Use --task @all to give detail information on all tasks for a job.

plan, job, task or id

 

 

Tasks

Get

67

getTaskList

Get a list of tasks for a job with regex filtering on task name.

plan, job

limit, regex, file, columns

 

Tasks

Get

68

getTaskTypeList

Get a list of task types available with regex filtering on type name and description.

plan, job

limit, regex, file, columns

 

Tasks

Get

69

getVariableList

Get a list of global or plan variables based on regex filtering of variable names.

 

plan, regex, file, append, encoding

 

Variables

Get

70

movePlans

Move one or more plans from one project to another project (existing or new). Specifying a plan will move that plan. If plan is not specified, plans from the source project, with filtering like for getPlanList, will be moved. Plan key and name can be changed on the move by specifying toPlan and name respectively. When toPlan or name are provided for multiple plan moves, they must contain  (plan) or  (planName) replacement variables. Consider pausing the server to prevent activity during a move using the pauseServer action or specifying --options pause to have the action automatically pause the server and resume after the end of the operation.

project or plan, toProject

toPlan, name, excludeEnabled, excludeDisabled, limit, regex

 

Plans

 

71

moveStage

Change the position of a stage in a plan.

plan, stage

 

 

Stages

 

72

moveTask

Move a task to before or after another task. Use final to make a task final. Final tasks must follow all non final tasks. If neither before or after are specified, the task will be moved to the last position respecting the final parameter.

plan, job, task or id

after or before, final

 

Tasks

 

73

orderRepository

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.

plan, repository

after

 

Repositories

 

74

pauseServer

Pause the server to prevent builds from starting.

 

 

 

Server

Stop

75

queueBuild

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. Conditional queueing is supported - see the documentation for details.

plan

branch, revision, wait, continue, timeout, dateFormat, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Builds

 

76

queueBuildFromList

Queue multiple builds to run and wait for results. The action will not complete until all queued builds complete or times out. If continue is specified, builds will continue to be queued even after an attempt to queue a build fails. The action will fail if any build fails or times out. Conditional queueing is supported - see the documentation for details.

project or list

regex, limit, continue, timeout, dateFormat, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Builds

 

77

removeAgent

Remove an agent.

agent

 

 

Agents

Delete

78

removeAgentAssignment

Remove an assignment from a specific agent. Use continue to ignore not found error.

agent, assignment

type, continue

 

Agent Assignments

Delete

79

removeArtifact

Remove an artifact definition from a job.

plan, job, artifact

 

 

Artifacts

Delete

80

removeBranch

Removes a branch from a plan. Use --branch @all to remove all branches from a plan.

plan, branch

 

 

Branches

Delete

81

removeEnvironment

Experimental. Remove an environment from a deployment project by name or id.

deploymentProject, environment

continue

 

Deployment

Delete

82

removeJob

Remove a job from a plan.

plan, job

continue

 

Jobs

Delete

83

removeLabels

Remove labels from a build. Labels can be a comma separated list or regex. Either build or search terms (searchLabels, issues) must be provided

labels

build, number, searchLabels, issues, favorite

 

Labels

Delete

84

removeNotification

Remove a plan notification. Use id of -1 to remove all notifications for a plan.

plan, id

 

 

Notifications

Delete

85

removeRepository

Remove global or plan repository. Use @all to remove all repositories.

repository or id

plan, continue

 

Repositories

Delete

86

removeRequirement

Remove a plan requirement.

plan, job, id

 

 

Requirements

Delete

87

removeStage

Remove a stage from a plan. Use --stage @all to remove all stages. Use continue to ignore not found errors.

plan, stage or id

continue

 

Stages

Delete

88

removeTask

Remove a task from a plan job. Use --task @all to remove all tasks.

plan, job, task or id

 

 

Tasks

Delete

89

removeTrigger

Remove a trigger from a plan. Use id = -1 to remove all triggers.

plan, id

 

 

Triggers

Delete

90

removeVariables

Remove global or plan variables. Specify the variable names using the field parameters.

 

plan, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Variables

Delete

91

renderRequest

Render url based request. The response data modified by findReplace processing is returned.

request

requestParameters, requestType, type, acceptType, build, file, encoding, findReplace, findReplaceRegex

 

Render

Get

92

restartBuild

Restart a build that failed or was stopped. Use continue to ignore errors finding a build to restart or failed results.

plan

wait, timeout, continue

 

Builds

 

93

restoreAgentAssignments

Only useful in the context of a run script replacing an existing plan with createPlan. This will attempt to add agent assignments saved during createPlan and that are still valid.

plan

 

 

Agent Assignments

Import

94

resumeServer

Resume server to allow builds to be started.

 

 

 

Server

Start

95

run

Run actions from a file or standard input.

file or standard input

common, continue, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex

 

Run

Run

96

runFromAgentAssignmentList

Run actions for each agent assignment with filtering like getAgentAssignment. Available replacement variables are agent, agentId, assignment, assignmentId, and assignmentKey.

 

agent, type, limit, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Agent Assignments

Run

97

runFromAgentList

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

 

Agents

Run

98

runFromCsv

Run actions generated from a CSV file.

file

common, propertyFile, continue, quiet, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex

 

CSV

Run

99

runFromDeploymentProjectList

Experimental. Run actions for each deployment project with regex filtering on deployment project name. Available replacement variables are deploymentProject and deploymentProjectId.

 

regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Deployment

Run

100

runFromEnvironmentList

Experimental. Run actions for each environment defined for a deployment project with regex filtering on environment name. Available replacement variables are environment and environmentId.

 

regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Deployment

Run

101

runFromJobList

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.

plan

stage, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Jobs

Run

102

runFromList

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 variables are entry, entry2.

list

list2, file, common, continue, quiet, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex

 

Run

Run

103

runFromPlanList

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. See getPlanList for all filtering capabilities. Available replacement variables are project, projectName, plan, and planName.

project

favorite, excludeDisabled, excludeEnabled, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Plans

Run

104

runFromProjectList

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

 

Projects

Run

105

runFromRepositoryList

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

 

Repositories

Run

106

runFromSql

Run actions generated by SQL provided by the sql parameter, a file, or standard input

sql or file or standard input

common, driver, database, host, port, url, dbUser, dbPassword, propertyFile, continue, simulate, clearFileBeforeAppend, encoding, findReplace, findReplaceRegex

 

SQL

Run

107

runFromStageList

Run actions for each stage with regex filtering on stage name. Available replacement variables are project, projectName, plan, planName, stageId, and stageName.

plan

stage, regex, common, continue, simulate, clearFileBeforeAppend, file, encoding, findReplace, findReplaceRegex

 

Stages

Run

108

setDependencyOptions

Set child dependencies and other related options.

plan

children, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Options

Update

109

setFavoritePlan

Set the plan as a favorite.

plan

 

 

Plans

Update

110

setJobOptions

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.

plan, job

cleanAfter, regex, labels

 

Jobs

Update

111

stopBuild

Request to stop a queued or running build. Use continue to ignore errors finding a build to stop or failed results. The wait parameter will cause processing to wait for completion or timeout before returning.

plan

wait, timeout, continue

 

Builds

 

112

unsetFavoritePlan

Remove the plan from the favorite list.

plan

 

 

Plans

 

113

updatePlan

Update a plans name or description. Provide a 2-part plan key where the first part is the project key.

plan

name, description

 

Plans

Update

114

updateRepository

Update a global or plan repository.

repository or id

plan, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Repositories

Update

115

updateRequirement

Update a plan requirement.

plan, job, id

type, value

 

Requirements

Update

116

updateStage

Update stage details.

plan, stage

name, description, manual, automatic

 

Stages

Update

117

updateTask

Update a task in a plan job. You must provide the same parameters as if you were creating the task.

plan, job, task or id

enable, disable, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Tasks

Update

118

updateVariables

Update existing global or plan variables. Defaults to global variables unless a plan is specified. Use the field parameters for the variable name and the corresponding value parameters for the variable values. Use append to add text to an existing variable.

 

plan, append, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6, field7, value7, field8, value8

 

Variables

Update

119

validateLicense

Validates the CLI Connector is enabled and licensed on the server.

 

 

 

Misc

Check

120

verifyBuild

Verify build was successful.

build

number

 

Builds

 

Parameters

 

Parameter

Short

Value

Description

1

acceptType

 

Content type to accept for renderRequest if different than type.

2

action

a

Requested operation to perform. Valid actions are listed at the end.

3

after

 

Used in orderRepository to name the repository after which the repository will be positioned. Similarly for moveTask where it represent the name or id of the task. Similarly for moveStage where it represent the name of the stage.

4

afterSql

 

SQL to run after a successful action. Limited to specific actions at this time.

5

agent

 

Agent name.

6

api

 

API version. Some requests produce different results based on the api version used.

7

append

 

 

Append to existing varaibles on updateVariables. For some actions using the file parameter, append will append output to the existing file.

8

artifact

 

Build artifact name. May be extended by a path name for locating files within an artifact representing a dirctory.

9

assignment

 

Key used to identify a project, plan, job, deployment proejct, or environment to be assigned to a specific agent. This makes the agent dedicated to only perform builds for all assignments. Examples: XXX, XXX-DEF, XXX-DEF-JOB1, Deployment for XXX-DEF, Deployment for XXX-DEF:QA, 77857004-77955436

10

attribute

 

Attribute to list.

11

automatic

 

 

Indicate that a stage be run automatically.

12

before

 

Before task name or id.

13

branch

 

Branch name.

14

build

 

Build key. Normally used to refer to a specific build (3 or 4 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

15

childPlans

 

Comma separated list of plan keys that represent child plan dependencies.

16

cleanAfter

 

 

Clean working directory after each job completes. Use on setJobOptions.

17

clearFileBeforeAppend

 

 

For run actions, this option will automatically clear an existing file on the first append requested.

18

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.

19

comment

 

Comment text.

20

common

 

Common parameter string added to all run actions.

21

connectionTimeout

 

Allow overriding environment settings for connect and read timeouts on URL connections. In milliseconds, 0 means infinite.

22

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.

23

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.

24

copyPattern

 

Copy pattern for an artifact definition.

25

database

 

Database name is required for SQL actions.

26

dateFormat

 

Format string for dates in Java SimpleDateFormat. Default for output is client date format. Default for date parsing is lenient starting with client date format and then some other standard formats based on JSON date format.

27

dateFormat2

 

Alternate format string for dates in Java SimpleDateFormat. Use specific (may be ignored), but normally used for date only fields to avoid longer dateFormat based output. Some uses default to yyyy-MM-dd.

28

dbCreateTable

 

 

Database table needs to be created before adding rows.

29

dbJar

 

By default, lib/jdbc is used to automatically load database drivers. Otherwise you can specify a specific file or url reference for the database driver jar. Example /jdbcDrivers/postgresql-9.3-1102.jdbc41.jar or

https://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc41.jar

30

dbPassword

 

Database user password. Defaults to password.

31

dbTable

 

Database table name when creating or updating a database from list output.

32

dbTableKeys

 

Comma separated list of column names used to access existing rows for update. Normally this defines a primary key set for the table.

33

dbUser

 

Database user name. Defaults to user.

34

debug

 

 

Requests detail debug output. Optional for all actions.

35

deploymentProject

 

Deployment project name or id.

36

description

 

Description for entity.

37

disable

 

 

Disable an entity for those entities like plans, stages, jobs, and tasks.

38

driver

 

JDBC driver class or predefined value: postgresql, mysql, mssql, oracle, or db2400. Required for SQL actions.

39

enable

 

 

Enable an entity when updating.

40

encoding

 

Character encoding (character set) for text based file content - must be an encoding supported by your JAVA platform.

41

environment

 

Deployment environment name or id.

42

event

 

Event alias or key. Add-ons provide events identified by key. Example key: com.atlassian.bamboo.plugin.system.notifications:chainCompleted.failedChains

43

excludeDisabled

 

 

Filter out entries that are disabled.

44

excludeEnabled

 

 

Filter out entries that are enabled.

45

expand

 

Expanded request information to obtain more detailed data on request.

46

favorite

 

 

Subset to favorites. Same as favourite.

47

favourite

 

 

Subset to favourites. Same as favorite.

48

field

 

Use to set construct specific fields or variables using field=value syntax. The first equal sign (=) delineates the field name from it's value. Multiple field parameters can be provided. This provides a more convenient and expandable way to set fields as an alternative to the fields and numbered field parameters. Values are trimmed unless single quoted and single quoted strings will have single quotes removed.

49

field1

 

Construct specific field or variable name. Value is specified by the value1 parameter.

50

field2

 

Construct specific field or variable name. Value is specified by the value2 parameter.

51

field3

 

Construct specific field or variable name. Value is specified by the value3 parameter.

52

field4

 

Construct specific field or variable name. Value is specified by the value4 parameter.

53

field5

 

Construct specific field or variable name. Value is specified by the value5 parameter.

54

field6

 

Construct specific field or variable name. Value is specified by the value6 parameter.

55

field7

 

Construct specific field or variable name. Value is specified by the value7 parameter.

56

field8

 

Construct specific field or variable name. Value is specified by the value8 parameter.

57

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.

58

file

f

Path to file based content or result output. Use - for standard input.

59

final

 

 

Make a final task.

60

findReplace

 

Find and replace text. Comma separated list of colon separated pairs. Single quote values containing a delimiter. Embedded quotes must be escaped.

61

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.

62

help

 

 

Prints this help message.

63

host

 

Database host server for SQL actions. Not used if url is provided. Defaults to localhost if not provided.

64

id

 

Stage or task id.

65

ipRestriction

 

Comma separated list of IP addresses to restrict ability to remotely trigger builds.

66

issues

 

Comma separated list of JIRA issue keys.

67

job

 

Job key. Example: JOB1

68

labels

 

Comma or blank separated list of labels.

69

limit

 

Maximum number of entries to return.

70

list

 

Comma separated list of entries to populate the entry replacement variable on runFromList. Single quote values containing a delimiter. Embedded quotes must be doubled.

71

list2

 

Comma separated list of entries to populate the entry2 replacement variable on runFromList. Single quote values containing a delimiter. Embedded quotes must be doubled.

72

location

 

Working directory relative path to a source location for an artifact definition or a destination location for an artifact dependency.

73

manual

 

 

Indicate that a stage be run manually.

74

name

 

Name of entity, like plan name.

75

number

 

Build number. Defaults to latest.

76

options

 

Comma separated list of support, experimental, or other client or action specific options.

77

outputFormat

 

Specify output format for an action.

78

password

p

User password for remote access.

79

plan

 

Plan key containing the project key. Preferred way to reference a plan instead of the older build terminology. Example: XXX-DEF

80

port

 

Database host port for SQL actions. Optional, defaults to database default. Not used if url is provided.

81

project

 

Project key. Example: XXX

82

projectName

 

Project name.

83

propertyFile

 

Property file with database parameters, field mappings, or client specific information.

84

quiet

 

 

Limit some output messages. Optional for all actions.

85

recipient

 

Recipient value for add notifications. Many recipient types need a primary recipient value. This parameter can be used instead of setting a recipient type specific field and value.

86

recipientType

 

Recipient type alias or key. Add-ons provide recipient types identified by key. Example key: com.atlassian.bamboo.plugins.bamboo-hipchat:recipient.hipchat

87

reference

 

Reference to a replacement key value used to remember an action specific value like issue key or similar so it can be referenced later.Each action that allows this parameter will specify what value is being set for the reference replacement key.

88

regex

 

Regular expression for list filtering and similar. Also for pattern match labelling.

89

replace

 

 

Replace existing entity on add, create, or similar actions.

90

repository

 

Name of a repository. In some cases, a comma separated list of repository names.

91

repositoryKey

 

Repository key that uniquely identifies the repository type. Example: com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-mercurial:hg

92

request

 

URL fragment for a request.

93

requestParameters

 

URL request parameters or post data.

94

requestType

 

Type of a render request like GET or POST

95

requirement

 

Plan requirement key, either a custom key or a system capability key like: system.builder.ant.Ant.

96

revision

 

Revision id or tag.

97

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.

98

searchLabels

 

Comma or blank separated list of labels used for search.

99

server

s

Server URL. Normally the base URL of the server and the same as how the server is accessed from a browser.

100

service

 

Service address extension.

101

shared

 

 

For an artifact definition, makes the artifact available for other builds.

102

simulate

 

 

Simulate running actions. Log the action that would be taken.

103

special

 

Ordered list of alternate characters for comma ( , ), colon ( : ), at ( @ ), quote ( ' ), and double quote ( " ) characters used for specialized processing of some specific parameters.

104

sql

 

SQL select statement used to generate a run script.

105

stage

 

Stage name.

106

task

 

Task id, name, or description. Task ids are unique, but names and descriptions are not. Name and description lookup is done by finding the first match in the ordered task list.

107

taskKey

 

Task key. Example: com.atlassian.bamboo.plugins.scripttask:task.builder.script.An alias can also be used to make it easier and less error prone. See addTask for the list.

108

timeout

 

Wait timeout in seconds. Use -1 to wait forever.

109

toPlan

 

Plan key to be created. Example: XXX-DEF

110

toProject

 

Project key to clone to.

111

type

 

Requirement match type. Values: exist (default), equal, match. Also, content type for renderRequest and trigger type for addTrigger.

112

url

 

Action specific setting. Example: Database access url for SQL actions. Optional when host is provided.

113

user

u

User name for remote access.

114

value

 

Requirement match value.

115

value1

 

Value corresponding to the field1 parameter name.

116

value2

 

Value corresponding to the field2 parameter name.

117

value3

 

Value corresponding to the field3 parameter name.

118

value4

 

Value corresponding to the field4 parameter name.

119

value5

 

Value corresponding to the field5 parameter name.

120

value6

 

Value corresponding to the field6 parameter name.

121

value7

 

Value corresponding to the field7 parameter name.

122

value8

 

Value corresponding to the field8 parameter name.

123

verbose

 

 

Requests verbose output to help with problem determination. Optional for all actions.

124

version

 

Version name for deployment.

125

wait

 

 

Wait for action to complete.

Parameter Tips

Common parameters

A few common parameters are available that are not specifically listed as optional parameters for each action: helpverbose, 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, dbJarhost, portdbCreateTable, 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.

PositionCharacterCharacter nameSuggested alternateUsage
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.

 

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.