Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Actions

Action, Category, Description, Required parameters, Optional parameters, Output formats "[#addComment] {anchor: addComment}", "Comments", "Add a comment to a build.", "[#build], [#comment]", "[#number], [#findReplace], [#findReplaceRegex], [#file], [#encoding]", "[#addLabels] {anchor: addLabels}", "Labels", "Add a comma separated list of labels to a build.", "[#build], [#labels]", "[#number]", "[#addRepository] {anchor: addRepository}", "Repositories", "Add a source repository to a build plan.", "[#plan], [#repositoryKey]", "[#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4]", "[#addRequirement] {anchor: addRequirement}", , "Beta. Add requirement to a plan job.", "[#plan], [#job], [#requirement]", "[#type], [#value]", "[#addTask] {anchor: addTask}", "Tasks", "Add a task to a build plan job.", "[#plan], [#job], [#taskKey]", "[#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4]", "[#clonePlan] {anchor: clonePlan}", "Plans", "Clone a build plan.", "[#plan], [#toPlan]", "[#name], [#description], [#disable]", "[#cloneProject] {anchor: cloneProject}", "Projects", "Clone each build plan in a project to another project.", "[#project], [#toProject], [#disable]", , "[#deletePlan] {anchor: deletePlan}", "Plans", "Delete a build plan.", "[#plan]", , "[#deleteProject] {anchor: deleteProject}", "Projects", "Delete project and all project plans.", "[#project]", "[#file]", "[#disablePlan] {anchor: disablePlan}", "Plans", "Disable a build plan from running.", "[#plan]", , "[#disableProject] {anchor: disableProject}", "Projects", "Disable all project plans.", "[#project]", , "[#enablePlan] {anchor: enablePlan}", "Plans", "Enable a build plan to run.", "[#plan]", , "[#enableProject] {anchor: enableProject}", "Projects", "Enable all project plans.", "[#project]", , "[#getArtifact] {anchor: getArtifact}", "Artifacts", "Download a copy of a build artifact into a file.", "[#build], [#artifact], [#file]", "[#number]", "[#getBuildList] {anchor: getBuildList}", "Lists", "Get a list of builds.", , "[#file], [#attribute], [#favourite], [#expand], [#labels], [#issues], [#columns]", "[#getBuildQueueList] {anchor: getBuildQueueList}", "Lists", "Get a list of builds waiting in the build queue. Subset by project or build.", , "[#project], [#build], [#file], [#columns]", "[#getBuild] {anchor: getBuild}", "Builds", "Get build result.", "[#build]", "[#number], [#expand], [#file]", "[#getClientInfo] {anchor: getClientInfo}", "Info", "Get information about the this client tool.", , , "[#getCommentList] {anchor: getCommentList}", "Lists", "Get a list of comments for a build.", "[#build]", "[#number], [#file], [#columns]", "[#getLabelList] {anchor: getLabelList}", "Lists", "Get a list of labels for a build.", "[#build]", "[#number], [#file], [#columns]", "[#getLatestBuildNumber] {anchor: getLatestBuildNumber}", "Builds", "Get the number of the last completed build.", "[#build]", , "[#getPlanList] {anchor: getPlanList}", "Lists", "Get a list of build plans.", , "[#project], [#favourite], [#file], [#attribute], [#expand], [#columns]", "[#getPlan] {anchor: getPlan}", "Plans", "Get build plan information.", "[#plan]", , "[#getProjectList] {anchor: getProjectList}", "Lists", "Get a list of projects in csv format. Projects are select based on regex filtering on project key or name. Legacy list support is deprecated and will be removed.", , "[#regex], [#file], [#encoding], [#columns]", "[#getServerInfo] {anchor: getServerInfo}", "Info", "Get information about the Bamboo server.", , "[#outputFormat], [#dateFormat]", "1 - basic\\ 2 - detail" "[#queueBuild] {anchor: queueBuild}", "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.", "[#build]", "[#revision], [#wait], [#continue], [#timeout], [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4]", "[#removeLabels] {anchor: removeLabels}", "Labels", "Delete 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], [#favourite]", "[#removeRepository] {anchor: removeRepository}", "Repositories", "Remove a source repository from a build plan.", "[#plan], [#id]", , "[#removeRequirement] {anchor: removeRequirement}", , "Beta. Remove a plan requirement.", "[#plan], [#job], [#id]", , "[#removeTask] {anchor: removeTask}", "Tasks", "Remove a task from a build plan job.", "[#plan], [#job], [#id]", , "[#renderRequest] {anchor: renderRequest}", "Render", "Render url based request. The response data modified by findReplace processing is returned.", "[#request]", "[#requestParameters], [#requestType], [#type], [#acceptType], [#build], [#file], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromCsv] {anchor: runFromCsv}", "Run", "Run actions generated from a CSV file.", "[#file]", "[#common], [#propertyFile], [#continue], [#quiet], [#simulate], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromList] {anchor: runFromList}", "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.", "[#list]", "[#file], [#common], [#continue], [#quiet], [#simulate], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromProjectList] {anchor: runFromProjectList}", "Run", "Run actions for each project with regex filtering on project key or name. Available replacement variables are project and projectName.", , "[#regex], [#common], [#continue], [#simulate], [#file], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromSql] {anchor: runFromSql}", "Run", "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], [#encoding], [#findReplace], [#findReplaceRegex]", "[#run] {anchor: run}", "Run", "Run actions from a file or standard input.", "[#file] or standard input", "[#common], [#continue], [#simulate], [#encoding], [#findReplace], [#findReplaceRegex]", "[#updateRepository] {anchor: updateRepository}", "Repositories", "Update a source repository for a build plan.", "[#plan], [#id]", "[#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4]", "[#updateRequirement] {anchor: updateRequirement}", , "Beta. Update a plan requirement.", "[#plan], [#job], [#id]", "[#type], [#value]", "[#updateTask] {anchor: updateTask}", "Tasks", "Update a task in a build plan job.", "[#plan], [#job], [#id]", "[#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4]", "[#validateLicense] {anchor: validateLicense}", , "Validates the CLI Connector is enabled and licensed on the server.", , , "[#verifyBuild] {anchor: verifyBuild}", "Builds", "Verify build was successful.", "[#build]", "[#number]",
P

csv

Action

output

Category

wiki
sortColumn1
autoNumbertrue
sortIconfalse

Description

Required parameters

Optional parameters

Output formats

1

addComment

Anchor
addComment
addComment

Comments

Add a comment to a build.

build, comment

number, findReplace, findReplaceRegex, file, encoding

 

2

addLabels

Anchor
addLabels
addLabels

Labels

Add a comma separated list of labels to a build.

build, labels

number

 

3

addRepository

Anchor
addRepository
addRepository

Repositories

Add a source repository to a build plan.

plan, repositoryKey

fields, field1, value1, field2, value2, field3, value3, field4, value4

 

4

addRequirement

Anchor
addRequirement
addRequirement

 

Beta. Add requirement to a plan job.

plan, job, requirement

type, value

 

5

addTask

Anchor
addTask
addTask

Tasks

Add a task to a build plan job.

plan, job, taskKey

fields, field1, value1, field2, value2, field3, value3, field4, value4

 

6

clonePlan

Anchor
clonePlan
clonePlan

Plans

Clone a build plan.

plan, toPlan

name, description, disable

 

7

cloneProject

Anchor
cloneProject
cloneProject

Projects

Clone each build plan in a project to another project.

project, toProject, disable

 

 

8

deletePlan

Anchor
deletePlan
deletePlan

Plans

Delete a build plan.

plan

 

 

9

deleteProject

Anchor
deleteProject
deleteProject

Projects

Delete project and all project plans.

project

file

 

10

disablePlan

Anchor
disablePlan
disablePlan

Plans

Disable a build plan from running.

plan

 

 

11

disableProject

Anchor
disableProject
disableProject

Projects

Disable all project plans.

project

 

 

12

enablePlan

Anchor
enablePlan
enablePlan

Plans

Enable a build plan to run.

plan

 

 

13

enableProject

Anchor
enableProject
enableProject

Projects

Enable all project plans.

project

 

 

14

getArtifact

Anchor
getArtifact
getArtifact

Artifacts

Download a copy of a build artifact into a file.

build, artifact, file

number

 

15

getBuildList

Anchor
getBuildList
getBuildList

Lists

Get a list of builds.

 

file, attribute, favourite, expand, labels, issues, columns

 

16

getBuildQueueList

Anchor
getBuildQueueList
getBuildQueueList

Lists

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

 

project, build, file, columns

 

17

getBuild

Anchor
getBuild
getBuild

Builds

Get build result.

build

number, expand, file

 

18

getClientInfo

Anchor
getClientInfo
getClientInfo

Info

Get information about the this client tool.

 

 

 

19

getCommentList

Anchor
getCommentList
getCommentList

Lists

Get a list of comments for a build.

build

number, file, columns

 

20

getLabelList

Anchor
getLabelList
getLabelList

Lists

Get a list of labels for a build.

build

number, file, columns

 

21

getLatestBuildNumber

Anchor
getLatestBuildNumber
getLatestBuildNumber

Builds

Get the number of the last completed build.

build

 

 

22

getPlanList

Anchor
getPlanList
getPlanList

Lists

Get a list of build plans.

 

project, favourite, file, attribute, expand, columns

 

23

getPlan

Anchor
getPlan
getPlan

Plans

Get build plan information.

plan

 

 

24

getProjectList

Anchor
getProjectList
getProjectList

Lists

Get a list of projects in csv format. Projects are select based on regex filtering on project key or name. Legacy list support is deprecated and will be removed.

 

regex, file, encoding, columns

 

25

getServerInfo

Anchor
getServerInfo
getServerInfo

Info

Get information about the Bamboo server.

 

outputFormat, dateFormat

1 - basic
2 - detail

26

queueBuild

Anchor
queueBuild
queueBuild

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.

build

revision, wait, continue, timeout, fields, field1, value1, field2, value2, field3, value3, field4, value4

 

27

removeLabels

Anchor
removeLabels
removeLabels

Labels

Delete 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, favourite

 

28

removeRepository

Anchor
removeRepository
removeRepository

Repositories

Remove a source repository from a build plan.

plan, id

 

 

29

removeRequirement

Anchor
removeRequirement
removeRequirement

 

Beta. Remove a plan requirement.

plan, job, id

 

 

30

removeTask

Anchor
removeTask
removeTask

Tasks

Remove a task from a build plan job.

plan, job, id

 

 

31

renderRequest

Anchor
renderRequest
renderRequest

Render

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

request

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

 

32

runFromCsv

Anchor
runFromCsv
runFromCsv

Run

Run actions generated from a CSV file.

file

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

 

33

runFromList

Anchor
runFromList
runFromList

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.

list

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

 

34

runFromProjectList

Anchor
runFromProjectList
runFromProjectList

Run

Run actions for each project with regex filtering on project key or name. Available replacement variables are project and projectName.

 

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

 

35

runFromSql

Anchor
runFromSql
runFromSql

Run

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, encoding, findReplace, findReplaceRegex

 

36

run

Anchor
run
run

Run

Run actions from a file or standard input.

file or standard input

common, continue, simulate, encoding, findReplace, findReplaceRegex

 

37

updateRepository

Anchor
updateRepository
updateRepository

Repositories

Update a source repository for a build plan.

plan, id

fields, field1, value1, field2, value2, field3, value3, field4, value4

 

38

updateRequirement

Anchor
updateRequirement
updateRequirement

 

Beta. Update a plan requirement.

plan, job, id

type, value

 

39

updateTask

Anchor
updateTask
updateTask

Tasks

Update a task in a build plan job.

plan, job, id

fields, field1, value1, field2, value2, field3, value3, field4, value4

 

40

validateLicense

Anchor
validateLicense
validateLicense

 

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

 

 

 

41

verifyBuild

Anchor
verifyBuild
verifyBuild

Builds

Verify build was successful.

build

number

 

Parameter Tips

Include Page
ACLI:Shared - tips for documentation
ACLI:Shared - tips for documentation

Parameters

csv

Parameter

...

Short

...

Value

...

Description

1

...

acceptType

Anchor
acceptType
acceptType

 

(tick)

Content type to accept for renderRequest if different than type.

2

action

Anchor
action
action

a

(tick)

 

3

api

Anchor
api
api

 

(tick)

API version. Some requests produce different results based on the api version used. (default: latest)

4

artifact

Anchor
artifact
artifact

 

(tick)

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

5

attribute

Anchor
attribute
attribute

 

(tick)

Attribute to list.

6

build

Anchor
build
build

 

(tick)

Build key. Optionally, for some actions, may contain build number. Example: XXX-DEF or XXX-DEF-1

7

columns

Anchor
columns
columns

 

(tick)

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.

8

comment

Anchor
comment
comment

 

(tick)

Comment for an build.

9

common

Anchor
common
common

 

(tick)

Common parameter string added to all run actions.

10

connectionTimeout

Anchor
connectionTimeout
connectionTimeout

 

(tick)

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

11

continue

Anchor
continue
continue

 

(error)

Continue processing even after errors are encountered.

12

cookies

Anchor
cookies
cookies

 

(tick)

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.

13

database

Anchor
database
database

 

(tick)

Database name is required for SQL actions.

14

dateFormat

Anchor
dateFormat
dateFormat

 

(tick)

Format string for date in Java SimpleDateFormat, default is client date format.

15

dbPassword

Anchor
dbPassword
dbPassword

 

(tick)

Database user password. Defaults to password.

16

dbUser

Anchor
dbUser
dbUser

 

(tick)

Database user name. Defaults to user.

17

debug

Anchor
debug
debug

 

(error)

Requests detail debug output. Optional for all actions.

18

description

Anchor
description
description

 

(tick)

Build plan description.

19

disable

Anchor
disable
disable

 

(error)

Disable plan after it is created.

20

driver

Anchor
driver
driver

 

(tick)

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

21

encoding

Anchor
encoding
encoding

 

(tick)

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

22

expand

Anchor
expand
expand

 

(tick)

Expanded request information to obtain more detailed data on request.

23

favourite

Anchor
favourite
favourite

 

(error)

Subset to favourites.

24

field1

Anchor
field1
field1

 

(tick)

Task specific field or build variable name. Complements the fields parameter. Value is specified by the value1 parameter.

25

field2

Anchor
field2
field2

 

(tick)

Task specific field or build variable name. Complements the fields parameter. Value is specified by the value2 parameter.

26

field3

Anchor
field3
field3

 

(tick)

Task specific field or build variable name. Complements the fields parameter. Value is specified by the value3 parameter.

27

field4

Anchor
field4
field4

 

(tick)

Task specific field or build variable name. Complements the fields parameter. Value is specified by the value4 parameter.

28

fields

Anchor
fields
fields

 

(tick)

Use to specify task specific fields or build 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.

29

file

Anchor
file
file

f

(tick)

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

30

findReplace

Anchor
findReplace
findReplace

 

(tick)

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

31

findReplaceRegex

Anchor
findReplaceRegex
findReplaceRegex

 

(tick)

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.

32

help

Anchor
help
help

 

(error)

Prints this help message.

33

host

Anchor
host
host

 

(tick)

Database host server for SQL actions. Not used if url is provided. (default: localhost)

34

id

Anchor
id
id

 

(tick)

Task id.

35

issues

Anchor
issues
issues

 

(tick)

Comma separated list of JIRA issue keys.

36

job

Anchor
job
job

 

(tick)

Job key. Example: JOB1

37

labels

Anchor
labels
labels

 

(tick)

Comma or blank separated list of labels.

38

limit

Anchor
limit
limit

 

(tick)

Maximum number of entries to return. (default: 2147483647)

39

list

Anchor
list
list

 

(tick)

Comma separated list of entries. Single quote values containing a delimiter. Embedded quotes must be doubled.

40

name

Anchor
name
name

 

(tick)

Build plan name.

41

number

Anchor
number
number

 

(tick)

Build number. Defaults to latest. (default: 0)

42

outputFormat

Anchor
outputFormat
outputFormat

 

(tick)

Specify output format for an action. (default: 1)

43

password

Anchor
password
password

p

(tick)

User password for remote access.

44

plan

Anchor
plan
plan

 

(tick)

Build plan key containing the project key. Example: XXX-DEF

45

port

Anchor
port
port

 

(tick)

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

46

project

Anchor
project
project

 

(tick)

Project key. Example: XXX

47

projectName

Anchor
projectName
projectName

 

(tick)

Project name.

48

propertyFile

Anchor
propertyFile
propertyFile

 

(tick)

Property file with mapping information.

49

quiet

Anchor
quiet
quiet

 

(error)

Limit some output messages. Optional for all actions.

50

regex

Anchor
regex
regex

 

(tick)

Regular expression for including matching content.

51

repositoryKey

Anchor
repositoryKey
repositoryKey

 

(tick)

Repository key. Example: com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-mercurial:hg

...

52

request

Anchor
request
request

 

(tick)

URL fragment for a request.

53

requestParameters

Anchor
requestParameters
requestParameters

 

(tick)

URL request parameters

54

requestType

Anchor
requestType
requestType

 

(tick)

Type of a render request like GET or POST (default: GET)

55

requirement

Anchor
requirement
requirement

 

(tick)

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

...

56

revision

Anchor
revision
revision

 

(tick)

Revision id or tag.

57

searchLabels

Anchor
searchLabels
searchLabels

 

(tick)

Comma or blank separated list of labels used for search.

58

server

Anchor
server
server

s

(tick)

Server URL.

59

service

Anchor
service
service

 

(tick)

Service address extension. (default: /rest/api)

60

simulate

Anchor
simulate
simulate

 

(error)

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

61

special

Anchor
special
special

 

(tick)

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

62

sql

Anchor
sql
sql

 

(tick)

SQL select statement used to generate a run script.

63

stage

Anchor
stage
stage

 

(tick)

Stage name.

64

taskKey

Anchor
taskKey
taskKey

 

(tick)

Task key. Example: com.atlassian.bamboo.plugins.scripttask:task.builder.script

...

65

timeout

Anchor
timeout
timeout

 

(tick)

Wait timeout in seconds. Use -1 to wait forever. (default: -1)

66

toPlan

Anchor
toPlan
toPlan

 

(tick)

Build plan key to be created. Example: XXX-DEF

67

toProject

Anchor
toProject
toProject

 

(tick)

Project key to clone to.

68

type

Anchor
type
type

 

(tick)

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

69

url

Anchor
url
url

 

(tick)

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

70

user

Anchor
user
user

u

(tick)

User name for remote access. (default: automation)

71

value

Anchor
value
value

 

(tick)

Requirement match value.

72

value1

Anchor
value1
value1

 

(tick)

Value corresponding to the field1 parameter name.

73

value2

Anchor
value2
value2

 

(tick)

Value corresponding to the field2 parameter name.

74

value3

Anchor
value3
value3

 

(tick)

Value corresponding to the field3 parameter name.

75

value4

Anchor
value4
value4

 

(tick)

Value corresponding to the field4 parameter name.

76

verbose

Anchor
verbose
verbose

v

(error)

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

77

wait

Anchor
wait
wait

 

(error)

Wait for action to complete.

P