Versions Compared

Key

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

...

Actions

Action, Category, Description, Required parameters, Optional parameters, Output formats "[#addAgentAssignment] {anchor: addAgentAssignment}", "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.", "[#agent], [#assignment]", "[#continue]", "[#addAgent] {anchor: addAgent}", "Agents", "Add a local agent.", "[#agent]", "[#description]", "[#addArtifactDependency] {anchor: addArtifactDependency}", "Artifacts", "Add an artifact dependency a job. Artifact must be a shared artifact from another job.", "[#plan], [#job], [#artifact], [#location]", , "[#addArtifact] {anchor: addArtifact}", "Artifacts", "Add an artifact definition to a job. Server instances only.", "[#plan], [#job], [#artifact], [#copyPattern]", "[#location], [#shared]", "[#addComment] {anchor: addComment}", "Comments", "Add a comment to a build.", "[#build], [#comment]", "[#number], [#findReplace], [#findReplaceRegex], [#file], [#encoding]", "[#addJob] {anchor: addJob}", "Jobs", "Add a job to a stage.", "[#plan], [#stage], [#job]", "[#name], [#description], [#disable]", "[#addLabels] {anchor: addLabels}", "Labels", "Add a comma separated list of labels to a build.", "[#build], [#labels]", "[#number]", "[#addRepository] {anchor: addRepository}", "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]", "[#addRequirement] {anchor: addRequirement}", "Requirements", "Add requirement to a plan job.", "[#plan], [#job], [#requirement]", "[#type], [#value]", "[#addStage] {anchor: addStage}", "Stages", "Add a stage to a plan.", "[#plan], [#stage]", "[#description], [#manual], [#disable]", "[#addTask] {anchor: addTask}", "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", "[#plan], [#job], [#taskKey]", "[#disable], [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#addTrigger] {anchor: addTrigger}", "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.", "[#plan], [#name], [#type]", "[#repository], [#schedule], [#ipRestriction]", "[#addVariables] {anchor: addVariables}", "Variables", "Add global or plan variables.", , "[#plan], [#replace] [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#clonePlan] {anchor: clonePlan}", "Plans", "Clone a plan.", "[#plan], [#toPlan], [#name]", "[#description], [#projectName], [#disable]", "[#cloneProject] {anchor: cloneProject}", "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.", "[#project], [#toProject], [#projectName], [#disable]", , "[#createPlan] {anchor: createPlan}", "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.", "[#plan]", "[#name], [#projectName], [#description], [#disable]", "[#deletePlan] {anchor: deletePlan}", "Plans", "Delete a plan.", "[#plan]", , "[#deleteProject] {anchor: deleteProject}", "Projects", "Delete project and all project plans.", "[#project]", "[#file]", "[#disableAgent] {anchor: disableAgent}", "Agents", "Disable an agent.", "[#agent]", , "[#disableJob] {anchor: disableJob}", "Jobs", "Disable a job from running.", "[#plan], [#job]", , "[#disablePlan] {anchor: disablePlan}", "Plans", "Disable a plan from running.", "[#plan]", , "[#disableProject] {anchor: disableProject}", "Projects", "Disable all project plans.", "[#project]", , "[#enableAgent] {anchor: enableAgent}", "Agents", "Enable an agent.", "[#agent]", , "[#enableJob] {anchor: enableJob}", "Jobs", "Enable a job to run.", "[#plan], [#job]", , "[#enablePlan] {anchor: enablePlan}", "Plans", "Enable a plan to run.", "[#plan]", , "[#enableProject] {anchor: enableProject}", "Projects", "Enable all project plans.", "[#project]", , "[#getAgentList] {anchor: getAgentList}", "Lists", "Get a list of agents based on regex filtering of agent names..", , "[#regex], [#file], [#append], [#encoding], [#columns]", "1 - basic\\ 2 - detail" "[#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. Default limit is 25.", "[#plan]", "[#limit], [#favorite], [#labels], [#issues], [#columns], [#file], [#append], [#encoding]", "1 - basic\\ 2 - test information" "[#getBuildQueueList] {anchor: getBuildQueueList}", "Lists", "Get a list of builds waiting in the build queue. Subset by project or build.", , "[#project], [#build], [#file], [#append], [#encoding], [#columns]", "[#getBuild] {anchor: getBuild}", "Builds", "Get build result.", "[#build]", "[#number], [#expand], [#file]", "[#getClientInfo] {anchor: getClientInfo}", "Info", "Get information about the this client tool.", , "[#outputFormat], [#file], [#append], [#encoding]", "1 - basic\\ 2 - JVM" "[#getCommentList] {anchor: getCommentList}", "Lists", "Get a list of comments for a build.", "[#build]", "[#number], [#file], [#append], [#encoding], [#columns]", "[#getJobList] {anchor: getJobList}", "Lists", "Get a list of jobs for a plan with regex filtering on job key or name. Subset by stage if desired.", "[#plan]", "[#stage], [#regex], [#file], [#attribute], [#columns]", "[#getLabelList] {anchor: getLabelList}", "Lists", "Get a list of labels for a build.", "[#build]", "[#number], [#file], [#append], [#encoding], [#columns]", "[#getLatestBuildNumber] {anchor: getLatestBuildNumber}", "Builds", "Get the number of the last completed build for this plan.", "[#plan]", , "[#getPlanList] {anchor: getPlanList}", "Lists", "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.", "[#project]", "[#favorite], [#regex], [#columns], [#file], [#append], [#encoding]", "[#getPlan] {anchor: getPlan}", "Plans", "Get plan information.", "[#plan]", , "[#getProjectList] {anchor: getProjectList}", "Lists", "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.", , "[#regex], [#file], [#append], [#encoding], [#columns]", "[#getRepositoryList] {anchor: getRepositoryList}", "Lists", "Get a list of global or plan repositories with regex filtering on repository name.", , "[#plan], [#regex], [#file], [#append], [#encoding]", "[#getRepository] {anchor: getRepository}", "Repositories", "Get details of a global or plan repository. Sets the repository and repositoryId replacement variables.", "[#repository]", "[#plan]", "[#getServerInfo] {anchor: getServerInfo}", "Info", "Get information about the Bamboo server.", , "[#outputFormat], [#dateFormat], [#file], [#append], [#encoding]", "1 - basic\\ 2 - detail" "[#getStageList] {anchor: getStageList}", "Lists", "Get a list of stages for a plan with regex filtering on stage name.", "[#plan]", "[#regex], [#file], [#attribute], [#columns]", "[#getVariableList] {anchor: getVariableList}", "Lists", "Get a list of global or plan variables based on regex filtering of variable names.", , "[#plan], [#regex], [#file], [#append], [#encoding]", "[#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. 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.", "[#plan]", "[#revision], [#wait], [#continue], [#timeout], [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#removeAgentAssignment] {anchor: removeAgentAssignment}", "Agent Assignments", "Remove an assignment from a specific agent. Use continue to ignore not found error.", "[#agent], [#assignment]", "[#continue]", "[#removeAgent] {anchor: removeAgent}", "Agents", "Remove an agent.", "[#agent]", , "[#removeArtifact] {anchor: removeArtifact}", "Artifacts", "Remove an artifact definition from a job. Server instances only.", "[#plan], [#job], [#artifact]", , "[#removeLabels] {anchor: removeLabels}", "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", "[#labels]", "[#build], [#number], [#searchLabels], [#issues], [#favorite]", "[#removeRepository] {anchor: removeRepository}", "Repositories", "Remove global or plan repository. Use @all to remove all repositories.", "[#repository] or [#id]", "[#plan], [#continue]", "[#removeRequirement] {anchor: removeRequirement}", "Requirements", "Remove a plan requirement.", "[#plan], [#job], [#id]", , "[#removeStage] {anchor: removeStage}", "Stages", "Remove a stage from a plan. Use id = -1 to remove all stages. Use continue to ignore not found errors.", "[#plan], [#stage] or [#id]", "[#continue]", "[#removeTask] {anchor: removeTask}", "Tasks", "Remove a task from a plan job. Use id = -1 to remove all tasks.", "[#plan], [#job], [#id]", , "[#removeTrigger] {anchor: removeTrigger}", "Triggers", "Remove a trigger from a plan. Use id = -1 to remove all triggers. Server instances only.", "[#plan], [#id]", , "[#removeVariables] {anchor: removeVariables}", "Variables", "Remove global or plan variables", , "[#plan], [#fields], [#field1], [#field2], [#field3], [#field4], [#field5], [#field6]", "[#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]", "[#runFromAgentList] {anchor: runFromAgentList}", "Run", "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]", "[#runFromCsv] {anchor: runFromCsv}", "Run", "Run actions generated from a CSV file.", "[#file]", "[#common], [#propertyFile], [#continue], [#quiet], [#simulate], [#clearFileBeforeAppend], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromJobList] {anchor: runFromJobList}", "Run", "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]", "[#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], [#clearFileBeforeAppend], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromPlanList] {anchor: runFromPlanList}", "Run", "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.", "[#project]", "[#favorite], [#regex], [#common], [#continue], [#simulate], [#clearFileBeforeAppend], [#file], [#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], [#clearFileBeforeAppend], [#file], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromRepositoryList] {anchor: runFromRepositoryList}", "Run", "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]", "[#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], [#clearFileBeforeAppend], [#encoding], [#findReplace], [#findReplaceRegex]", "[#runFromStageList] {anchor: runFromStageList}", "Run", "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]", "[#run] {anchor: run}", "Run", "Run actions from a file or standard input.", "[#file] or standard input", "[#common], [#continue], [#simulate], [#clearFileBeforeAppend], [#encoding], [#findReplace], [#findReplaceRegex]", "[#updateRepository] {anchor: updateRepository}", "Repositories", "Update a global or plan repository.", "[#repository] or [#id]", "[#plan], [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#updateRequirement] {anchor: updateRequirement}", "Requirements", "Update a plan requirement.", "[#plan], [#job], [#id]", "[#type], [#value]", "[#updateTask] {anchor: updateTask}", "Tasks", "Update a task in a plan job. You must provide the same parameters as if you were creating the task.", "[#plan], [#job], [#id]", "[#enable], [#disable], [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#updateVariables] {anchor: updateVariables}", "Variables", "Update existing global or plan variables", , "[#plan] [#fields], [#field1], [#value1], [#field2], [#value2], [#field3], [#value3], [#field4], [#value4], [#field5], [#value5], [#field6], [#value6]", "[#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

outputwiki
sortColumn1
autoNumbertrue
sortIconfalse

Category

Description

Required parameters

Optional parameters

Output formats

1

addAgentAssignment

Anchor
addAgentAssignment
addAgentAssignment

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.

agent, assignment

continue

 

2

addAgent

Anchor
addAgent
addAgent

Agents

Add a local agent.

agent

description

 

3

addArtifactDependency

Anchor
addArtifactDependency
addArtifactDependency

Artifacts

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

plan, job, artifact, location

 

 

4

addArtifact

Anchor
addArtifact
addArtifact

Artifacts

Add an artifact definition to a job. Server instances only.

plan, job, artifact, copyPattern

location, shared

 

5

addComment

Anchor
addComment
addComment

Comments

Add a comment to a build.

build, comment

number, findReplace, findReplaceRegex, file, encoding

 

6

addJob

Anchor
addJob
addJob

Jobs

Add a job to a stage.

plan, stage, job

name, description, disable

 

7

addLabels

Anchor
addLabels
addLabels

Labels

Add a comma separated list of labels to a build.

build, labels

number

 

8

addRepository

Anchor
addRepository
addRepository

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

 

9

addRequirement

Anchor
addRequirement
addRequirement

Requirements

Add requirement to a plan job.

plan, job, requirement

type, value

 

10

addStage

Anchor
addStage
addStage

Stages

Add a stage to a plan.

plan, stage

description, manual, disable

 

11

addTask

Anchor
addTask
addTask

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

plan, job, taskKey

disable, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6

 

12

addTrigger

Anchor
addTrigger
addTrigger

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.

plan, name, type

repository, schedule, ipRestriction

 

13

addVariables

Anchor
addVariables
addVariables

Variables

Add global or plan variables.

 

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

 

14

clonePlan

Anchor
clonePlan
clonePlan

Plans

Clone a plan.

plan, toPlan, name

description, projectName, disable

 

15

cloneProject

Anchor
cloneProject
cloneProject

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.

project, toProject, projectName, disable

 

 

16

createPlan

Anchor
createPlan
createPlan

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.

plan

name, projectName, description, disable

 

17

deletePlan

Anchor
deletePlan
deletePlan

Plans

Delete a plan.

plan

 

 

18

deleteProject

Anchor
deleteProject
deleteProject

Projects

Delete project and all project plans.

project

file

 

19

disableAgent

Anchor
disableAgent
disableAgent

Agents

Disable an agent.

agent

 

 

20

disableJob

Anchor
disableJob
disableJob

Jobs

Disable a job from running.

plan, job

 

 

21

disablePlan

Anchor
disablePlan
disablePlan

Plans

Disable a plan from running.

plan

 

 

22

disableProject

Anchor
disableProject
disableProject

Projects

Disable all project plans.

project

 

 

23

enableAgent

Anchor
enableAgent
enableAgent

Agents

Enable an agent.

agent

 

 

24

enableJob

Anchor
enableJob
enableJob

Jobs

Enable a job to run.

plan, job

 

 

25

enablePlan

Anchor
enablePlan
enablePlan

Plans

Enable a plan to run.

plan

 

 

26

enableProject

Anchor
enableProject
enableProject

Projects

Enable all project plans.

project

 

 

27

getAgentList

Anchor
getAgentList
getAgentList

Lists

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

 

regex, file, append, encoding, columns

1 - basic
2 - detail

28

getArtifact

Anchor
getArtifact
getArtifact

Artifacts

Download a copy of a build artifact into a file.

build, artifact, file

number

 

29

getBuildList

Anchor
getBuildList
getBuildList

Lists

Get a list of builds. Default limit is 25.

plan

limit, favorite, labels, issues, columns, file, append, encoding

1 - basic
2 - test information

30

getBuildQueueList

Anchor
getBuildQueueList
getBuildQueueList

Lists

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

 

project, build, file, append, encoding, columns

 

31

getBuild

Anchor
getBuild
getBuild

Builds

Get build result.

build

number, expand, file

 

32

getClientInfo

Anchor
getClientInfo
getClientInfo

Info

Get information about the this client tool.

 

outputFormat, file, append, encoding

1 - basic
2 - JVM

33

getCommentList

Anchor
getCommentList
getCommentList

Lists

Get a list of comments for a build.

build

number, file, append, encoding, columns

 

34

getJobList

Anchor
getJobList
getJobList

Lists

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

plan

stage, regex, file, attribute, columns

 

35

getLabelList

Anchor
getLabelList
getLabelList

Lists

Get a list of labels for a build.

build

number, file, append, encoding, columns

 

36

getLatestBuildNumber

Anchor
getLatestBuildNumber
getLatestBuildNumber

Builds

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

plan

 

 

37

getPlanList

Anchor
getPlanList
getPlanList

Lists

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.

project

favorite, regex, columns, file, append, encoding

 

38

getPlan

Anchor
getPlan
getPlan

Plans

Get plan information.

plan

 

 

39

getProjectList

Anchor
getProjectList
getProjectList

Lists

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.

 

regex, file, append, encoding, columns

 

40

getRepositoryList

Anchor
getRepositoryList
getRepositoryList

Lists

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

 

plan, regex, file, append, encoding

 

41

getRepository

Anchor
getRepository
getRepository

Repositories

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

repository

plan

 

42

getServerInfo

Anchor
getServerInfo
getServerInfo

Info

Get information about the Bamboo server.

 

outputFormat, dateFormat, file, append, encoding

1 - basic
2 - detail

43

getStageList

Anchor
getStageList
getStageList

Lists

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

plan

regex, file, attribute, columns

 

44

getVariableList

Anchor
getVariableList
getVariableList

Lists

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

 

plan, regex, file, append, encoding

 

45

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. 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.

plan

revision, wait, continue, timeout, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6

 

46

removeAgentAssignment

Anchor
removeAgentAssignment
removeAgentAssignment

Agent Assignments

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

agent, assignment

continue

 

47

removeAgent

Anchor
removeAgent
removeAgent

Agents

Remove an agent.

agent

 

 

48

removeArtifact

Anchor
removeArtifact
removeArtifact

Artifacts

Remove an artifact definition from a job. Server instances only.

plan, job, artifact

 

 

49

removeLabels

Anchor
removeLabels
removeLabels

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

labels

build, number, searchLabels, issues, favorite

 

50

removeRepository

Anchor
removeRepository
removeRepository

Repositories

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

repository or id

plan, continue

 

51

removeRequirement

Anchor
removeRequirement
removeRequirement

Requirements

Remove a plan requirement.

plan, job, id

 

 

52

removeStage

Anchor
removeStage
removeStage

Stages

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

plan, stage or id

continue

 

53

removeTask

Anchor
removeTask
removeTask

Tasks

Remove a task from a plan job. Use id = -1 to remove all tasks.

plan, job, id

 

 

54

removeTrigger

Anchor
removeTrigger
removeTrigger

Triggers

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

plan, id

 

 

55

removeVariables

Anchor
removeVariables
removeVariables

Variables

Remove global or plan variables

 

plan, fields, field1, field2, field3, field4, field5, field6

 

56

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

 

57

runFromAgentList

Anchor
runFromAgentList
runFromAgentList

Run

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

 

58

runFromCsv

Anchor
runFromCsv
runFromCsv

Run

Run actions generated from a CSV file.

file

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

 

59

runFromJobList

Anchor
runFromJobList
runFromJobList

Run

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

 

60

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

 

61

runFromPlanList

Anchor
runFromPlanList
runFromPlanList

Run

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.

project

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

 

62

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

 

63

runFromRepositoryList

Anchor
runFromRepositoryList
runFromRepositoryList

Run

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

 

64

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

 

65

runFromStageList

Anchor
runFromStageList
runFromStageList

Run

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

 

66

run

Anchor
run
run

Run

Run actions from a file or standard input.

file or standard input

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

 

67

updateRepository

Anchor
updateRepository
updateRepository

Repositories

Update a global or plan repository.

repository or id

plan, fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6

 

68

updateRequirement

Anchor
updateRequirement
updateRequirement

Requirements

Update a plan requirement.

plan, job, id

type, value

 

69

updateTask

Anchor
updateTask
updateTask

Tasks

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

plan, job, id

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

 

70

updateVariables

Anchor
updateVariables
updateVariables

Variables

Update existing global or plan variables

 

plan fields, field1, value1, field2, value2, field3, value3, field4, value4, field5, value5, field6, value6

 

71

validateLicense

Anchor
validateLicense
validateLicense

 

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

 

 

 

72

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
outputwiki
sortColumn1
columnTypesS,S,E,S
autoNumbertrue
sortIconfalse
Parameter, Short, Value, Description "acceptType {anchor:acceptType}", , "(/)", "Content type to accept for renderRequest if different than type." "action {anchor:action}", "a", "(/)", "agent {anchor:agent}", , "(/)", "Agent name." "api {anchor:api}", , "(/)", "API version. Some requests produce different results based on the api version used. (default: latest)" "append {anchor:append}", , "(x)", "For some actions using the file parameter, append will append output to the existing file." "artifact {anchor:artifact}", , "(/)", "Build artifact name. May be extended by a path name for locating files within an artifact representing a dirctory." "assignment {anchor: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" "attribute {anchor:attribute}", , "(/)", "Attribute to list." "build {anchor: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" "clearFileBeforeAppend {anchor:clearFileBeforeAppend}", , "(x)", "For run actions, this option will automatically clear an existing file on the first append requested." "columns {anchor: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." "comment {anchor:comment}", , "(/)", "Comment for an build." "common {anchor:common}", , "(/)", "Common parameter string added to all run actions." "connectionTimeout {anchor:connectionTimeout}", , "(/)", "Allow overriding environment settings for connect and read timeouts on URL connections. In milliseconds, 0 means infinite." "continue {anchor:continue}", , "(x)", "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." "cookies {anchor: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." "copyPattern {anchor:copyPattern}", , "(/)", "Copy pattern for an artifact definition." "database {anchor:database}", , "(/)", "Database name is required for SQL actions." "dateFormat {anchor:dateFormat}", , "(/)", "Format string for date in Java SimpleDateFormat, default is client date format." "dbPassword {anchor:dbPassword}", , "(/)", "Database user password. Defaults to password." "dbUser {anchor:dbUser}", , "(/)", "Database user name. Defaults to user." "debug {anchor:debug}", , "(x)", "Requests detail debug output. Optional for all actions." "description {anchor:description}", , "(/)", "Description for entity." "disable {anchor:disable}", , "(x)", "Disable an entity for those entities like plans, stages, jobs, and tasks." "driver {anchor:driver}", , "(/)", "JDBC driver class or predefined value: postgresql, mysql, mssql, oracle, or db2400. Required for SQL actions." "enable {anchor:enable}", , "(x)", "Enable an entity when updating." "encoding {anchor:encoding}", , "(/)", "Character encoding (character set) for text based file content - must be an encoding supported by your JAVA platform." "expand {anchor:expand}", , "(/)", "Expanded request information to obtain more detailed data on request." "favorite {anchor:favorite}", , "(x)", "Subset to favorites. Same as favourite." "favourite {anchor:favourite}", , "(x)", "Subset to favourites. Same as favorite." "field1 {anchor:field1}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value1 parameter." "field2 {anchor:field2}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value2 parameter." "field3 {anchor:field3}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value3 parameter." "field4 {anchor:field4}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value4 parameter." "field5 {anchor:field5}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value5 parameter." "field6 {anchor:field6}", , "(/)", "Task or repository specific field or variable name. Value is specified by the value6 parameter." "fields {anchor: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." "file {anchor:file}", "f", "(/)", "Path to file based content or result output. Use - for standard input." "findReplace {anchor:findReplace}", , "(/)", "Find and replace text. Comma separated list of colon separated pairs. Single quote values containing a delimiter. Embedded quotes must be doubled." "findReplaceRegex {anchor: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." "help {anchor:help}", , "(x)", "Prints this help message." "host {anchor:host}", , "(/)", "Database host server for SQL actions. Not used if url is provided. (default: localhost)" "id {anchor:id}", , "(/)", "Stage or task id." "ipRestriction {anchor:ipRestriction}", , "(/)", "Comma separated list of IP addresses to restrict ability to remotely trigger builds." "issues {anchor:issues}", , "(/)", "Comma separated list of JIRA issue keys." "job {anchor:job}", , "(/)", "Job key. Example: JOB1" "labels {anchor:labels}", , "(/)", "Comma or blank separated list of labels." "limit {anchor:limit}", , "(/)", "Maximum number of entries to return. (default: 2147483647)" "list {anchor:list}", , "(/)", "Comma separated list of entries. Single quote values containing a delimiter. Embedded quotes must be doubled." "location {anchor:location}", , "(/)", "Working directory relative path to a source location for an artifact definition or a destination location for an artifact dependency." "manual {anchor:manual}", , "(x)", "Indicate that a stage be run manually." "name {anchor:name}", , "(/)", "Name of entity, like plan name." "number {anchor:number}", , "(/)", "Build number. Defaults to latest. (default: 0)" "outputFormat {anchor:outputFormat}", , "(/)", "Specify output format for an action. (default: 1)" "password {anchor:password}", "p", "(/)", "User password for remote access." "plan {anchor:plan}", , "(/)", "Plan key containing the project key. Preferred way to reference a plan instead of the older build terminology. Example: XXX-DEF" "port {anchor:port}", , "(/)", "Database host port for SQL actions. Optional, defaults to database default. Not used if url is provided." "project {anchor:project}", , "(/)", "Project key. Example: XXX" "projectName {anchor:projectName}", , "(/)", "Project name." "propertyFile {anchor:propertyFile}", , "(/)", "Property file with mapping information." "quiet {anchor:quiet}", , "(x)", "Limit some output messages. Optional for all actions." "regex {anchor:regex}", , "(/)", "Regular expression for including matching content." "replace {anchor:replace}", , "(x)", "Replace existing entity." "repository {anchor:repository}", , "(/)", "Name of a repository. In some cases, a comma separated list of repository names." "repositoryKey {anchor:repositoryKey}", , "(/)", "Repository key. Example:
for documentation

Parameters

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

agent

Anchor
agent
agent

 

(tick)

Agent name.

4

api

Anchor
api
api

 

(tick)

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

5

append

Anchor
append
append

 

(error)

For some actions using the file parameter, append will append output to the existing file.

6

artifact

Anchor
artifact
artifact

 

(tick)

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

7

assignment

Anchor
assignment
assignment

 

(tick)

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

8

attribute

Anchor
attribute
attribute

 

(tick)

Attribute to list.

9

build

Anchor
build
build

 

(tick)

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

10

clearFileBeforeAppend

Anchor
clearFileBeforeAppend
clearFileBeforeAppend

 

(error)

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

11

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.

12

comment

Anchor
comment
comment

 

(tick)

Comment for an build.

13

common

Anchor
common
common

 

(tick)

Common parameter string added to all run actions.

14

connectionTimeout

Anchor
connectionTimeout
connectionTimeout

 

(tick)

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

15

continue

Anchor
continue
continue

 

(error)

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.

16

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.

17

copyPattern

Anchor
copyPattern
copyPattern

 

(tick)

Copy pattern for an artifact definition.

18

database

Anchor
database
database

 

(tick)

Database name is required for SQL actions.

19

dateFormat

Anchor
dateFormat
dateFormat

 

(tick)

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

20

dbPassword

Anchor
dbPassword
dbPassword

 

(tick)

Database user password. Defaults to password.

21

dbUser

Anchor
dbUser
dbUser

 

(tick)

Database user name. Defaults to user.

22

debug

Anchor
debug
debug

 

(error)

Requests detail debug output. Optional for all actions.

23

description

Anchor
description
description

 

(tick)

Description for entity.

24

disable

Anchor
disable
disable

 

(error)

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

25

driver

Anchor
driver
driver

 

(tick)

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

26

enable

Anchor
enable
enable

 

(error)

Enable an entity when updating.

27

encoding

Anchor
encoding
encoding

 

(tick)

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

28

expand

Anchor
expand
expand

 

(tick)

Expanded request information to obtain more detailed data on request.

29

favorite

Anchor
favorite
favorite

 

(error)

Subset to favorites. Same as favourite.

30

favourite

Anchor
favourite
favourite

 

(error)

Subset to favourites. Same as favorite.

31

field1

Anchor
field1
field1

 

(tick)

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

32

field2

Anchor
field2
field2

 

(tick)

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

33

field3

Anchor
field3
field3

 

(tick)

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

34

field4

Anchor
field4
field4

 

(tick)

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

35

field5

Anchor
field5
field5

 

(tick)

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

36

field6

Anchor
field6
field6

 

(tick)

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

37

fields

Anchor
fields
fields

 

(tick)

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.

38

file

Anchor
file
file

f

(tick)

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

39

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.

40

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.

41

help

Anchor
help
help

 

(error)

Prints this help message.

42

host

Anchor
host
host

 

(tick)

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

43

id

Anchor
id
id

 

(tick)

Stage or task id.

44

ipRestriction

Anchor
ipRestriction
ipRestriction

 

(tick)

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

45

issues

Anchor
issues
issues

 

(tick)

Comma separated list of JIRA issue keys.

46

job

Anchor
job
job

 

(tick)

Job key. Example: JOB1

47

labels

Anchor
labels
labels

 

(tick)

Comma or blank separated list of labels.

48

limit

Anchor
limit
limit

 

(tick)

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

49

list

Anchor
list
list

 

(tick)

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

50

location

Anchor
location
location

 

(tick)

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

51

manual

Anchor
manual
manual

 

(error)

Indicate that a stage be run manually.

52

name

Anchor
name
name

 

(tick)

Name of entity, like plan name.

53

number

Anchor
number
number

 

(tick)

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

54

outputFormat

Anchor
outputFormat
outputFormat

 

(tick)

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

55

password

Anchor
password
password

p

(tick)

User password for remote access.

56

plan

Anchor
plan
plan

 

(tick)

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

57

port

Anchor
port
port

 

(tick)

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

58

project

Anchor
project
project

 

(tick)

Project key. Example: XXX

59

projectName

Anchor
projectName
projectName

 

(tick)

Project name.

60

propertyFile

Anchor
propertyFile
propertyFile

 

(tick)

Property file with mapping information.

61

quiet

Anchor
quiet
quiet

 

(error)

Limit some output messages. Optional for all actions.

62

regex

Anchor
regex
regex

 

(tick)

Regular expression for including matching content.

63

replace

Anchor
replace
replace

 

(error)

Replace existing entity.

64

repository

Anchor
repository
repository

 

(tick)

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

65

repositoryKey

Anchor
repositoryKey
repositoryKey

 

(tick)

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

...

66

request

Anchor
request
request

 

(tick)

URL fragment for a request.

67

requestParameters

Anchor
requestParameters
requestParameters

 

(tick)

URL request parameters

68

requestType

Anchor
requestType
requestType

 

(tick)

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

69

requirement

Anchor
requirement
requirement

 

(tick)

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

...

70

revision

Anchor
revision
revision

 

(tick)

Revision id or tag.

71

schedule

Anchor
schedule
schedule

 

(tick)

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.

72

searchLabels

Anchor
searchLabels
searchLabels

 

(tick)

Comma or blank separated list of labels used for search.

73

server

Anchor
server
server

s

(tick)

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

74

service

Anchor
service
service

 

(tick)

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

75

shared

Anchor
shared
shared

 

(error)

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

76

simulate

Anchor
simulate
simulate

 

(error)

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

77

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.

78

sql

Anchor
sql
sql

 

(tick)

SQL select statement used to generate a run script.

79

stage

Anchor
stage
stage

 

(tick)

Stage name.

80

taskKey

Anchor
taskKey
taskKey

 

(tick)

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

...

81

timeout

Anchor
timeout
timeout

 

(tick)

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

82

toPlan

Anchor
toPlan
toPlan

 

(tick)

Plan key to be created. Example: XXX-DEF

83

toProject

Anchor
toProject
toProject

 

(tick)

Project key to clone to.

84

type

Anchor
type
type

 

(tick)

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

85

url

Anchor
url
url

 

(tick)

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

86

user

Anchor
user
user

u

(tick)

User name for remote access. (default: automation)

87

value

Anchor
value
value

 

(tick)

Requirement match value.

88

value1

Anchor
value1
value1

 

(tick)

Value corresponding to the field1 parameter name.

89

value2

Anchor
value2
value2

 

(tick)

Value corresponding to the field2 parameter name.

90

value3

Anchor
value3
value3

 

(tick)

Value corresponding to the field3 parameter name.

91

value4

Anchor
value4
value4

 

(tick)

Value corresponding to the field4 parameter name.

92

value5

Anchor
value5
value5

 

(tick)

Value corresponding to the field5 parameter name.

93

value6

Anchor
value6
value6

 

(tick)

Value corresponding to the field6 parameter name.

94

verbose

Anchor
verbose
verbose

v

(error)

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

95

wait

Anchor
wait
wait

 

(error)

Wait for action to complete.

P