Versions Compared

Key

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

...

Command line environments can be different, especially between Windows and non-Windows systems. OurĀ Tips page talks about command line escaping differences and there are differences with respect to environment variable references ($ for non-Windows and %...% for Windows). These differences can impact examples, so recognize and adjust for your platform. In particular, all examples here are run with the standard bash shell on Linux.

...

addAgent

addAgentAssignment

--action addAgent addAgentAssignment --agent "Z Added 1zdeploy" --continue--action addAgent --agent "Z Added 1" --description "Agent added by 4691270"assignment "Deploy ZDEPLOY2812580-BASE" --type "DEPLOYMENT_PROJECT" --autoAgent
--action addAgent addAgentAssignment --agent "Z Added 2zdeploy" --action addAgent --agent "Z Added 3"
--action addAgent --agent "Z Added 4" --continue
addAgentAssignment
assignment "Deploy ZDEPLOY2812580-BASE:QA" --type "ENVIRONMENT" --autoAgent

addBranch

--action addAgentAssignment addBranch --agent "Z Added 1plan "ZTEMPLATE-CHECKOUT1" --assignment "ZCREATE4691270"branch "2.5.0" --continue
--action addAgentAssignment addBranch --agent "Z Added 1plan "ZTEMPLATE-CHECKOUT1" --assignment "ZCREATE4691270-AA"--action addAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270-AA-MYJOB"branch "2.5.0" --description "Branch for tag 2.5.0" --enable
--action addAgentAssignment addBranch --agent plan "zdeployZTEMPLATE-CHECKOUT1" --assignment "Deploy ZDEPLOY4591390-BASE" branch "2.6.0" --name "Release 2.6.0"

addCapability

--action addCapability --type "DEPLOYMENT_PROJECTDocker" --autoAgentvalue "/zdocker"
--action addAgentAssignment addCapability --agent type "zdeployDocker" --assignment "Deploy ZDEPLOY4591390-BASE:QAvalue "/zdocker" --type agent "ENVIRONMENTzcapabilities" --autoAgent

addArtifact

--action addArtifact addCapability --plan type "ZCREATE4691270-AAPerforce" --job value "MYJOB/zperforce"
--artifact "jar" action addCapability --location type "targetPerforce" --copyPattern value "**/*.jarzperforce" --sharedagent "zcapabilities"
--action addArtifact addCapability --plan type "custom" ZCREATE4691270--AAvalue "xxx" --job agent "myjobzcapabilities" --artifact name "jar2z custom 1"
--location "targetaction addCapability --type "custom" --copyPattern "**/*.jarvalue "xxx" --requiredname "z custom 1"
--action addArtifact addCapability --plan "ZCREATE4691270-AAtype "executable:Ant" --job value "myjob/ant" --artifact agent "remove mezcapabilities" --location "target" --copyPattern "**/*.jar"

addBranch

name "z Ant"
--action addBranch addCapability --plan "ZTEMPLATE-CHECKOUT1type "executable:Ant" --branch "2.5.0value "/ant" --continuename "z Ant"
--action addBranch addCapability --plan "ZTEMPLATE-CHECKOUT1type "executable:Gradle Wrapper" --branch "2.5.0value "/gw" --description "Branch for tag 2.5.0" --enable
--action addBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.6.0" --name "Release 2.6.0"

addCapability

agent "zcapabilities" --name "z GW"
--action addCapability --type "Dockerexecutable:Gradle Wrapper" --value "/zdockergw" --name "z GW"
--action addCapability --type "Dockergit" --value "/zdockerzgitssh" --agent "zcapabilities" --action addCapability --type "Perforce" --value "/zperforceoptions "ssh"
--action addCapability --type "Perforcegit" --value "/zperforcezgitssh" --agent options "zcapabilitiesssh"
--action addCapability --type "customjdk" --value "xxx/jdk" --agent "zcapabilities" --name "z custom 1JDK"
--action addCapability --type "customjdk" --value "xxx/jdk" --name "z custom 1JDK"
--action addCapability --type "executable:Antmercurial" --value "/antzhgssh" --agent "zcapabilities" --name options "z Antssh"
--action addCapability --type "executable:Antmercurial" --value "/antzhgssh" --name options "z Antssh"

addComment

--action addCapability addComment --type "executable:Gradle Wrapperbuild "XXX-DEF" --value "/gw" --agent "zcapabilitiescomment "This is a comment added by automation"
--action addComment --build "XXX-DEF" --name number "z GW678" --action addCapability file "./src/itest/bamboo/resources/data.txt" --type findReplace "executablexxx:Gradle Wrapper" yyy"

addEnvironment

--action addEnvironment --value "/gwdeploymentProject "Deploy ZDEPLOY2812580-BASE" --name "z GWDEV"
--action addCapability addEnvironment --type "gitdeploymentProject "Deploy ZDEPLOY2812580-BASE" --value name "/zgitsshQA" --agent "zcapabilities" --options "sshdescription "Environment description"
--action addCapability addEnvironment --type deploymentProject "git" --value "/zgitsshDeploy ZTEMPLATE-CHECKOUT1" --options name "sshQA"

addEnvironmentNotification

--action addCapability addEnvironmentNotification --deploymentProject "Deploy ZDEPLOY2812580-BASE" --type environment "jdkQA" --value event "/jdkDeployment finished" --agent recipientType "zcapabilitiesCLI" --name "z JDKfield "cliAction = -a getClientInfo"
--action addCapability addEnvironmentNotification --type deploymentProject "jdk" --value "/jdkDeploy ZDEPLOY2812580-BASE" --name environment "z JDKQA" --action addCapability --type "mercurialevent "Deployment started and finished" --value recipientType "/zhgsshCLI" --agent field "zcapabilities" --options "ssh"cliAction = -a getClientInfo"

addEnvironmentRequirement

--action addCapability addEnvironmentRequirement --type "mercurialdeploymentProject "Deploy ZDEPLOY2812580-BASE" --value environment "/zhgsshQA" --options "sshrequirement "system.builder.ant.Ant"

addComment

--action addComment addEnvironmentRequirement --build deploymentProject "XXXDeploy ZDEPLOY2812580-DEFBASE" --comment "This is a comment added by automation"--action addComment --build "XXX-DEFenvironment "QA" --requirement "xxx" --number type "672EQUALS" --file "./src/itest/bamboo/resources/data.txt" --findReplace "xxx:value "yyy"
addEnvironment

addEnvironmentTask

--action addEnvironment addEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --name environment "DEV" --action addEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASEtaskKey "SCRIPT" --name field "QAscriptLocation = INLINE" --description "Environment descriptionfield "scriptBody = exit -99"
--action addEnvironment addEnvironmentTask --deploymentProject "Deploy ZTEMPLATEZDEPLOY2812580-CHECKOUT1BASE" --name environment "QA"

addEnvironmentNotification

--action addEnvironmentNotification --deploymentProject "Deploy ZDEPLOY4591390-BASEtaskKey "GROOVY" --environment "QAfields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --event "Deployment finished" --recipientType "CLI" --field "cliAction scriptBody = -a getClientInfo0"
--action addEnvironmentNotification addEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --event "Deployment started and finishedtaskKey "GROOVY" --recipientType "CLIfields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "cliAction scriptBody = -a getClientInfo"
addEnvironmentRequirement
1" --final
--action addEnvironmentRequirement addEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --requirement "system.builder.ant.Antfield "scriptBody = sleep 10 && echo xxx > out.txt"
--action addEnvironmentRequirement addEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390ZTEMPLATE-BASECHECKOUT1" --environment "QA" --requirement taskKey "xxx" --type "EQUALS" --value "yyy"
addEnvironmentTask
SCRIPT" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"

addEnvironmentTrigger

--action addEnvironmentTask addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "DEVQA" --taskKey stage "SCRIPTFIRST" --field "scriptLocation = INLINEtype "After successful stage" --field "scriptBody = exit -99"description "for branch" --branch "2.5.0" --verbose
--action addEnvironmentTask addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --taskKey type "GROOVYAfter successful deployment" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = 0triggeringEnvironment "DEV"
--action addEnvironmentTask addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --taskKey type "GROOVYAfter successful stage" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = 1" --finalstage "FIRST" --disable
--action addEnvironmentTask addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --taskKey type "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = sleep 10 && echo xxx > out.txt"AfterSuccessfulPlan"
--action addEnvironmentTask addEnvironmentTrigger --deploymentProject "Deploy ZTEMPLATEZDEPLOY2812580-CHECKOUT1BASE" --environment "QA" --taskKey type "SCRIPTScheduled" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"
addEnvironmentTrigger
description "scheduled trigger" --schedule "1 0 0 ? * *"

addEnvironmentVariables

--action addEnvironmentTrigger addEnvironmentVariables --deploymentProject "Deploy ZDEPLOY4591390ZDEPLOY2812580-BASE" --environment "QA" --stage "FIRSTfields "Zv.a:value a,Zv.b:value b" --type "After successful stagefield "Zv.1=value 1 2812580" --description "for branchfield "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --branch "2.5.0field "ZPLANpassword=XXX" --verbosereplace

addGroup

--action addEnvironmentTrigger addGroup --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --type "After successful deployment" --triggeringEnvironment "DEV"group "group1"
--action addGroup --group "group1" --continue

addLabels

--action addEnvironmentTrigger addLabels --deploymentProject build "Deploy ZDEPLOY4591390XXX-BASEDEF" --environment labels "QAtestlabel1, testlabel2"
--type "After successful stage" action addLabels --stage build "FIRSTXXX-DEF" --number -disable1
--action addEnvironmentTrigger addLabels --deploymentProject build "Deploy ZDEPLOY4591390XXX-BASEDEF" --environment "QA" number -1 --type labels "AfterSuccessfulPlantestlabel1 testlabel2"
--action addEnvironmentTrigger addLabels --deploymentProject plan "Deploy ZDEPLOY4591390XXX-BASEDEF" --environment "QA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
addEnvironmentVariables
labels "testlabel1 testlabel2"

addRepository

--action run
--action run -i "-a getApp --app @default"
--action run -i "-a getServerInfo --outputFormat 2 --outputType text" -i "-a getReplacementVariableList --outputType text"
--action run < ./src/itest/bamboo/resources/run.txt
--action run --common "--plan ZCLI-TASKSduplicate" --input "-a deletePlan --continue" --input "-a createPlan --repository example --options addDefaultJob" --input "-a addTask --job @job@ --taskKey CHECKOUT --field selectedRepository_0=defaultRepository" --input "-a exportJob --job @job@" --input "-a deletePlan --continue"
--action run --common "--plan ZCLI-TASKSnocheckout" --input "-a deletePlan --continue" --input "-a createPlan --repository example" --input "-a addStage --stage FIRST" --input "-a addJob --stage @stage@ --job AAA --options noCheckoutTask" --input "-a exportPlan" --input "-a deletePlan --continue"
--action run --common "--plan ZCLI-VARIABLES" --input "-a addVariables --field c1=aa1 --field c2=aa2 --replace" --input "-a copyVariables --toPlan ZCLI2-VARIABLES --replace" --input "-a getVariableList"
--action run --common "--project ZCLI" --input "-a addVariables --field c1=aa1 --field c2=aa2 --replace" --input "-a copyVariables --toProject ZCLI2 --replace" --input "-a getVariableList"
--action run --continue
--action run --continue --input "-a createPlan --plan ZCLI-EXAMPLES --repository example --replace --options addDefaultJob --options clear" --input "-a addVariables --plan @plan@ --field exitCode=0 --replace" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 0\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 1\" --field conditionalTask=true --field selectedCondition=com.atlassian.bamboo.plugins.bamboo-conditional-tasks:variableCondition --field task.condition.variable.name=exitCode --field task.condition.variable.operation=not_equals --field task.condition.variable.value.not_equals=0" --input "-a getReplacementVariableList --outputType text" --input "-a queueBuild --plan @plan@ --wait" --input "-a exportPlan --plan @plan@"
--action run --continue --input "-a deletePlan --plan ZCLI-EXAMPLES" --input "-a createPlan --plan ZCLI-EXAMPLES --repository example --replace --options addDefaultJob --options clear" --input "-a addVariables --plan @plan@ --field exitCode=0 --replace" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 0\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 1\" --field conditionalTask=true --field selectedCondition=com.atlassian.bamboo.plugins.bamboo-conditional-tasks:variableCondition --field task.condition.variable.name=exitCode --field task.condition.variable.operation=not_equals --field task.condition.variable.value.not_equals=0" --input "-a getReplacementVariableList --outputType text" --input "-a queueBuild --plan @plan@ --wait" --input "-a exportPlan --plan @plan@"
--action run --continue --input "-a queueBuild --wait --plan XXX-DEF" --input "-a runIf --regex FAILED --value @buildState@ --input \"-a queueBuild --wait --plan @build@\""
--action run --file "-"
--action run --file "./src/itest/bamboo/resources/create-plan.txt" --findReplace "%PLAN%:ZCREATE4691270SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 4691270" --findReplace "%STAGE_DESCRIPTION%:First stage"
--action run --file "./src/itest/bamboo/resources/developer.txt" --findReplace "%PLAN%:ZDEVELOPER4694342SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script by developer" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 4694342" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:Z Added 1"
--action run --file "./src/itest/bamboo/resources/exportPlanCli.txt" --type "cli" --findReplace "999999:46964240099" --dateFormat "yyyy-MM-dd"
--action run --file "./src/itest/bamboo/resources/exportPlanNotifications.txt" --findReplace "%plan%:XXX-Notifications"
--action run --file "./src/itest/bamboo/resources/renderRequest.txt" --findReplace "@build@:XXX-DEF"
--action run --file "./src/itest/bamboo/resources/replace-plan1.txt" --findReplace "%PLAN%:ZREPLACE4573635SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script for replace" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 4573635" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:zreplace1"
--action run --file "./src/itest/bamboo/resources/replace-plan2.txt" --findReplace "%PLAN%:ZREPLACE4573635SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script for replace" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 4573635" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:zreplace1"
--action run --file "./src/itest/bamboo/resources/run.txt"
--action run --file "output/deploy/exportDeploymentProject.txt" --findReplace "--name \"Deploy ZDEPLOY4591390-BASE\":--name \"Import Deploy ZDEPLOY4591390-BASE\""
--action run --file "output/export/exportPlanCli.txt" --type "cli" --findReplace "4696424:469642400" --dateFormat "yyyy-MM-dd"
--action run --file "output/requirements/exportPlan.txt"
--action run --input "-a addVariables --field \"aaa=AAA\" --replace" --input "-a getVariableList --reference bamboo. -f \"\"" --input "-a getClientInfo --comment @bamboo.aaa@"
--action run --input "-a createPlan --plan ZBUILDARTIFACTS-AA --replace --options addDefaultJob" --input "-a addArtifact --plan @plan@ --job @job@ --artifact s1 --copyPattern s1.txt --shared --required" --input "-a addArtifact --plan @plan@ --job @job@ --artifact s2 --copyPattern s2.txt --shared --required" --input "-a addArtifact --plan @plan@ --job @job@ --artifact j1 --copyPattern j1.txt" --input "-a addArtifact --plan @plan@ --job @job@ --artifact j2 --copyPattern j2.txt" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=echo 'x' > s1.txt echo 'x' > s2.txt echo 'x' > j1.txt echo 'x' > j2.txt\" " --input "-a queueBuild --plan @plan@ --wait --reference firstBuild" --input "-a queueBuild --plan @plan@ --wait" --input "-a getArtifactList --build @build@ --columns producer,name,shared --outputType text" --input "-a getArtifactList --build @plan@-JOB1 --columns producer,name,shared --outputType text" --input "-a removeBuildArtifacts --build @build@ --job JOB1" --input "-a getArtifactList --build @build@ --columns producer,name,shared --outputType text" --input "-a getArtifactList --build @plan@-JOB1 --columns producer,name,shared --outputType text" --input "-a removeBuildArtifacts --build @build@" --input "-a getArtifactList --build @build@ --columns producer,name,shared --outputType text" --input "-a getArtifactList --build @plan@-JOB1 --columns producer,name,shared --outputType text" --input "-a removeBuildHistory --build @build@" --input "-a removeBuildHistory --build @build@ --continue" --input "-a removeBuildArtifacts --build @firstBuild@" --input "-a getArtifactList --build @firstBuild@ --columns producer,name,shared --outputType text" --input "-a getArtifactList --build @firstBuild@ --job JOB1 --columns producer,name,shared --outputType text"
--action run --input "-a createPlan --plan ZCLI-TASKS --replace" --input "-a addVariables --plan @plan@ --field exitCode --value 0" --input "-a addStage --plan @plan@ --stage FIRST" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB" --input " -a runFromList --list ,BBB,CCC,DDD,EEE --list2 ,--disable --common \"-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --description \"@entry@\" @entry2@ --field scriptLocation=INLINE --field scriptBody=xxx\" " --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --description FFF --field scriptLocation=INLINE --field scriptBody=xxx --final -v" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB2"
--action run --input "-a createPlan --plan ZCREATE4691270-RepositoryOrdering --repository example --options addDefaultJob,removeTrigger" --input "-a addRepository --plan @plan@ --name example2" --input "-a addRepository --plan @plan@ --name cli"
--action addEnvironmentVariables addRepository --deploymentProject name "Deploy ZDEPLOY4591390cli-BASEssh" --environment repositoryKey "QAMERCURIAL" --fields field "Zv.a:value a,Zv.b:value brepository.hg.repositoryUrl=ssh://hg@bitbucket.org/bob_swift/cli" --field "Zvrepository.hg.1=value 1 4591390authentication=SSH_PROXY" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace

addGroup

--action addGroup --group "group1"
--action addGroup --group "group1" --continue

addJob

--action addJob --plan "ZCREATE4691270-AA" --description "My job 1 description" --stage "My stage 1" --job "my job another"
--action addJob --plan "ZCREATE4691270-AA" --job "REMOVE" --stage "My stage 1"
--action addJob --plan "ZCREATE4691270-AA" --name "myjob 1" --stage "My stage 1" --job "myjob"
--action addJob --plan "ZCREATE4691270-BB" --job "JOB" --stage "Stage 1"
--action addJob --plan "ZCREATE4691270-CC" --job "JOBDocker" --stage "Default Stage" --type "Docker" --docker "myDocker"

addLabels

--action addLabels --build "XXX-DEF" --labels "testlabel1, testlabel2"
--action addLabels --build "XXX-DEF" --number -1
--action addLabels --build "XXX-DEF" --number -1 --labels "testlabel1 testlabel2"
--action addLabels --plan "XXX-DEF" --labels "testlabel1 testlabel2"

addNotification

--action addNotification --plan "ZCREATE4691270-NOTIFICATIONS" --event "Job Queued Without Capable Agents" --recipientType "CLI" --field "cliAction = -a getClientInfo"

addRepository

--action addRepository --name "cli-ssh" --repositoryKey "MERCURIAL" --field "repository.hg.repositoryUrl=ssh://hg@bitbucket.org/bob_swift/cli" --field "repository.hg.authentication=SSH_PROXY" --field "temporary.hg.ssh_proxy.privateKeyFromFile=@file" --field "temporary.hg.ssh_proxy.privateKey.change=true" --file "./src/itest/bamboo/resources/sshkey"
--action addRepository --name "cli-ssh2" --repositoryKey "MERCURIAL" --field1 "repository.hg.repositoryUrl" --value1 "ssh://hg@bitbucket.org/bob_swift/cli" --field2 "repository.hg.authentication" --value2 "KEYFILE" --field "temporary.hg.keyfile.privateKeyFromFile=@file" --field "temporary.hg.keyfile.privateKey.change=true" --file "./src/itest/bamboo/resources/sshkey"
--action addRepository --name "global (delete me)" --repositoryKey "GIT" --credentials "bitbucket-cloud-read-only" --continue
--action addRepository --name "global (delete me)" --repositoryKey "GIT" --credentials "bitbucket-cloud-read-only" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/groovy',repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"
--action addRepository --name "zrepositories git" --repositoryKey "GIT" --credentials "zrepositories credentials for git 1" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/log-service',repository.git.authenticationType:'PASSWORD'" --branch "develop"
--action addRepository --plan "ZBAMBOOCLI4627681-checkout1" --repositoryKey "GIT" --name "groovy" --credentials "bitbucket-cloud-read-only" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/groovy',repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"
--action addRepository --plan "ZCREATE4691270-AA" --name "example" --description "example"

addRequirement

--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "Ant"
--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "my-custom-requirement" --type "equal" --value "mine"
--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "system.builder.groovy.Gradle"

addStage

--action addStage --plan "ZCREATE4691270-AA" --name "My stage 2" --description "My stage description"
--action addStage --plan "ZCREATE4691270-AA" --stage "My stage 1" --description "My stage description"
--action addStage --plan "ZCREATE4691270-BB" --stage "Stage 1"

addTask

--action addTask --file "output/tasks/script.txt" --plan "ZCLI-TASKS" --job "JOB" --taskKey "SCRIPT" --description "fileReference" --field "scriptLocation=INLINE" --field "scriptBody=@file"
--action addTask --plan "ZBAMBOOCLI4627681-checkout1" --job "JOB1" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --description "initial description before update" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZBAMBOOCLI4627681-checkout1" --job "JOB1" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --description "task description" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "ARTIFACT_DOWNLOAD" --field "sourcePlanKey=ZCLI-TASKS"
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "MAVEN_POM_EXTRACTOR"
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "SSH" --file "./src/itest/bamboo/resources/sshkey" --field "host=build" --field "username_ssh_key=root" --field "authType=KEY" --field "private_key=@file" --field "command=bash script.sh" --field "sshAuthTypeSource=SSH"
--action addTask --plan "ZCREATE4691270-AA" --job "myjob" --taskKey "SCRIPT" --description "initial description before update" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field "scriptLocation=INLINE" --field "scriptBody = echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZCREATE4691270-AA" --job "myjobanother" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --description "initial description before update" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field "scriptLocation=INLINE" --field "scriptBody = echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZCREATE4691270-BB" --job "JOB" --description "Fail" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = exit 1" --disable
--action addTask --plan "ZCREATE4691270-BB" --job "JOB" --description "Long" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = sleep 30s exit 1" --disable
--action addTask --plan "ZCREATE4691270-BB" --job "JOB" --description "Success" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = exit 0"
--action addTask --plan "ZEXPORT4696424-Export" --job "JOB1" --taskKey "ARTIFACT_DOWNLOAD" --field "sourcePlanKey=ZEXPORT4696424-Export" --field "artifactId_1=out.txt"

addTrigger

--action addTrigger --plan "ZCREATE4691270-AA" --type "Polling"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Polling" --description "polling trigger interval" --repository "example" --schedule "3600"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Polling" --description "polling trigger scheduled" --repository "example" --schedule "2 0 0 ? * *"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Remote" --description "remote trigger restricted" --repository "example" --ipRestriction "172.16.9.25,172.16.9.26"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Remote" --description "remote trigger" --repository "example"
--action addTrigger --plan "ZCREATE4691270-AA" --type "RemoteBitbucketServer"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
--action addTrigger --plan "ZCREATE4691270-AA" --type "Scheduled" --schedule "9:35" --successfulPlans "XXX-DEF,YYY-DEF"

addUser

--action addUser --userId "user1" --userEmail "automation+user1@appfire.com" --group "bamboo-admin" --continue
--action addUser --userId "user1" --userEmail "automation+user1@appfire.com" --userFullName "User 1" --group "bamboo-admin"

addVariables

--action addVariables --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 4595666" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZGLOBALpassword=XXX" --replace
--action addVariables --plan "ZCLI-VARIABLES" --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 4595666" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace
--action addVariables --project "ZCLI" --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 4595666" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace

addWebhookTemplate

--action addWebhookTemplate --name "ZZ" --data "{\"xxx\":\"yyy\"}" --replace

cloneEnvironment

--action cloneEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --name "QACLONE" --description "clone of QA"

clonePlan

--action clonePlan --build "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlancheckout1.txt" --toPlan "ZBAMBOOCLI4627681-checkout1" --name "Clone of checkout1" --description "Created based on ZTEMPLATE-checkout1"
--action clonePlan --build "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlancheckout1Disable.txt" --toPlan "ZBAMBOOCLI4627681-checkout1Disable" --disable
--action clonePlan --build "ZTEMPLATE-notask" --file "output/bamboocli/clonePlannotask.txt" --toPlan "ZBAMBOOCLI4627681-notask" --name "Clone of notask" --description "Created based on ZTEMPLATE-notask"
--action clonePlan --build "ZTEMPLATE-notask" --file "output/bamboocli/clonePlannotaskDisable.txt" --toPlan "ZBAMBOOCLI4627681-notaskDisable" --disable
--action clonePlan --plan "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlanRemoveTesting.txt" --toPlan "ZBAMBOOCLI4627681-RemoveTesting" --name "Remove testing"

cloneProject

--action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI4627681CLONE"
--action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI4627681CLONEDisable" --disable

createDeploymentProject

--action createDeploymentProject --plan "ZDEPLOY4591390-BASE" --name "Deploy ZDEPLOY4591390-BASE" --description "Description for deploy"
--action createDeploymentProject --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --name "Deploy ZTEMPLATE-CHECKOUT1"

createPlan

--action createPlan --plan "ZCREATE4691270-AA" --projectName "ZCREATE4691270 created project"
--action createPlan --plan "ZCREATE4691270-BB" --name "Simple plan BB" --description "Simple plan BB description"
--action createPlan --plan "ZCREATE4691270-CC" --options "addDefaultJob"

createProject

--action createProject --project "ZPROJECTS4814775" --name "zprojects4814775" --description "Project description"

deleteDeploymentProject

--action deleteDeploymentProject --deploymentProject "1234567890" --continue

deletePlan

--action deletePlan --plan "XXX-NOTFOUND" --continue

deleteProject

--action deleteProject --project "NOTFOUND" --continue

deployEnvironment

--action deployEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --version "1.0.0" --replace
--action deployEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --version "1.0.0" --wait
--action deployEnvironment --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --environment "QA" --version "1.0.0"

disableAgent

--action disableAgent --agent "Z Added 2"

disableJob

--action disableJob --plan "ZCREATE4691270-AA" --job "@all" --stage "My stage 1"
--action disableJob --plan "ZCREATE4691270-AA" --job "myjob"

disablePlan

--action disablePlan --build "ZBAMBOOCLI4627681-checkout1"
--action disablePlan --build "ZBAMBOOCLI4627681-notask"

disableProject

--action disableProject --project "ZBAMBOOCLI4627681"

enableAgent

--action enableAgent --agent "Z Added 2"

enableJob

--action enableJob --plan "ZCREATE4691270-AA" --job "MYJOB"
--action enableJob --plan "ZCREATE4691270-AA" --job "myjob"

enablePlan

--action enablePlan --build "ZBAMBOOCLI4627681-checkout1"
--action enablePlan --build "ZBAMBOOCLI4627681-notask"

enableProject

--action enableProject --project "ZBAMBOOCLI4627681"

exportDeploymentProject

--action exportDeploymentProject --file "output/deploy/exportDeploymentProject.txt" --deploymentProject "Deploy ZDEPLOY4591390-BASE" --dateFormat "yyyy.MM.dd"
--action exportDeploymentProject --file "output/deploy/exportDeploymentProjectJava.txt" --deploymentProject "Deploy ZDEPLOY4591390-BASE" --type "java" --dateFormat "yyyy.MM.dd"

exportEnvironment

--action exportEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --dateFormat "yyyy-MM-dd"

exportJob

--action exportJob --plan "ZEXPORT4696424-Export" --job "JOB1" --dateFormat "yyyy-MM-dd"

exportPlan

--action exportPlan --file "output/export/exportPlanCli.txt" --plan "ZEXPORT4696424-Export" --dateFormat "yyyy-MM-dd"
--action exportPlan --file "output/export/exportPlanJava.txt" --plan "ZEXPORT4696424-Export" --type "java" --dateFormat "yyyy-MM-dd"
--action exportPlan --plan "ZBAMBOOCLI4627681-checkout1"
--action exportPlan --plan "ZCLI-REQUIREMENTS" --job "JOB1" --file "output/requirements/exportPlan.txt"
--action exportPlan --plan "ZEXPORT4696424-Export" --type "java"

getAgentAssignmentList

--action getAgentAssignmentList --agent "zdeploy" --regex ".*ZDEPLOY4591390.*"

getAgentList

--action getAgentList
--action getAgentList --excludeDisabled --outputFormat 2
--action getAgentList --outputFormat 2
--action getAgentList --outputFormat 999
--action getAgentList --regex "Z Added 3" --columns "id"

getApp

--action getApp --app "@default"

getApplicationLinkList

--action getApplicationLinkList
--action getApplicationLinkList --outputFormat 999
--action getApplicationLinkList --type "bitbucket"

getArtifact

--action getArtifact --file "output/bamboocli/getArtifact.txt" --build "XXX-DEF" --artifact "license" --job "JOB1"
--action getArtifact --file "output/bamboocli/getArtifactJobAll.txt" --build "XXX-DEF" --artifact "license" --job "@ALL"
--action getArtifact --file "output/bamboocli/getArtifactWithPath.txt" --build "XXX-DEF" --artifact "src/test/gradle/cli.gradle" --replace
--action getArtifact --file "output/bamboocli/src" --build "XXX-DEF" --artifact "src" --replace --options "mkdir"
--action getArtifact --job "JOB1" --file "output/bamboocli/getArtifactWithResultName.txt" --build "XXX-DEF-672" --artifact "license"

getArtifactDefinitionList

--action getArtifactDefinitionList --plan "ZCREATE4691270-AA"

getArtifactDependencyList

--action getArtifactDependencyList --plan "ZCREATE4691270SCRIPT-PLAN"
--action getArtifactDependencyList --plan "ZCREATE4691270SCRIPT-PLAN" --job "TEST1"

getArtifactList

--action getArtifactList --build "XXX-DEF"
--action getArtifactList --build "XXX-DEF" --job "@all" --regex "lic.*"
--action getArtifactList --build "XXX-DEF" --job "JOB1"

getBranch

--action getBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0"
--action getBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "Release 2.6.0"

getBranchList

--action getBranchList --plan "ZTEMPLATE-CHECKOUT1"
--action getBranchList --plan "ZTEMPLATE-CHECKOUT1" --regex ".*2.5.0"

getBranchingOptions

--action getBranchingOptions --plan "ZCLI-BRANCHING"
--action getBranchingOptions --plan "ZCLI-BRANCHING" --verbose
--action getBranchingOptions --plan "ZCLI-BRANCHING2"

getBuild

--action getBuild --build "XXX-DEF" --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getBuild --build "XXX-DEF-672"
--action getBuild --build "ZCREATE4691270-BB-3" --dateFormat "yyyy-MM-dd HH:mm:ss.SSS"

getBuildList

--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --issues "NOTFOUND-123"
--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --labels "not_found"
--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --labels "not_found,testlabel1"
--action getBuildList --plan "ZCLI-BUILDLIST" --outputFormat 999 --columns "plan,duration description,labels,issues"
--action getBuildList --plan "ZCREATE4691270-BB"
--action getBuildList --plan "ZCREATE4691270-BB" --dateFormat "yyyy-MM-dd HH:mm:ss.SSS" --outputFormat 999 --columns "build,number,state,started,completed"
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "STARTED" --value1 "2021-12-01T21:18:44.939-0600" --outputFormat 2 --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "notState" --value1 "UNKNOWN"
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "sTaTe" --value1 "successful"
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "started" --value1 "-24h" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "started" --value1 "2021-12-01T21:11:31.298-0600" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
--action getBuildList --plan "ZCREATE4691270-BB" --field1 "started" --value1 "today" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
--action getBuildList --plan "ZCREATE4691270-BB" --outputFormat 999
--action getBuildList --plan "ZCREATE4691270-BB" --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getBuildList --plan "ZCREATE4691270-EMPTY"
--action getBuildList --plan "ZLONGRUNNING-AA"

getBuildLog

--action getBuildLog --build "ZCREATE4691270-BB-JOB"
--action getBuildLog --build "ZCREATE4691270-BB-JOB" --findReplaceRegex ".*?\\t.*?\\t(.*):\$1"
--action getBuildLog --build "ZCREATE4691270-BB-JOB" --regex "command.*"
--action getBuildLog --plan "ZCREATE4691270-BB" --job "JOB" --limit 10

getBuildQueueList

--action getBuildQueueList
--action getBuildQueueList --plan "ZBUILDQUEUE-QUEUED"
--action getBuildQueueList --plan "ZBUILDQUEUE-QUEUED-JOB"
--action getBuildQueueList --project "ZBUILDQUEUE"
--action getBuildQueueList --regex "ZBUILDQUEUE.*"

getBuildReportList

--action getBuildReportList --list "ZCLI-BUILDLIST,XXX-DEF" --outputType "text" --columns "-1,2,3" --field "notState=UNKNOWN"
--action getBuildReportList --project "ZCLI"
--action getBuildReportList --project "ZCLI" --list "BUILDLIST" --outputType "text"

getCapabilityList

--action getCapabilityList
--action getCapabilityList --agent "@all"
--action getCapabilityList --agent "zcapabilities"
--action getCapabilityList --options "includeUnreferenced" --regex ".*Maven.*"

getClientInfo

--action getClientInfo

getCommentList

--action getCommentList --build "XXX-DEF" --number "672" --dateFormat "yyyy-MM-dd HH:mm:ss"

getCredentialsList

--action getCredentialsList --regex "zrepositories credentials for git .*"

getDeploymentProject

--action getDeploymentProject --deploymentProject "Deploy ZDEPLOY4591390-BASE"

getDeploymentProjectList

--action getDeploymentProjectList

getEnvironment

--action getEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"

getEnvironmentList

--action getEnvironmentList --deploymentProject "Deploy ZDEPLOY4591390-BASE"

getEnvironmentNotificationList

--action getEnvironmentNotificationList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"

getEnvironmentRequirementList

--action getEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"
--action getEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --id "149749873"

getEnvironmentTaskList

--action getEnvironmentTaskList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"

getEnvironmentTrigger

--action getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --name "After successful deployment"
--action getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --name "Scheduled"

getEnvironmentTriggerList

--action getEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"

getEnvironmentVariableList

--action getEnvironmentVariableList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA"

getJob

--action getJob --plan "ZCREATE4691270-CC" --job "JOB1"
--action getJob --plan "ZCREATE4691270-CC" --job "JOBDocker"

getJobList

--action getJobList --plan "ZCREATE4691270-AA" --job "@all" --stage "My stage 1" --columns "enabled,type"
--action getJobList --plan "ZCREATE4691270-CC"
--action getJobList --plan "ZCREATE4691270SCRIPT-PLAN"
--action getJobList --plan "ZCREATE4691270SCRIPT-PLAN" --regex "TEST2.*"
--action getJobList --plan "ZCREATE4691270SCRIPT-PLAN" --regex "TEST2.*" --columns "stage,job" --outputType "table"

getLabelList

--action getLabelList --build "XXX-DEF" --number -1
--action getLabelList --plan "XXX-DEF"

getLatestBuildNumber

--action getLatestBuildNumber --build "XXX-DEF"
--action getLatestBuildNumber --plan "ZLONGRUNNING-AA"

getNotificationList

--action getNotificationList --plan "ZCREATE4691270-NOTIFICATIONS"
--action getNotificationList --plan "ZCREATE4691270-NOTIFICATIONS" --regex "Job.*" --regex2 ".*org.swift.bamboo.acli.*"

getPlan

--action getPlan --plan "ZBAMBOOCLI4627681-checkout1" --verbose
--action getPlan --plan "ZBAMBOOCLI4627681-checkout1Disable"
--action getPlan --plan "ZBAMBOOCLI4627681CLONE-checkout1"
--action getPlan --project "ZBAMBOOCLI4627681CLONE" --plan "ZBAMBOOCLI4627681CLONE-CHECKOUT1"

getPlanList

--action getPlanList --project "@all" --excludeDisabled --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getPlanList --project "@all" --favorite
--action getPlanList --project "@all" --file "output/create/getPlanList.txt"
--action getPlanList --project "XXX" --excludeDisabled
--action getPlanList --project "XXX" --excludeEnabled
--action getPlanList --project "XXX" --options "usingRepository=zrepositories git"
--action getPlanList --project "ZCREATE4691270SCRIPT"
--action getPlanList --project "ZCREATE4691270SCRIPT" --field1 "notstate" --value1 "successful"
--action getPlanList --project "ZCREATE4691270SCRIPT" --field1 "state" --value1 "failed"
--action getPlanList --project "ZMOVE4604981"
--action getPlanList --project "ZMOVE4604981XX"
--action getPlanList --project "ZTEMPLATE" --regex "ZTEMPLATE-CHECKOUT1.*" --options "includeBranchPlans"

getProject

--action getProject --project "ZPROJECTS4814775"

getProjectList

--action getProjectList
--action getProjectList --project "ZPROJECTS4814775"

getRepository

--action getRepository --plan "ZCREATE4691270-AA" --name "example"
--action getRepository --plan "ZTEMPLATE-checkout1" --repository "cli" --outputFormat 999
--action getRepository --repository "zrepositories git"

getRepositoryList

--action getRepositoryList
--action getRepositoryList --plan "XXX-RemoveAndReplace"
--action getRepositoryList --plan "ZBAMBOOCLI4627681-checkout1"
--action getRepositoryList --plan "ZCREATE4691270-RepositoryOrdering"

getRequirementList

--action getRequirementList --plan "ZCLI-REQUIREMENTS" --job "JOB1"

getServerInfo

--action getServerInfo
--action getServerInfo --outputFormat 2 --dateFormat "yyyy-MM-dd HH:mm"
--action getServerInfo --outputFormat 3
--action getServerInfo --outputFormat 999
--action getServerInfo --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getServerInfo --user "anonymous"

getStage

--action getStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "B updated"
--action getStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "B"

getStageList

--action getStageList --plan "ZCREATE4691270SCRIPT-PLAN"
--action getStageList --plan "ZCREATE4691270SCRIPT-PLAN" --regex "A.*"
--action getStageList --project "ZCREATE4691270SCRIPT" --plan "ZCREATE4691270SCRIPT-PLAN"

getTask

--action getTask --plan "ZCLI-TASKS" --job "JOB" --task "@all"
--action getTask --plan "ZCLI-TASKS" --job "JOB" --task "fileReference"
--action getTask --plan "ZCLI-TASKS" --job "JOB" --task 1

getTaskList

--action getTaskList --plan "ZCLI-TASKS" --job "JOB"
--action getTaskList --plan "ZCREATE4691270-BB" --job "JOB"

getTaskTypeList

--action getTaskTypeList

getTrigger

--action getTrigger --plan "ZCREATE4691270-AA" --name "Scheduled"

getTriggerList

--action getTriggerList --plan "ZCREATE4691270-AA"
--action getTriggerList --plan "ZCREATE4691270-AA" --regex ".*scheduled.*"

getUserList

--action getUserList
--action getUserList --group "bamboo-admin"
--action getUserList --regex "a.*" --limit 1

getVariableList

--action getVariableList
--action getVariableList --plan "ZCLI-VARIABLES"
--action getVariableList --project "ZCLI"

installApp

--action installApp --app "@default" --simulate
--action installApp --app "com.atlassian.labs.rest-api-browser "

moveEnvironment

--action moveEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "DEV" --after "QA"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QACLONE"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QACLONE" --after "@last"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QACLONE" --after "DEV"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QACLONE" --before "DEV"

moveJob

--action moveJob --plan "ZCREATE4691270SCRIPT-PLAN" --job "TEST2" --stage "B updated"
--action moveJob --plan "ZCREATE4691270SCRIPT-PLAN" --job "TEST2" --stage "C" --autoStage

movePlans

--action movePlans --plan "ZMOVE4604981-Base1" --toProject "ZMOVE4604981XX"
--action movePlans --project "ZMOVE4604981" --regex ".*[23]" --toProject "ZMOVE4604981XX"

moveStage

--action moveStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "A" --after "B updated"
--action moveStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "FIRST"

moveTask

--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task "1" --final
--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task "Script"
--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task 3 --final --after 5

orderRepository

--action orderRepository --plan "ZCREATE4691270-RepositoryOrdering" --repository "example2"
--action orderRepository --plan "ZCREATE4691270-RepositoryOrdering" --repository "example2" --after "cli"

pauseServer

--action pauseServer

queueBuild

--action queueBuild --build "XXX-DEF" --wait
--action queueBuild --build "XXX-FAIL" --wait --continue
--action queueBuild --build "ZBAMBOOCLI4627681-checkout1" --wait --continue
--action queueBuild --build "ZBAMBOOCLI4627681-checkout1" --wait --timeout 90 --field "exitCode=0" --verbose
--action queueBuild --build "ZBAMBOOCLI4627681-checkout1" --wait --timeout 90 --fields "exitCode: 0" --verbose
--action queueBuild --build "ZBAMBOOCLI4627681-notask" --wait --continue
--action queueBuild --plan "ZCREATE4691270-BB" --continue
--action queueBuild --plan "ZCREATE4691270-BB" --field1 "started" --value1 "2021-12-01T21:11:31.298-0600" --field2 "state" --value2 "SUCCESSFUL"
--action queueBuild --plan "ZCREATE4691270-BB" --field1 "started" --value1 "XXX-DEF"
--action queueBuild --plan "ZCREATE4691270-BB" --field1 "started" --value1 "ZCREATE4691270-BB-1"
--action queueBuild --plan "ZCREATE4691270-BB" --wait --continue
--action queueBuild --plan "ZCREATE4691270-EMPTY" --wait --continue
--action queueBuild --plan "ZDEPLOY4591390-BASE" --wait
--action queueBuild --plan "ZLONGRUNNING-AA"
--action queueBuild --plan "ZLONGRUNNING-AA" --wait --stage "@all"
--action queueBuild --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --wait

queueBuildFromList

--action queueBuildFromList --list "ZCREATE4691270-BB" --field1 "started" --value1 "2021-12-01T21:11:31.298-0600"
--action queueBuildFromList --project "@all" --labels "NOT_FOUND" --simulate
--action queueBuildFromList --project "@all" --labels "testlabel1" --simulate

removeAgent

--action removeAgent --agent "Z Added 2"
--action removeAgent --agent "Z Added 2" --continue
--action removeAgent --id "149848082"
--action removeAgent --id "149848082" --continue

removeAgentAssignment

--action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270"
--action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270-AA"
--action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270-AA" --continue
--action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270-AA-myJob"
--action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE4691270-AA-myJob" --continue

removeArtifact

--action removeArtifact --plan "ZCREATE4691270-AA" --job "MYJOB" --artifact "remove me"

removeBuildHistory

--action removeBuildHistory --build "ZCREATE4691270-BB" --number 1

removeEnvironmentNotification

--action removeEnvironmentNotification --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --event "Deployment started and finished" --recipientType "CLI"

removeEnvironmentRequirement

--action removeEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --id "149749873"

removeEnvironmentTask

--action removeEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --task "Artifact download"

removeEnvironmentVariables

--action removeEnvironmentVariables --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --field1 "@all"

removeJob

--action removeJob --plan "ZCREATE4691270-AA" --job "REMOVE"

removeLabels

--action removeLabels --build "XXX-DEF" --labels "test.*"
--action removeLabels --build "XXX-DEF" --number -1 --labels ".*"
--action removeLabels --build "XXX-DEF" --number -1 --labels "testlabel1, testlabel2, notfound" --continue
--action removeLabels --plan "XXX-DEF" --labels ".*"

removeNotification

--action removeNotification --plan "ZCREATE4691270-NOTIFICATIONS" --event "Job Queued Without Capable Agents" --recipientType "CLI"

removeRepository

--action removeRepository --id "149487751"
--action removeRepository --plan "XXX-RemoveAndReplace" --repository "zrepositories git" --options "replaceRepository=cli"
--action removeRepository --plan "ZBAMBOOCLI4627681-checkout1" --id "149487746"
--action removeRepository --plan "ZCREATE4691270SCRIPT-PLAN" --name "NOT_FOUND" --continue

removeTask

--action removeTask --plan "ZBAMBOOCLI4627681-RemoveTesting" --job "JOB1" --task "@all"
--action removeTask --plan "ZBAMBOOCLI4627681-checkout1" --job "JOB1" --id "2"

removeTrigger

--action removeTrigger --plan "ZCREATE4691270-AA" --id "-1"
--action removeTrigger --plan "ZCREATE4691270-AA" --id "2"
--action removeTrigger --plan "ZCREATE4691270-AA" --id "2" --continue
--action removeTrigger --plan "ZCREATE4691270-AA" --name "@all"
--action removeTrigger --plan "ZCREATE4691270-AA" --name "Repository polling"

removeUser

--action removeUser --userId "NOT_FOUND"

removeVariables

--action removeVariables --plan "ZCLI-VARIABLES" --field "@all"
--action removeVariables --project "ZCLI" --field "@all"

renderRequest

--action renderRequest --build "XXX-DEF" --file "output/render/renderRequestBuildNumber.txt" --number "670"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestConfig.txt" --url "/config"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestJob.txt"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestJobBuildNumber.txt" --number "670"
--action renderRequest --build "XXX-DEF-latest" --file "output/render/renderRequestBuild.txt"
--action renderRequest --build "XXX-DEF-latest" --file "output/render/renderRequestBuildLatest.txt"
--action renderRequest --file "output/create/verifyTriggers.txt" --url "chain/admin/config/editChainTriggers.action" --requestParameters "buildKey=ZCREATE4691270-AA"
--action renderRequest --file "output/render/renderRequestConfig2.txt" --url "/browse/XXX-DEF-JOB1/config"
--action renderRequest --file "output/system/verifyExpiryOptionsAll.txt" --url "admin/buildExpiry.action"
--action renderRequest --file "output/system/verifyExpiryOptionsDefault.txt" --url "admin/buildExpiry.action"
--action renderRequest --file "output/system/verifyExpiryOptionsResults.txt" --url "admin/buildExpiry.action"
--action renderRequest --plan "XXX-DEF" --file "output/render/renderRequestPlan.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "output/render/renderRequestPlanJob.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "output/render/renderRequestPlanJobNumber.txt" --number "670"
--action renderRequest --plan "ZBAMBOOCLI4627681-checkout1" --job "JOB1" --file "output/bamboocli/renderRequestBuildResultcheckout1.txt" --url "-2/log"
--action renderRequest --verbose --quiet --url "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEF" --findReplaceRegex ".*(repositoryId=\\d+).*:\$1"

restartBuild

--action restartBuild --plan "ZLONGRUNNING-AA" --stage "@ALL" --wait
--action restartBuild --plan "ZLONGRUNNING-AA" --stage "THIRD" --wait
--action restartBuild --plan "ZLONGRUNNING-AA" --wait

resumeServer

--action resumeServer

run

--action run --input "-a createPlan --plan ZEXPORT4696424-Export --description \"Export plan\" --replace --options addDefaultJob" --input "-a addRepository --plan @plan@ --repository cli" --input "-a addBranch --plan @plan@ --branch 2.5.0" --input "-a addVariables --plan @plan@ --field v1=xxx" --input "-a addTrigger --plan @plan@ --type scheduled --schedule 9:35" --input "-a addTrigger --plan @plan@ --type polling" --input "-a addTrigger --plan @plan@ --type remote" --input "-a addNotification --plan @plan@ --event \"All Builds Completed\" --recipientType user --field notificationUserString=automation" --input "-a addNotification --plan @plan@ --event \"All Builds Completed\" --recipientType webhook --recipient \"build webhook\" --url https://example.gear.com" --input "-a addArtifact --plan @plan@ --job @job@ --artifact out.txt --copyPattern out.txt --shared" --input "-a addArtifact --plan @plan@ --job @job@ --artifact out2.txt --copyPattern out2.txt --required" --input "-a addTask --plan @plan@ --job @job@ --taskKey CHECKOUT" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptLocation = INLINE\" --field \"scriptBody = echo xxx > out.txt \\n echo yyy > out2.txt\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey CLI_BAMBOO --field scriptLocation=INLINE --field \"scriptBody=--help\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey ARTIFACT_DOWNLOAD --field sourcePlanKey=@plan@ --field artifactId_1=out.txt" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --final --field scriptLocation=INLINE --field scriptBody=0" --input "-a addJob --plan @plan@ --stage \"@stage@\" --job SCRIPT --options noCheckoutTask" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody = \\n #!/bin/bash \\n echo this is a test \\n echo \"\"another test\"\" \\n echo 'yet another test' \\n \"" --input "-a addStage --plan @plan@ --stage LAST" --input "-a addJob --plan @plan@ --stage \"@stage@\" --job JOB2temporary.hg.ssh_proxy.privateKeyFromFile=@file" --field "temporary.hg.ssh_proxy.privateKey.change=true" --file "./src/itest/bamboo/resources/sshkey"
--action addRepository --name "cli-ssh2" --repositoryKey "MERCURIAL" --field1 "repository.hg.repositoryUrl" --value1 "ssh://hg@bitbucket.org/bob_swift/cli" --field2 "repository.hg.authentication" --value2 "KEYFILE" --field "temporary.hg.keyfile.privateKeyFromFile=@file" --field "temporary.hg.keyfile.privateKey.change=true" --file "./src/itest/bamboo/resources/sshkey"
--action addRepository --name "global (delete me)" --repositoryKey "GIT" --credentials "bitbucket-cloud-read-only" --continue
--action addRepository --name "global (delete me)" --repositoryKey "GIT" --credentials "bitbucket-cloud-read-only" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/groovy',repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"
--action addRepository --name "zrepositories git" --repositoryKey "GIT" --credentials "zrepositories credentials for git 1" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/log-service',repository.git.authenticationType:'PASSWORD'" --branch "develop"
--action addRepository --plan "ZBAMBOOCLI2811464-checkout1" --repositoryKey "GIT" --name "groovy" --credentials "bitbucket-cloud-read-only" --fields "repository.git.repositoryUrl:'https://bitbucket.org/bobswift/groovy',repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"

addRequirement

--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "Ant"
--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "my-custom-requirement" --type "equal" --value "mine"
--action addRequirement --plan "ZCLI-REQUIREMENTS" --job "JOB1" --requirement "system.builder.groovy.Gradle"

addTask

--action addTask --file "output/tasks/script.txt" --plan "ZCLI-TASKS" --job "JOB" --taskKey "SCRIPT" --description "fileReference" --field "scriptLocation=INLINE" --field "scriptBody=@file"
--action addTask --plan "ZBAMBOOCLI2811464-checkout1" --job "JOB1" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --description "initial description before update" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZBAMBOOCLI2811464-checkout1" --job "JOB1" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --description "task description" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "ARTIFACT_DOWNLOAD" --field "sourcePlanKey=ZCLI-TASKS"
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "MAVEN_POM_EXTRACTOR"
--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "SSH" --file "./src/itest/bamboo/resources/sshkey" --field "host=build" --field "username_ssh_key=root" --field "authType=KEY" --field "private_key=@file" --field "command=bash script.sh" --field "sshAuthTypeSource=SSH"
--action addTask --plan "ZEXPORT2813417-Export" --job "JOB1" --taskKey "ARTIFACT_DOWNLOAD" --field "sourcePlanKey=ZEXPORT2813417-Export" --field "artifactId_1=out.txt"

addUser

--action addUser --userId "user1" --userEmail "automation+user1@appfire.com" --group "bamboo-admin" --continue
--action addUser --userId "user1" --userEmail "automation+user1@appfire.com" --userFullName "User 1" --group "bamboo-admin"

addVariables

--action addVariables --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 2811024" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZGLOBALpassword=XXX" --replace
--action addVariables --plan "ZCLI-VARIABLES" --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 2811024" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace
--action addVariables --project "ZCLI" --field "Zv.a=value a" --field "Zv.b=value b" --field "Zv.1=value 1 2811024" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace

addWebhookTemplate

--action addWebhookTemplate --name "ZZ" --data "{\"xxx\":\"yyy\"}" --replace

cloneEnvironment

--action cloneEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --name "QACLONE" --description "clone of QA"

clonePlan

--action clonePlan --build "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlancheckout1.txt" --toPlan "ZBAMBOOCLI2811464-checkout1" --name "Clone of checkout1" --description "Created based on ZTEMPLATE-checkout1"
--action clonePlan --build "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlancheckout1Disable.txt" --toPlan "ZBAMBOOCLI2811464-checkout1Disable" --disable
--action clonePlan --build "ZTEMPLATE-notask" --file "output/bamboocli/clonePlannotask.txt" --toPlan "ZBAMBOOCLI2811464-notask" --name "Clone of notask" --description "Created based on ZTEMPLATE-notask"
--action clonePlan --build "ZTEMPLATE-notask" --file "output/bamboocli/clonePlannotaskDisable.txt" --toPlan "ZBAMBOOCLI2811464-notaskDisable" --disable
--action clonePlan --plan "ZTEMPLATE-checkout1" --file "output/bamboocli/clonePlanRemoveTesting.txt" --toPlan "ZBAMBOOCLI2811464-RemoveTesting" --name "Remove testing"

cloneProject

--action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI2811464CLONE"
--action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI2811464CLONEDisable" --disable

createDeploymentProject

--action createDeploymentProject --plan "ZDEPLOY2812580-BASE" --name "Deploy ZDEPLOY2812580-BASE" --description "Description for deploy"
--action createDeploymentProject --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --name "Deploy ZTEMPLATE-CHECKOUT1"

createProject

--action createProject --project "ZPROJECTS2960235" --name "zprojects2960235" --description "Project description"

deleteDeploymentProject

--action deleteDeploymentProject --deploymentProject "1234567890" --continue

deletePlan

--action deletePlan --plan "XXX-NOTFOUND" --continue

deleteProject

--action deleteProject --project "NOTFOUND" --continue

deployEnvironment

--action deployEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --version "1.0.0" --replace
--action deployEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --version "1.0.0" --wait
--action deployEnvironment --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --environment "QA" --version "1.0.0"

disablePlan

--action disablePlan --build "ZBAMBOOCLI2811464-checkout1"
--action disablePlan --build "ZBAMBOOCLI2811464-notask"

disableProject

--action disableProject --project "ZBAMBOOCLI2811464"

enablePlan

--action enablePlan --build "ZBAMBOOCLI2811464-checkout1"
--action enablePlan --build "ZBAMBOOCLI2811464-notask"

enableProject

--action enableProject --project "ZBAMBOOCLI2811464"

exportDeploymentProject

--action exportDeploymentProject --file "output/deploy/exportDeploymentProject.txt" --deploymentProject "Deploy ZDEPLOY2812580-BASE" --dateFormat "yyyy.MM.dd"
--action exportDeploymentProject --file "output/deploy/exportDeploymentProjectJava.txt" --deploymentProject "Deploy ZDEPLOY2812580-BASE" --type "java" --dateFormat "yyyy.MM.dd"

exportEnvironment

--action exportEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --dateFormat "yyyy-MM-dd"

exportJob

--action exportJob --plan "ZEXPORT2813417-Export" --job "JOB1" --dateFormat "yyyy-MM-dd"

exportPlan

--action exportPlan --file "output/export/exportPlanCli.txt" --plan "ZEXPORT2813417-Export" --dateFormat "yyyy-MM-dd"
--action exportPlan --file "output/export/exportPlanJava.txt" --plan "ZEXPORT2813417-Export" --type "java" --dateFormat "yyyy-MM-dd"
--action exportPlan --plan "ZBAMBOOCLI2811464-checkout1"
--action exportPlan --plan "ZCLI-REQUIREMENTS" --job "JOB1" --file "output/requirements/exportPlan.txt"
--action exportPlan --plan "ZEXPORT2813417-Export" --type "java"

getAgentAssignmentList

--action getAgentAssignmentList --agent "zdeploy" --regex ".*ZDEPLOY2812580.*"

getArtifact

--action getArtifact --file "output/bamboocli/getArtifact.txt" --build "XXX-DEF" --artifact "license" --job "JOB1"
--action getArtifact --file "output/bamboocli/getArtifactJobAll.txt" --build "XXX-DEF" --artifact "license" --job "@ALL"
--action getArtifact --file "output/bamboocli/getArtifactWithPath.txt" --build "XXX-DEF" --artifact "src/test/gradle/cli.gradle" --replace
--action getArtifact --file "output/bamboocli/src" --build "XXX-DEF" --artifact "src" --replace --options "mkdir"
--action getArtifact --job "JOB1" --file "output/bamboocli/getArtifactWithResultName.txt" --build "XXX-DEF-678" --artifact "license"

getArtifactList

--action getArtifactList --build "XXX-DEF"
--action getArtifactList --build "XXX-DEF" --job "@all" --regex "lic.*"
--action getArtifactList --build "XXX-DEF" --job "JOB1"

getBranch

--action getBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0"
--action getBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "Release 2.6.0"

getBranchList

--action getBranchList --plan "ZTEMPLATE-CHECKOUT1"
--action getBranchList --plan "ZTEMPLATE-CHECKOUT1" --regex ".*2.5.0"

getBranchingOptions

--action getBranchingOptions --plan "ZCLI-BRANCHING"
--action getBranchingOptions --plan "ZCLI-BRANCHING" --verbose
--action getBranchingOptions --plan "ZCLI-BRANCHING2"

getBuild

--action getBuild --build "XXX-DEF" --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getBuild --build "XXX-DEF-678"

getBuildList

--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --issues "NOTFOUND-123"
--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --labels "not_found"
--action getBuildList --plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --labels "not_found,testlabel1"
--action getBuildList --plan "ZCLI-BUILDLIST" --outputFormat 999 --columns "plan,duration description,labels,issues"

getBuildQueueList

--action getBuildQueueList
--action getBuildQueueList --plan "ZBUILDQUEUE-QUEUED"
--action getBuildQueueList --plan "ZBUILDQUEUE-QUEUED-JOB"
--action getBuildQueueList --project "ZBUILDQUEUE"
--action getBuildQueueList --regex "ZBUILDQUEUE.*"

getBuildReportList

--action getBuildReportList --list "ZCLI-BUILDLIST,XXX-DEF" --outputType "text" --columns "-1,2,3" --field "notState=UNKNOWN"
--action getBuildReportList --project "ZCLI"
--action getBuildReportList --project "ZCLI" --list "BUILDLIST" --outputType "text"

getCapabilityList

--action getCapabilityList
--action getCapabilityList --agent "@all"
--action getCapabilityList --agent "zcapabilities"
--action getCapabilityList --options "includeUnreferenced" --regex ".*Maven.*"

getClientInfo

--action getClientInfo

getCommentList

--action getCommentList --build "XXX-DEF" --number "678" --dateFormat "yyyy-MM-dd HH:mm:ss"

getCredentialsList

--action getCredentialsList --regex "zrepositories credentials for git .*"

getDeploymentProject

--action getDeploymentProject --deploymentProject "Deploy ZDEPLOY2812580-BASE"

getDeploymentProjectList

--action getDeploymentProjectList

getEnvironment

--action getEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getEnvironmentList

--action getEnvironmentList --deploymentProject "Deploy ZDEPLOY2812580-BASE"

getEnvironmentNotificationList

--action getEnvironmentNotificationList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getEnvironmentRequirementList

--action getEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"
--action getEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --id "149749975"

getEnvironmentTaskList

--action getEnvironmentTaskList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getEnvironmentTrigger

--action getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --name "After successful deployment"
--action getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --name "Scheduled"

getEnvironmentTriggerList

--action getEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getEnvironmentVariableList

--action getEnvironmentVariableList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getLabelList

--action getLabelList --build "XXX-DEF" --number -1
--action getLabelList --plan "XXX-DEF"

getLatestBuildNumber

--action getLatestBuildNumber --build "XXX-DEF"

getPlan

--action getPlan --plan "ZBAMBOOCLI2811464-checkout1" --verbose
--action getPlan --plan "ZBAMBOOCLI2811464-checkout1Disable"
--action getPlan --plan "ZBAMBOOCLI2811464CLONE-checkout1"
--action getPlan --project "ZBAMBOOCLI2811464CLONE" --plan "ZBAMBOOCLI2811464CLONE-CHECKOUT1"

getPlanList

--action getPlanList --project "XXX" --options "usingRepository=zrepositories git"
--action getPlanList --project "ZMOVE2805697"
--action getPlanList --project "ZMOVE2805697XX"
--action getPlanList --project "ZTEMPLATE" --regex "ZTEMPLATE-CHECKOUT1.*" --options "includeBranchPlans"

getProject

--action getProject --project "ZPROJECTS2960235"

getProjectList

--action getProjectList
--action getProjectList --project "ZPROJECTS2960235"

getRepository

--action getRepository --plan "ZTEMPLATE-checkout1" --repository "cli" --outputFormat 999
--action getRepository --repository "zrepositories git"

getRepositoryList

--action getRepositoryList
--action getRepositoryList --plan "XXX-RemoveAndReplace"
--action getRepositoryList --plan "ZBAMBOOCLI2811464-checkout1"

getRequirementList

--action getRequirementList --plan "ZCLI-REQUIREMENTS" --job "JOB1"

getServerInfo

--action getServerInfo
--action getServerInfo --outputFormat 2 --dateFormat "yyyy-MM-dd HH:mm"
--action getServerInfo --outputFormat 999
--action getServerInfo --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getServerInfo --user "anonymous"

getTask

--action getTask --plan "ZCLI-TASKS" --job "JOB" --task "@all"
--action getTask --plan "ZCLI-TASKS" --job "JOB" --task "fileReference"
--action getTask --plan "ZCLI-TASKS" --job "JOB" --task 1

getTaskList

--action getTaskList --plan "ZCLI-TASKS" --job "JOB"

getTaskTypeList

--action getTaskTypeList

getUserList

--action getUserList
--action getUserList --group "bamboo-admin"
--action getUserList --regex "a.*" --limit 1

getVariableList

--action getVariableList
--action getVariableList --plan "ZCLI-VARIABLES"
--action getVariableList --project "ZCLI"

moveEnvironment

--action moveEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "DEV" --after "QA"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QACLONE"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QACLONE" --after "@last"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QACLONE" --after "DEV"
--action moveEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QACLONE" --before "DEV"

movePlans

--action movePlans --plan "ZMOVE2805697-Base1" --toProject "ZMOVE2805697XX"
--action movePlans --project "ZMOVE2805697" --regex ".*[23]" --toProject "ZMOVE2805697XX"

moveTask

--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task "1" --final
--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task "Script"
--action moveTask --plan "ZCLI-TASKS" --job "JOB" --task 3 --final --after 5

queueBuild

--action queueBuild --build "XXX-DEF" --wait
--action queueBuild --build "XXX-FAIL" --wait --continue
--action queueBuild --build "ZBAMBOOCLI2811464-checkout1" --wait --continue
--action queueBuild --build "ZBAMBOOCLI2811464-checkout1" --wait --timeout 90 --field "exitCode=0" --verbose
--action queueBuild --build "ZBAMBOOCLI2811464-checkout1" --wait --timeout 90 --fields "exitCode: 0" --verbose
--action queueBuild --build "ZBAMBOOCLI2811464-notask" --wait --continue
--action queueBuild --plan "ZDEPLOY2812580-BASE" --wait
--action queueBuild --plan "ZLONGRUNNING-AA"
--action queueBuild --plan "ZLONGRUNNING-AA" --wait --stage "@all"
--action queueBuild --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --wait

queueBuildFromList

--action queueBuildFromList --project "@all" --labels "testlabel1" --simulate

removeEnvironmentNotification

--action removeEnvironmentNotification --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --event "Deployment started and finished" --recipientType "CLI"

removeEnvironmentRequirement

--action removeEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --id "149749975"

removeEnvironmentTask

--action removeEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --task "Artifact download"

removeEnvironmentVariables

--action removeEnvironmentVariables --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --field1 "@all"

removeLabels

--action removeLabels --build "XXX-DEF" --labels "test.*"
--action removeLabels --build "XXX-DEF" --number -1 --labels ".*"
--action removeLabels --build "XXX-DEF" --number -1 --labels "testlabel1, testlabel2, notfound" --continue
--action removeLabels --plan "XXX-DEF" --labels ".*"

removeRepository

--action removeRepository --id "149487862"
--action removeRepository --plan "XXX-RemoveAndReplace" --repository "zrepositories git" --options "replaceRepository=cli"
--action removeRepository --plan "ZBAMBOOCLI2811464-checkout1" --id "149487858"

removeTask

--action removeTask --plan "ZBAMBOOCLI2811464-RemoveTesting" --job "JOB1" --task "@all"
--action removeTask --plan "ZBAMBOOCLI2811464-checkout1" --job "JOB1" --id "2"

removeUser

--action removeUser --userId "NOT_FOUND"

removeVariables

--action removeVariables --plan "ZCLI-VARIABLES" --field "@all"
--action removeVariables --project "ZCLI" --field "@all"

renderRequest

--action renderRequest --build "XXX-DEF" --file "output/render/renderRequestBuildNumber.txt" --number "676"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestConfig.txt" --url "/config"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestJob.txt"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestJobBuildNumber.txt" --number "676"
--action renderRequest --build "XXX-DEF-latest" --file "output/render/renderRequestBuild.txt"
--action renderRequest --build "XXX-DEF-latest" --file "output/render/renderRequestBuildLatest.txt"
--action renderRequest --file "output/render/renderRequestConfig2.txt" --url "/browse/XXX-DEF-JOB1/config"
--action renderRequest --plan "XXX-DEF" --file "output/render/renderRequestPlan.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "output/render/renderRequestPlanJob.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "output/render/renderRequestPlanJobNumber.txt" --number "676"
--action renderRequest --plan "ZBAMBOOCLI2811464-checkout1" --job "JOB1" --file "output/bamboocli/renderRequestBuildResultcheckout1.txt" --url "-2/log"
--action renderRequest --verbose --quiet --url "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEF" --findReplaceRegex ".*(repositoryId=\\d+).*:\$1"

run

--action run
--action run -i "-a getServerInfo --outputFormat 2 --outputType text" -i "-a getReplacementVariableList --outputType text"
--action run < ./src/itest/bamboo/resources/run.txt
--action run --common "--plan ZCLI-TASKSduplicate" --input "-a deletePlan --continue" --input "-a createPlan --repository example --options addDefaultJob" --input "-a addTask --job @job@ --taskKey CHECKOUT --field selectedRepository_0=defaultRepository" --input "-a exportJob --job @job@" --input "-a deletePlan --continue"
--action run --common "--plan ZCLI-TASKSnocheckout" --input "-a deletePlan --continue" --input "-a createPlan --repository example" --input "-a addStage --stage FIRST" --input "-a addJob --stage @stage@ --job AAA --options noCheckoutTask" --input "-a exportPlan" --input "-a deletePlan --continue"
--action run --common "--plan ZCLI-VARIABLES" --input "-a addVariables --field c1=aa1 --field c2=aa2 --replace" --input "-a copyVariables --toPlan ZCLI2-VARIABLES --replace" --input "-a getVariableList"
--action run --common "--project ZCLI" --input "-a addVariables --field c1=aa1 --field c2=aa2 --replace" --input "-a copyVariables --toProject ZCLI2 --replace" --input "-a getVariableList"
--action run --continue --input "-a createPlan --plan ZCLI-EXAMPLES --repository example --replace --options addDefaultJob --options clear" --input "-a addVariables --plan @plan@ --field exitCode=0 --replace" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 0\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 1\" --field conditionalTask=true --field selectedCondition=com.atlassian.bamboo.plugins.bamboo-conditional-tasks:variableCondition --field task.condition.variable.name=exitCode --field task.condition.variable.operation=not_equals --field task.condition.variable.value.not_equals=0" --input "-a getReplacementVariableList --outputType text" --input "-a queueBuild --plan @plan@ --wait" --input "-a exportPlan --plan @plan@"
--action run --continue --input "-a deletePlan --plan ZCLI-EXAMPLES" --input "-a createPlan --plan ZCLI-EXAMPLES --repository example --replace --options addDefaultJob --options clear" --input "-a addVariables --plan @plan@ --field exitCode=0 --replace" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 0\"" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field \"scriptBody=exit 1\" --field conditionalTask=true --field selectedCondition=com.atlassian.bamboo.plugins.bamboo-conditional-tasks:variableCondition --field task.condition.variable.name=exitCode --field task.condition.variable.operation=not_equals --field task.condition.variable.value.not_equals=0" --input "-a getReplacementVariableList --outputType text" --input "-a queueBuild --plan @plan@ --wait" --input "-a exportPlan --plan @plan@"
--action run --continue --input "-a queueBuild --wait --plan XXX-DEF" --input "-a runIf --regex FAILED --value @buildState@ --input \"-a queueBuild --wait --plan @build@\""
--action run --file "./src/itest/bamboo/resources/developer.txt" --findReplace "%PLAN%:ZDEVELOPER2884487SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script by developer" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 2884487" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:Z Added 1"
--action run --file "./src/itest/bamboo/resources/exportPlanCli.txt" --type "cli" --findReplace "999999:28134170099" --dateFormat "yyyy-MM-dd"
--action run --file "./src/itest/bamboo/resources/exportPlanNotifications.txt" --findReplace "%plan%:XXX-Notifications"
--action run --file "./src/itest/bamboo/resources/renderRequest.txt" --findReplace "@build@:XXX-DEF"
--action run --file "./src/itest/bamboo/resources/replace-plan1.txt" --findReplace "%PLAN%:ZREPLACE2767141SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script for replace" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 2767141" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:zreplace1"
--action run --file "./src/itest/bamboo/resources/replace-plan2.txt" --findReplace "%PLAN%:ZREPLACE2767141SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script for replace" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 2767141" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:zreplace1"
--action run --file "./src/itest/bamboo/resources/run.txt"
--action run --file "output/deploy/exportDeploymentProject.txt" --findReplace "--name \"Deploy ZDEPLOY2812580-BASE\":--name \"Import Deploy ZDEPLOY2812580-BASE\""
--action run --file "output/export/exportPlanCli.txt" --type "cli" --findReplace "2813417:281341700" --dateFormat "yyyy-MM-dd"
--action run --file "output/requirements/exportPlan.txt"
--action run --input "-a addVariables --field \"aaa=AAA\" --replace" --input "-a getVariableList --reference bamboo. -f \"\"" --input "-a getClientInfo --comment @bamboo.aaa@"
--action run --input "-a createPlan --plan ZBUILDARTIFACTS-AA --replace --options addDefaultJob" --input "-a addArtifact --plan @plan@ --job @job@ --artifact out3.txt s1 --copyPattern out3s1.txt --shared --required" --input "-a addArtifactDependency addArtifact --plan @plan@ --job @job@ --artifact out.txt s2 --location copyPattern s2."txt --action run --input "-a createPlan --plan ZJOBS-AA --replace --options addDefaultJobshared --required" --input "-a addJob addArtifact --plan @plan@ --stage \"@stage@\" --job JOB2 @job@ --disable --type DOCKER artifact j1 --docker xxxcopyPattern j1.txt" --input "-a addJob addArtifact --plan @plan@ --stage \"@stage@\" job @job@ --job JOB3 artifact j2 --disablecopyPattern j2.txt" --input "-a setJobIsolationOptions addTask --plan @plan@ --job JOB3 @job@ --type DOCKER taskKey SCRIPT --docker yyy field scriptLocation=INLINE --field hostDirectory_1=\${bamboo.working.directory} --field containerDirectory_1=\${bamboo.working.directory}\"scriptBody=echo 'x' > s1.txt echo 'x' > s2.txt echo 'x' > j1.txt echo 'x' > j2.txt\" " --input "-a queueBuild --plan @plan@ --wait --reference firstBuild" --input "-a getPlan queueBuild --plan @plan@ --wait" --input "-a getStage getArtifactList --build @build@ --plan @plan@ --stage \"@stage@\"columns producer,name,shared --outputType text" --input "-a getJob getArtifactList --plan build @plan@-JOB1 --job JOB2columns producer,name,shared --outputType text" --input "-a getJob removeBuildArtifacts --plan @plan@ build @build@ --job JOB3JOB1" --input "-a getJobList getArtifactList --plan @plan@ build @build@ --columns \"stage,job,job name,full key,type,docker\" --outputFormat 999 --outputType text"--action run producer,name,shared --outputType text" --input "-a createPlan getArtifactList --plan ZCREATE4691270build @plan@-EMPTY JOB1 --repository example columns producer,name,shared --replace outputType text" --options clear\"input "-a removeBuildArtifacts --build @build@" --input "-a setReplacementVariables getArtifactList --field repository= --field repositoryId=" --input "-a getReplacementVariableListbuild @build@ --columns producer,name,shared --outputType text" --input "-a createPlan getArtifactList --plan ZCREATE4691270build @plan@-EMPTY JOB1 --repository example --replace --options clearcolumns producer,name,shared --outputType text" --input "-a getReplacementVariableListremoveBuildHistory --build @build@" --input "-a exportPlan removeBuildHistory --build @build@ -plan ZCREATE4691270-EMPTYcontinue" --action run --input "-a createPlan removeBuildArtifacts --plan ZLONGRUNNING-AA --replace --options addDefaultJobbuild @firstBuild@" --input "-a addTask getArtifactList --plan @plan@ build @firstBuild@ --job @job@ columns producer,name,shared --taskKey SCRIPT outputType text" --field scriptLocation=INLINE --field \"scriptBody=sleep 20s\" " --input "-a addStage --plan @plan@ --stage SECOND --manual" input "-a getArtifactList --build @firstBuild@ --job JOB1 --columns producer,name,shared --outputType text"
--action run --input "-a addJob createPlan --plan @plan@ ZCLI--stage @stage@ TASKS --job JOB2replace" --input "-a addTask addVariables --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=exit 0\" field exitCode --value 0" --input "-a addStage --plan @plan@ --stage THIRD --manualFIRST" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB3JOB" --input " -a addTask runFromList --plan @plan@ list ,BBB,CCC,DDD,EEE --job @job@ list2 ,--taskKey SCRIPT disable --field scriptLocation=INLINE --field \"scriptBody=exit 0\" " --input common \"-a addStage addTask --plan @plan@ --stage FOURTH job @job@ --manual" taskKey SCRIPT --input description \"@entry@\" @entry2@ -a addJob --plan @plan@ --stage @stage@ --job JOB4-field scriptLocation=INLINE --field scriptBody=xxx\" " --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --description FFF --field scriptLocation=INLINE --field \" scriptBody=exit 0\" "xxx --final -v" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB2"
--action run --input "-a createPlan --plan ZEXPORT2813417-Export --description \"ZCREATE4691270-add default jobExport plan\" --replace --options addDefaultJob" --input "-a addTask addRepository --plan @plan@ --repository cli" --job @job@ --taskKey CLEANinput "-a addBranch --plan @plan@ --branch 2.5.0" --input "-a updatePlan addVariables --plan @plan@ --field v1=xxx" --description \input "Update with a description\"" -a addTrigger --plan @plan@ --type scheduled --schedule 9:35" --input "-a getPlan addTrigger --plan @plan@ " --action run type polling" --input "-a deletePlan addTrigger --plan ZJOBS-CLONE @plan@ --continuetype remote" --input "-a createPlan addNotification --plan ZJOBS-CLONE --replace --options addDefaultJob@plan@ --event \"All Builds Completed\" --recipientType user --field notificationUserString=automation" --input "-a addTask addNotification --plan @plan@ --event \"All Builds Completed\" ---job @job@ --taskKey CLEANrecipientType webhook --recipient \"build webhook\" --url https://example.gear.com" --input "-a getJob addArtifact --plan @plan@ --job @job@ --artifact out.txt --copyPattern out.txt --shared" --input "-a cloneJob addArtifact --plan @plan@ --job @job@ --name \"cloned job\" --description xxxartifact out2.txt --copyPattern out2.txt --required" --input "-a getJob addTask --plan @plan@ --job @job@ --taskKey CHECKOUT" --input "-a cloneJob addTask --plan @plan@ --job @job@ --taskKey SCRIPT --toJob field \"cloned job2scriptLocation = INLINE\"" --input "-a getJob --plan @plan@ --job @job@field \"scriptBody = echo xxx > out.txt \\n echo yyy > out2.txt\"" --input "-a cloneJob addTask --plan XXX-DEF @plan@ --job JOB1 @job@ --toPlan @plan@ taskKey CLI_BAMBOO --toJob newJob field scriptLocation=INLINE --stage NewStage field \"scriptBody=--autoStagehelp\"" --input "-a getJob addTask --plan @plan@ --job @job@ "--action run --taskKey ARTIFACT_DOWNLOAD --field sourcePlanKey=@plan@ --field artifactId_1=out.txt" --input "-a exportJob addTask --plan ZEXPORT4696424@plan@ --Export job @job@ --job SCRIPT -f output/export/scriptJob.cli" --input "-a run -f output/export/scriptJob.clitaskKey SCRIPT --final --field scriptLocation=INLINE --field scriptBody=0" --input "-a getTask addJob --plan ZEXPORT4696424-Export @plan@ --stage \"@stage@\" --job SCRIPT --task 1options noCheckoutTask" --input "-a getTask addTask --plan ZEXPORT4696424@plan@ --Export job @job@ --job taskKey SCRIPT --task 2"--action run field scriptLocation=INLINE --field \"scriptBody = \\n #!/bin/bash \\n echo this is a test \\n echo \"\"another test\"\" \\n echo 'yet another test' \\n \"" --input "-a removeRepository addStage --repository tempName plan @plan@ --continuestage LAST" --input "-a updateRepository addJob --plan @plan@ --repository stage \"zrepositories git@stage@\" --name tempNamejob JOB2" --input "-a getRepository --name tempNameaddArtifact --plan @plan@ --job @job@ --artifact out3.txt --copyPattern out3.txt" --input "-a updateRepository addArtifactDependency --repository tempName plan @plan@ --name \"zrepositories git\"" --input "-a getRepository --repository \"zrepositories git\""job @job@ --artifact out.txt --location ."
--action run --input "upm -a getAppList"createPlan --action run plan ZJOBS-AA -verbose

runBuildExpiry

--action runBuildExpiry

runFromAgentList

--action updateCapability --capability "Docker" --value "/zdocker"
--action updateCapability --capability "Docker" --value "/zdocker" --agent "zcapabilities"
--action updateCapability --capability "Perforce Executable" --value "/zperforce"
--action updateCapability --capability "Perforce Executable" --value "/zperforce" --agent "zcapabilities"
--action updateCapability --capability "system.git.executable.ssh" --value "/zgitssh" --agent "zcapabilities" --options "ssh"
--action updateCapability --capability "system.git.executable.ssh" --value "/zgitssh" --options "ssh"
--action updateCapability --capability "system.hg.executable.ssh" --value "/zhgssh" --agent "zcapabilities" --options "ssh"
--action updateCapability --capability "system.hg.executable.ssh" --value "/zhgssh" --options "ssh"
--action updateCapability --capability "z Ant" --value "/ant" --agent "zcapabilities" --name "z Ant"
--action runFromAgentList --common -replace --options addDefaultJob" --input "-a getServerInfo --comment ~agent: @agent@, id: @agentId@~" --regex "Z Added .*" --special " ~"

runFromBuildList

--action runFromBuildList --plan "ZCLI-BUILDLIST" --limit 1 --labels "testlabel1" --common "-a addLabels --build @build@ --labels testlabel1"
--action runFromBuildList --plan "ZCREATE4691270-BB" --field "endedBefore=2021-12-01 21:18:20.624" --dateFormat "yyyy-MM-dd HH:mm:ss.SSS" --common "-a removeBuildHistory --build @build@"

runFromCapabilityList

--action runFromCapabilityList --regex "system.jdk.*" --common "-a updateCapability --capability \"@capability@\""

runFromDeploymentProjectList

--action runFromDeploymentProjectList --common "-a getClientInfo --options ~deploymentProject: @deploymentProject@, id: @deploymentProjectId@~" --special " # ~"

runFromEnvironmentList

--action runFromEnvironmentList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --common "-a getEnvironment --deploymentProject ~Deploy ZDEPLOY4591390-BASE~ --environment @environmentId@" --special " ~"

runFromEnvironmentRequirementList

--action runFromEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --common "-a getClientInfo --value @requirementId@"

runFromEnvironmentTriggerList

--action runFromEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --common "-a getEnvironmentTrigger --deploymentProject ~Deploy ZDEPLOY4591390-BASE~ --environment QA --id @triggerId@" --special " ~"
--action runFromEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --regex ".*deployment" --common "-a removeEnvironmentTrigger --deploymentProject ~Deploy ZDEPLOY4591390-BASE~ --environment QA --id @triggerId@" --special " ~"

runFromJobList

--action runFromJobList --plan "ZCREATE4691270SCRIPT-PLAN" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@, name: @planName@, stageId: @stageId@, stage: @stage@, job: @job@, jobName: @jobName@~" --special " ~"
--action runFromJobList --plan "ZCREATE4691270SCRIPT-PLAN" --stage "A" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@, name: @planName@, stageId: @stageId@, stage: @stage@, job: @job@, jobName: @jobName@~" --special " ~"

runFromList

--action runFromList --list "A,B" --clearFileBeforeAppend --input "-a getProjectList --limit 2 --file output/runner/runFromListAppendAndColumn.txt --append --columns 1,2"
--action runFromList --list "Client, Server" --common "-a get@entry@Info"
--action runFromList --list "org.*,com.*" --regex "@entry@" --common "-a getAppList --regex \"@entry@\""

runFromNotificationList

--action runFromNotificationList --plan "ZCREATE4691270-NOTIFICATIONS" --regex2 ".*org.swift.bamboo.acli.*" --common "-a getReplacementVariableList --outputType text"

runFromPlanList

--action runFromPlanList --project "@aLL" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@~" --special " ~" --limit 7
--action runFromPlanList --project "ZCREATE4691270SCRIPT" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@, name: @planName@~" --special " ~"

runFromProjectList

--action runFromProjectList --common "-a getServerInfo --comment ~project: @project@, name: @projectName@~" --limit 2 --special " ~"

runFromRepositoryList

--action runFromRepositoryList --common "-a getServerInfo --comment ~repository: @repository@, id: @repositoryId@~" --regex ".*example.*" --special " ~"

runFromRequirementList

--action runFromRequirementList --plan "ZCLI-REQUIREMENTS" --job "JOB1" --common "-a getClientInfo --value @requirementId@"

runFromSql

--action runFromSql --file "./src/itest/bamboo/resources/run.sql" --database "@database-test"

runFromStageList

--action runFromStageList --plan "ZCREATE4691270SCRIPT-PLAN" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@, name: @planName@, stageId: @stageId@, stage: @stage@~" --special " ~"

runFromTaskList

--action runFromTaskList --plan "ZCREATE4691270SCRIPT-PLAN" --job "JOB" --common "-a getTask --plan @plan@ --job @job@ --task @taskId@"

runFromTriggerList

--action runFromTriggerList --plan "ZCREATE4691270-AA" --common "-a getTrigger --plan ZCREATE4691270-AA --id @triggerId@"
--action runFromTriggerList --plan "ZCREATE4691270-AA" --regex "Repository.*" --limit 1 --common "-a removeTrigger --plan ZCREATE4691270-AA --id @triggerId@"

runFromUserList

--action runFromUserList --regex "a.*" --common "-a getClientInfo --comment @userId@"

setDependencyOptions

--action setDependencyOptions --plan "ZCREATE4691270-AA" --childPlans "ZCREATE4691270-BB, ZCREATE4691270-EMPTY"

setExpiryOptions

--action setExpiryOptions
--action setExpiryOptions --field "artifacts" --field "logs" --field "expireAfter=44" --field "buildsToKeep=55" --field "maximumBuildsToKeep=76" --field "deploymentsToKeep=2" --field "anyDeploymentsToKeep=3" --field "labelsToKeep=keep" --schedule "0 10 3 ? * *"
--action setExpiryOptions --field "results"

setFavoritePlan

--action setFavoritePlan --plan "ZCREATE4691270-AA"

testRepository

--action testRepository --repository "zrepositories git"

unsetFavoritePlan

--action unsetFavoritePlan --plan "ZCREATE4691270-AA"

updateBranchingOptions

--action updateBranchingOptions --plan "ZCLI-BRANCHING" --field "planBranchCreation=pr" --field "deletePlanBranchWhenBranchRemovedFromVcs=true" --field "removedBranchCleanUpPeriodInDays=14" --field "branches.defaultBranchIntegration.enabled=true" --field "branches.defaultBranchIntegration.strategy=GATE_KEEPER" --field "branches.defaultBranchIntegration.gateKeeper.pushEnabled=true" --field "defaultNotificationStrategy=none" --field "branchTriggering=manual"
--action updateBranchingOptions --plan "ZCLI-BRANCHING2" --field "defaultNotificationStrategy=notifyCommitters" --field "branchTriggering=inherited"

updateCapability

--action updateCapability --capability "z Ant" --value "/ant" --name "z AntaddJob --plan @plan@ --stage \"@stage@\" --job JOB2 --disable --type DOCKER --docker xxx" --input "-a addJob --plan @plan@ --stage \"@stage@\" --job JOB3 --disable" --input "-a setJobIsolationOptions --plan @plan@ --job JOB3 --type DOCKER --docker yyy --field hostDirectory_1=\${bamboo.working.directory} --field containerDirectory_1=\${bamboo.working.directory}" --input "-a getPlan --plan @plan@" --input "-a getStage --plan @plan@ --stage \"@stage@\"" --input "-a getJob --plan @plan@ --job JOB2" --input "-a getJob --plan @plan@ --job JOB3" --input "-a getJobList --plan @plan@ --columns \"stage,job,job name,full key,type,docker\" --outputFormat 999 --outputType text"
--action run --input "-a createPlan --plan ZLONGRUNNING-AA --replace --options addDefaultJob" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=sleep 20s\" " --input "-a addStage --plan @plan@ --stage SECOND --manual" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB2" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=exit 0\" " --input "-a addStage --plan @plan@ --stage THIRD --manual" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB3" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=exit 0\" " --input "-a addStage --plan @plan@ --stage FOURTH --manual" --input "-a addJob --plan @plan@ --stage @stage@ --job JOB4" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=exit 0\" "
--action run --input "-a deletePlan --plan ZJOBS-CLONE --continue" --input "-a createPlan --plan ZJOBS-CLONE --replace --options addDefaultJob" --input "-a addTask --plan @plan@ --job @job@ --taskKey CLEAN" --input "-a getJob --plan @plan@ --job @job@" --input "-a cloneJob --plan @plan@ --job @job@ --name \"cloned job\" --description xxx" --input "-a getJob --plan @plan@ --job @job@" --input "-a cloneJob --plan @plan@ --job @job@ --toJob \"cloned job2\"" --input "-a getJob --plan @plan@ --job @job@" --input "-a cloneJob --plan XXX-DEF --job JOB1 --toPlan @plan@ --toJob newJob --stage NewStage --autoStage" --input "-a getJob --plan @plan@ --job @job@"
--action run --input "-a exportJob --plan ZEXPORT2813417-Export --job SCRIPT -f output/export/scriptJob.cli" --input "-a run -f output/export/scriptJob.cli" --input "-a getTask --plan ZEXPORT2813417-Export --job SCRIPT --task 1" --input "-a getTask --plan ZEXPORT2813417-Export --job SCRIPT --task 2"
--action run --verbose

runFromBuildList

--action runFromBuildList --plan "ZCLI-BUILDLIST" --limit 1 --labels "testlabel1" --common "-a addLabels --build @build@ --labels testlabel1"

runFromCapabilityList

--action runFromCapabilityList --regex "system.jdk.*" --common "-a updateCapability --capability \"@capability@\""

runFromDeploymentProjectList

--action runFromDeploymentProjectList --common "-a getClientInfo --options ~deploymentProject: @deploymentProject@, id: @deploymentProjectId@~" --special " # ~"

runFromEnvironmentList

--action runFromEnvironmentList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --common "-a getEnvironment --deploymentProject ~Deploy ZDEPLOY2812580-BASE~ --environment @environmentId@" --special " ~"

runFromEnvironmentRequirementList

--action runFromEnvironmentRequirementList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --common "-a getClientInfo --value @requirementId@"

runFromEnvironmentTriggerList

--action runFromEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --common "-a getEnvironmentTrigger --deploymentProject ~Deploy ZDEPLOY2812580-BASE~ --environment QA --id @triggerId@" --special " ~"
--action runFromEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --regex ".*deployment" --common "-a removeEnvironmentTrigger --deploymentProject ~Deploy ZDEPLOY2812580-BASE~ --environment QA --id @triggerId@" --special " ~"

runFromList

--action runFromList --list "A,B" --clearFileBeforeAppend --input "-a getProjectList --limit 2 --file output/runner/runFromListAppendAndColumn.txt --append --columns 1,2"
--action runFromList --list "Client, Server" --common "-a get@entry@Info"

runFromRequirementList

--action runFromRequirementList --plan "ZCLI-REQUIREMENTS" --job "JOB1" --common "-a getClientInfo --value @requirementId@"

runFromSql

--action runFromSql --file "./src/itest/bamboo/resources/run.sql" --database "@database-test"

runFromUserList

--action runFromUserList --regex "a.*" --common "-a getClientInfo --comment @userId@"

updateBranchingOptions

--action updateBranchingOptions --plan "ZCLI-BRANCHING" --field "planBranchCreation=pr" --field "deletePlanBranchWhenBranchRemovedFromVcs=true" --field "removedBranchCleanUpPeriodInDays=14" --field "branches.defaultBranchIntegration.enabled=true" --field "branches.defaultBranchIntegration.strategy=GATE_KEEPER" --field "branches.defaultBranchIntegration.gateKeeper.pushEnabled=true" --field "defaultNotificationStrategy=none" --field "branchTriggering=manual"
--action updateBranchingOptions --plan "ZCLI-BRANCHING2" --field "defaultNotificationStrategy=notifyCommitters" --field "branchTriggering=inherited"

updateCapability

--action updateCapability --capability "Docker" --value "/zdocker"
--action updateCapability --capability "Docker" --value "/zdocker" --agent "zcapabilities"
--action updateCapability --capability "z GWPerforce Executable" --value "/gw" --agent "zcapabilities" --name "z GW"zperforce"
--action updateCapability --capability "z GWPerforce Executable" --value "/gwzperforce" --name agent "z GWzcapabilities"
--action updateCapability --capability "z JDKsystem.git.executable.ssh" --value "/jdkzgitssh" --agent "zcapabilities" --name options "z JDKssh"
--action updateCapability --capability "z JDKsystem.git.executable.ssh" --value "/jdkzgitssh" --name options "z JDKssh"
--action updateCapability --capability "z custom 1system.hg.executable.ssh" --value "xxx/zhgssh" --agent "zcapabilities" --name options "z custom 1ssh"
--action updateCapability --capability "z custom 1system.hg.executable.ssh" --value "xxx/zhgssh" --name options "z custom 1ssh"
updateEnvironmentRequirement
--action updateTask --plan "ZBAMBOOCLI4627681-checkout1" --job "JOB1" --id "2" --description "task description" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} " --taskKey "SCRIPT"
--action updateEnvironmentRequirement updateCapability --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --id "149749873" --type "MATCHES" --value "zzz"

updateEnvironmentTask

--action updateEnvironmentTask --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --task "Groovy" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = 0 // updated"

updateEnvironmentVariables

--action updateEnvironmentVariables --deploymentProject "Deploy ZDEPLOY4591390-BASE" --environment "QA" --append --field "Zv.a = ' APPENDED_TEXT WITH BLANK'" --field "Zv.1 = APPENDED_TEXT"

updatePlan

--action updatePlan --plan "ZCREATE4691270-AA" --description "Updated"

updateRepository

--action updateRepository --repository "zrepositories git"
--action updateRepository --repository "zrepositories git" --credentials "zrepositories credentials for git 2"

updateStage

--action updateStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "B updated"
--action updateStage --plan "ZCREATE4691270SCRIPT-PLAN" --stage "B" --manual --final --name "B updated" --description "Updated description"

updateTask

--action updateTask --plan "ZCREATE4691270-BB" --job "JOB" --description "Fail" --taskKey "SCRIPT" --field "scriptLocation = capability "z Ant" --value "/ant" --agent "zcapabilities" --name "z Ant"
--action updateCapability --capability "z Ant" --value "/ant" --name "z Ant"
--action updateCapability --capability "z GW" --value "/gw" --agent "zcapabilities" --name "z GW"
--action updateCapability --capability "z GW" --value "/gw" --name "z GW"
--action updateCapability --capability "z JDK" --value "/jdk" --agent "zcapabilities" --name "z JDK"
--action updateCapability --capability "z JDK" --value "/jdk" --name "z JDK"
--action updateCapability --capability "z custom 1" --value "xxx" --agent "zcapabilities" --name "z custom 1"
--action updateCapability --capability "z custom 1" --value "xxx" --name "z custom 1"

updateEnvironmentRequirement

--action updateEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --id "149749975" --type "MATCHES" --value "zzz"

updateEnvironmentTask

--action updateEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA" --task "Groovy" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = exit 1" --disable --id "4" --final0 // updated"

updateEnvironmentVariables

--action updateTask --plan "ZCREATE4691270-BB" updateEnvironmentVariables --job "JOBdeploymentProject "Deploy ZDEPLOY2812580-BASE" --description environment "FailQA" --taskKey "SCRIPT" append --field "scriptLocation = INLINEZv.a = ' APPENDED_TEXT WITH BLANK'" --field "scriptBody = exit 1" --id "3"Zv.1 = APPENDED_TEXT"

updateTask

--action updateTask --plan "ZCREATE4691270ZBAMBOOCLI2811464-BBcheckout1" --job "JOB"JOB1" --id "2" --description "Longtask description" --taskKey "SCRIPTfields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field field1 "scriptLocation = " --value1 "INLINE" --field "scriptBody = sleep 30s exit 1field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} " --id taskKey "2SCRIPT"

updateVariables

--action updateVariables --plan "ZCLI-VARIABLES" --append --field "Zv.a = ' APPENDED_TEXT WITH BLANK'" --field "Zv.1 = APPENDED_TEXT"
--action updateVariables --plan "ZCLI-VARIABLES" --append --field "Zv.a" --findReplace "value aaa:modified value aaa"
--action updateVariables --project "ZCLI" --append --field "Zv.a = ' APPENDED_TEXT WITH BLANK'" --field "Zv.1 = APPENDED_TEXT"
--action updateVariables --project "ZCLI" --append --field "Zv.a" --findReplace "value aaa:modified value aaa"

validateLicense

--action validateLicense

verifyBuild

--action verifyBuild --build "XXX-DEF-672678" --wait
--action verifyBuild --build "ZBAMBOOCLI4627681ZBAMBOOCLI2811464-checkout1"
--action verifyBuild --plan "ZLONGRUNNING-AA" --wait --timeout 40
Excerpt
Table of Contents
maxLevel1
absoluteUrltrue