Action Types

⚠️This app will no longer be operational with the end of support of Bamboo version 9.6, planned for March 14, 2026. The app will no longer be available for purchase, use, or support, and the Marketplace listing will be archived. Learn more about Atlassian's End of Support Policy: https://confluence.atlassian.com/support/atlassian-end-of-support-policy-201851003.html

Action Types

 

 

 

Check

sleep

Sleep a number of seconds. Defaults to 1 second. Use in ACLI scripts that may need to wait before proceeding to the next action. For instance, waiting for server to complete updating search indexes or polling type scenarios.

 

validateLicense

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

 

 

verifyBuild

Verify build was successful. Throws exception if not successful. If only a plan key is specified, it defaults to latest build. Use wait to loop waiting for the build to complete.

Create

addAgent

Add a local agent.

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. Use autoAgent to automatically create a local agent if it does not already exist.

addApplicationLink

Add an application link to another application. By default, both incoming and outgoing links are enabled and configured without impersonation (users are not shared). Use the options parameter to customize the behavior. Use '--options impersonate' to enable shared users. Other examples are '--options disableIncoming' and '--options disableOutgoing'. If another link of the same type already exists as primary, use '--options primary' to force the new link to be primary instead.

addArtifact

Add an artifact definition to a job.

addArtifactDependency

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

 

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.

addCapability

Add a shared or agent specific server capability.

addComment

Add a comment to a build.

addCredentials

Add SSH, AWS, or user based credentials. For SSH, provide a file with the SSH private key. For AWS, provide an access key and secret.

addEnvironment

Add an environment to deployment project.

addEnvironmentNotification

Add a notification to a deployment environment. 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.

addEnvironmentRequirement

Add a requirement to a deployment environment.

addEnvironmentTask

Add a task to a deployment environment. This is similar to the addTask action - see the action help more information.

addEnvironmentTrigger

Add a trigger to a deployment project. Pre-defined types are: scheduled, afterSuccessfulStage, afterSuccessfulPlan, afterSuccessfulDeployment. 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.

addEnvironmentVariables

Add deployment environment variables. Use the field parameters for the variable name and the corresponding value parameters for the variable values.

addGroup

Add a new group.

addJob

Add a job to a stage. By default, if the plan has a repository, Bamboo will automatically add a CHECKOUT task to the job. Use '--options noCheckoutTask' if you do not want this.

addLabels

Add a comma separated list of labels to a build or plan.

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 field parameters. In some cases, pre-defined parameters are available.

addRepository

Add a global or plan repository. If both a name and repository are provided, the name will be used for the Bamboo name and repository will be used for the Bitbucket 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. If the credentials parameter is provided the appropriate fields will be added automatically for GIT, Mercurial, and Bitbucket Cloud repositories.

addRequirement

Add requirement to a plan job. Type defaults to EXISTS.

addStage

Add a stage to a plan.

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_JIRA, CLI_SERVICE_DESK, CLI_SLACK, CLI_UPM, GANT, GINT, GRADLE, GRADLEW, GRADLEWRAPPER, GROOVY, INJECT_VARIABLES, JUNIT_PARSER, MAVEN2, MAVEN3, SCP, SQL, SCRIPT, SSH, VARIABLE_REPLACE. Use multiple field parameters to set required and optional fields specific for the task. Each task type may have unique fields that need to be determined from the respective UI panel. Missing or incorrect specifying of these fields will cause errors that are sometime hard to figure out. You can use a browser inspect capability to find the underlying field names and value requirements. Another, easier technique, is to create an example task in the UI and then use the exportJob action to see what ACLI has determined are the necessary fields. Use the @file special value to set the value of a field to the contents of the file (including standard input for -f "-") like '-a addTask --field scriptBody=@file --file script.txt'.

addTrigger

Add a trigger to a plan. Pre-defined types are: polling, remote, remoteBitbucketServer, scheduled. One or more repositories can be specified for pre-defined type triggers based on repositories or custom types. 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.

addUser

Add a new user. User can be added to a group (or groups) using the group parameter.

addVariables

Add global, project, or plan variables. Defaults to global variables unless a project or plan is specified. Use the field parameters for the variable name and the corresponding value parameters for the variable values. Project variables are available on Bamboo 7.1 and higher.

 

addWebhookTemplate

Add or replace a webhook template. Use data or file parameter to specify the template body. Request type defaults to POST. Headers defaults to 'content-type:application/json' but can be customized using the options parameter.

name, (file or data)

cloneEnvironment

Clone an environment within a deployment project.

cloneJob

Clone a job to the same stage and plan by default. Use the stage parameter to specify a different stage. Use the toPlan to clone to another plan. Job name and description are cloned unless name or description parameters are specified.

clonePlan

Clone a plan.

Delete

deleteDeploymentProject

Delete a deployment project by name or id.

deletePlan

Delete a plan.

deleteProject

Delete project and all project plans. For problem determination, consider using the file parameter for detailed logging of output.

removeAgent

Remove an agent.

removeAgentAssignment

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

removeApplicationLink

Remove an application link identified by name or url.

removeArtifact

Remove an artifact definition from a plan or job.

removeBranch

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

 

removeBuildArtifacts

Remove artifacts for a specific build or just specific job artifacts using the job parameter or when the build parameter contains a job reference. This includes build result, logs, and artifacts. Use continue to ignore not found errors. Only job unshared artifacts are removed for job artifact removal. To remove artifacts from multiple builds, use in conjunction with runFromBuildList and its filtering capabilities.

removeBuildHistory

Remove history for a specific build. This includes build result, logs, and artifacts. Use continue to ignore not found errors. To remove history from multiple builds, use in conjunction with runFromBuildList and its filtering capabilities.

removeCapability

Remove a shared or agent specific server capability identified by key (label) or unique name.

removeCredentials

Remove credentials by name or id.

removeEnvironment

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

removeEnvironmentNotification

Remove deployment environment notification. Use id of -1 to remove all notifications for an environment. If an id is not provided, all notifications found matching the event and recipientType will be removed.

removeEnvironmentRequirement

Remove a deployment environment requirement. Specify -1 for id to remove all requirements from a plan that are eligible to be removed.

 

removeEnvironmentTask

Remove a task from a deployment environment.

 

removeEnvironmentTrigger

Remove a trigger from a deployment environment. Use --id -1 or --name @all to remove all triggers. Administrator permission required to use a name and only the first trigger with the given name will be removed.

removeEnvironmentVariables

Remove deployment environment variables. Specify the variable names using the field parameters.

removeGroup

Remove a group.

removeJob

Remove a job from a plan.

removeLabels

Remove labels from a build or plan. Labels can be a comma separated list or regex.

removeNotification

Remove a plan notification. Use id of -1 to remove all notifications for a plan. If an id is not provided, all notifications found matching the event and recipientType will be removed.

removeRepository

Remove global or plan repository. Use @all to remove all repositories. When removing a single plan repository, you can replace references with another repository defined for the plan by using --options "replaceRepository=XXX".

removeRequirement

Remove a plan requirement. Specify -1 for id to remove all requirements from a plan that are eligible to be removed.

(plan or build), job, id

 

removeStage

Remove a stage from a plan. Use --stage @all to remove all stages. Use continue to ignore not found errors. On Bamboo 6.8 and higher, stages are removed in the background. Use *wait* to wait for the background removal to occur before completing the action.

(plan or build), (stage or id or name)

removeTask

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

(plan or build), job, (task or id)

 

removeTrigger

Remove a trigger from a plan. Use --id -1 or --name @all to remove all triggers. Administrator permission required to use a name and only the first trigger with the given name will be removed.

plan, (id or name)

removeUser

Remove a user.

removeVariables

Remove global, project, or plan variables. Defaults to global variables unless a project or plan is specified. Specify the variable names using the field parameters. Project variables are available on Bamboo 7.1 and higher.

 

Export

exportDeploymentProject

Export a deployment project to source that can be used for deployment project creation. Valid export types are CLI and JAVA specified by the type parameter. Defaults to CLI.

exportEnvironment

Export an environment for a deployment project to source.

exportJob

Export a job to CLI source.

exportPlan

Export a plan to source that can be used for plan creation. Valid export types are CLI and JAVA specified by the type parameter. Defaults to CLI. Yaml export is no longer available on Bamboo 6.9 and higher.

exportSite

Export site to the exports directory in the home directory. By default, only the configuration is exported. Set appropriate options parameters to export additional data: exportResults, exportArtifacts, exportBuildLogs. Use the name parameter to set the file name, otherwise it will be automatically generated based on the date of the export using the date format requested.

 

Get

Generating content properties report...

Import

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.

 

Install

Generating content properties report...

Run

Generating content properties report...

Start

Generating content properties report...

Stop

Generating content properties report...

Test

Generating content properties report...

Update

Generating content properties report...

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.