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.

...

addAgentAssignment

addAgent

--action addAgentAssignment addAgent --agent "zdeployZ Added 1" --continue
-assignment "Deploy ZDEPLOY2812580-BASE" -action addAgent --type "DEPLOYMENT_PROJECTagent "Z Added 1" --autoAgentdescription "Agent added by 5074797"
--action addAgentAssignment addAgent --agent "zdeploy" --assignment "Deploy ZDEPLOY2812580-BASE:QA" --type "ENVIRONMENT" --autoAgent
addBranch
Z Added 2"
--action addAgent --agent "Z Added 3"
--action addAgent --agent "Z Added 4" --continue

addAgentAssignment

--action addBranch addAgentAssignment --plan "ZTEMPLATE-CHECKOUT1agent "Z Added 1" --branch "2.5.0" --continueassignment "ZCREATE5074797"
--action addBranch addAgentAssignment --plan "ZTEMPLATE-CHECKOUT1agent "Z Added 1" --branch "2.5.0" --description "Branch for tag 2.5.0" --enableassignment "ZCREATE5074797-AA"
--action addAgentAssignment --agent "Z Added 1" --assignment "ZCREATE5074797-AA-MYJOB"
--action addBranch addAgentAssignment --plan agent "ZTEMPLATE-CHECKOUT1zdeploy" --branch "2.6.0" --name "Release 2.6.0"

addCapability

--action addCapability assignment "Deploy ZDEPLOY5291168-BASE" --type "DockerDEPLOYMENT_PROJECT" --value "/zdocker"autoAgent
--action addCapability addAgentAssignment --type agent "Dockerzdeploy" --value "/zdockerassignment "Deploy ZDEPLOY5291168-BASE:QA" --agent type "zcapabilitiesENVIRONMENT" --autoAgent

addArtifact

--action addCapability addArtifact --type plan "PerforceZCREATE5074797-AA" --value job "/zperforceMYJOB" --action addCapability artifact "jar" --type location "Perforcetarget" --value copyPattern "**/zperforce*.jar" --agent "zcapabilities"shared
--action addCapability addArtifact --type plan "custom" ZCREATE5074797--value AA" xxx" --agent job "zcapabilitiesmyjob" --name artifact "z custom 1jar2" --action addCapability --type "customlocation "target" --value "xxxcopyPattern "**/*.jar" --name "z custom 1"required
--action addCapability addArtifact --plan "ZCREATE5074797-AA" --type job "executable:Antmyjob" --value artifact "/antremove me" --agent location "zcapabilitiestarget" --name "z AntcopyPattern "**/*.jar"

addBranch

--action addCapability addBranch --type "executable:Antplan "ZTEMPLATE-CHECKOUT1" --value "/antbranch "2.5.0" --name "z Ant"continue
--action addCapability addBranch --type "executable:Gradle Wrapper" --value "/gw" --agent "zcapabilitiesplan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --description "Branch for tag 2.5.0" --enable
--action addBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.6.0" --name "z GWRelease 2.6.0"

addCapability

--action addCapability --type "executable:Gradle WrapperDocker" --value "/gw" --name "z GW"zdocker"
--action addCapability --type "gitDocker" --value "/zgitsshzdocker" --agent "zcapabilities"
--action addCapability --options "sshtype "Perforce" --value "/zperforce"
--action addCapability --type "gitPerforce" --value "/zgitsshzperforce" --options agent "sshzcapabilities"
--action addCapability --type "jdkcustom" --value "/jdkxxx" --agent "zcapabilities" --name "z JDKcustom 1"
--action addCapability --type "jdkcustom" --value "/jdkxxx" --name "z JDKcustom 1"
--action addCapability --type "mercurialexecutable:Ant" --value "/zhgsshant" --agent "zcapabilities" --options name "sshz Ant"
--action addCapability --type "mercurialexecutable:Ant" --value "/zhgsshant" --options name "sshz Ant"
addComment
--action addComment addCapability --build "XXX-DEFtype "executable:Gradle Wrapper" --comment "This is a comment added by automation"--action addComment --build "XXX-DEFvalue "/gw" --agent "zcapabilities" --number name "678z GW"
--file "./src/itest/bamboo/resources/data.txt" action addCapability --findReplace type "xxxexecutable:yyyGradle Wrapper"

addEnvironment

--action addEnvironment --deploymentProject "Deploy ZDEPLOY2812580-BASEvalue "/gw" --name "DEVz GW"
--action addEnvironment addCapability --deploymentProject "Deploy ZDEPLOY2812580-BASEtype "git" --name value "QA/zgitssh" --description "Environment descriptionagent "zcapabilities" --options "ssh"
--action addEnvironment addCapability --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1type "git" --value "/zgitssh" --name options "QAssh"
addEnvironmentNotification
--action addEnvironmentNotification addCapability --deploymentProject "Deploy ZDEPLOY2812580-BASEtype "jdk" --environment value "QA/jdk" --event agent "Deployment finishedzcapabilities" --recipientType name "CLI" --field "cliAction = -a getClientInfo"z JDK"
--action addEnvironmentNotification addCapability --deploymentProject "Deploy ZDEPLOY2812580-BASEtype "jdk" --environment value "QA/jdk" --event "Deployment started and finished" --recipientType "CLIname "z JDK"

addComment

--action addComment --build "XXX-DEF" --field "cliAction = -a getClientInfo"
addEnvironmentRequirement
comment "This is a comment added by automation"
--action addEnvironmentRequirement addComment --deploymentProject build "Deploy ZDEPLOY2812580XXX-BASEDEF" --environment number "QA1850" --requirement "system.builder.ant.Antfile "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/data.txt" --findReplace "xxx:yyy"

addEnvironment

--action addEnvironment --deploymentProject "Deploy ZDEPLOY5291168-BASE" --name "DEV"
--action addEnvironmentRequirement addEnvironment --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment name "QA" --requirement description "xxx" Environment description"
--action addEnvironment --type "EQUALSdeploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --value name "yyyQA"
addEnvironmentTask

addEnvironmentNotification

--action addEnvironmentTask addEnvironmentNotification --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "DEVQA" --taskKey event "SCRIPTDeployment finished" --field recipientType "scriptLocation = INLINECLI" --field "scriptBody cliAction = exit -99a getClientInfo"
--action addEnvironmentTask addEnvironmentNotification --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --taskKey "GROOVYevent "Deployment started and finished" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINErecipientType "CLI" --field "scriptBody cliAction = 0-a getClientInfo"

addEnvironmentRequirement

--action addEnvironmentTask addEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --taskKey "GROOVYrequirement "system.builder.ant.Ant"
--action addEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINErequirement "xxx" --field type "scriptBody = 1EQUALS" --finalvalue "yyy"

addEnvironmentTask

--action addEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QADEV" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = sleep 10 && echo xxx > out.txtexit -99"
--action addEnvironmentTask --deploymentProject "Deploy ZTEMPLATEZDEPLOY5291168-CHECKOUT1BASE" --environment "QA" --taskKey "SCRIPTGROOVY" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"
addEnvironmentTrigger
fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = 0"
--action addEnvironmentTrigger addEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --stage taskKey "FIRSTGROOVY" --type "After successful stagefields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --description "for branchfield "scriptBody = 1" --branch "2.5.0" --verbosefinal
--action addEnvironmentTrigger addEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --taskKey "com.atlassian.bamboo.plugins.scripttask:task.builder.script" --type "After successful deploymentfield "scriptLocation = INLINE" --triggeringEnvironment "DEVfield "scriptBody = sleep 10 && echo xxx > out.txt"
--action addEnvironmentTrigger addEnvironmentTask --deploymentProject "Deploy ZDEPLOY2812580ZTEMPLATE-BASECHECKOUT1" --environment "QA" --type "taskKey "SCRIPT" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"

addEnvironmentTrigger

--action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --stage "FIRST" --type "After successful stage" --stage "FIRSTdescription "for branch" --branch "2.5.0" --disableverbose
--action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --type "AfterSuccessfulPlan"After successful deployment" --triggeringEnvironment "DEV"
--action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --type "ScheduledAfter successful stage" --description stage "scheduled triggerFIRST" --schedule "1 0 0 ? * *"
addEnvironmentVariables
disable
--action addEnvironmentVariables addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580ZDEPLOY5291168-BASE" --environment "QA" --fields "Zv.a:value atype "AfterSuccessfulPlan"
--action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"

addEnvironmentVariables

--action addEnvironmentVariables --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --fields "Zv.a:value a,Zv.b:value b" --field "Zv.1=value 1 28125805291168" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace

addGroup

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

addJob

--action addLabels addJob --build plan "XXXZCREATE5074797-DEFAA" --labels "testlabel1, testlabel2"--action addLabels --build "XXX-DEF" --number -1description "My job 1 description" --stage "My stage 1" --job "my job another"
--action addLabels addJob --build plan "XXXZCREATE5074797-DEFAA" --number job "REMOVE" -1 --labels "testlabel1 testlabel2stage "My stage 1"
--action addLabels addJob --plan "XXX-DEFZCREATE5074797-AA" --name "myjob 1" --stage "My stage 1" --labels job "testlabel1 testlabel2myjob"
addRepository
--action addRepository addJob --name plan "cliZCREATE5074797-sshBB" --repositoryKey job "MERCURIALJOB" --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"stage "Stage 1"
--action addJob --plan "ZCREATE5074797-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"

addRepository

--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 "ZBAMBOOCLI2811464plan "ZBAMBOOCLI4988851-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 addRepository --plan "ZCLI-ZCREATE5074797-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 "ZCREATE5074797-AA" --name "My stage 2" --description "My stage description"
--action addStage --plan "ZCREATE5074797-AA" --stage "My stage 1" --description "My stage description"
--action addStage --plan "ZCREATE5074797-BB" --stage "Stage 1"

addTask

--action addTask --file "build/output/tasks/script.txt" --plan "ZCLI-TASKS" --job "JOB" --taskKey "SCRIPT" --description "fileReference" --field "scriptLocation=INLINE" --field "scriptBody=@file"
--action addTask --plan "ZBAMBOOCLI2811464ZBAMBOOCLI4988851-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 "ZBAMBOOCLI2811464ZBAMBOOCLI4988851-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 "action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "MAVEN_POM_EXTRACTOR"--action addTask --plan "ZCLI-TASKS" --job "JOB2" --taskKey "SSH" --file "./opt/atlassian/pipelines/agent/build/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 "ZEXPORT2813417ZCREATE5074797-ExportAA" --job "JOB1myjob" --taskKey "ARTIFACT_DOWNLOADSCRIPT" --field "sourcePlanKey=ZEXPORT2813417-Exportdescription "initial description before update" --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 ZDEPLOY2812580fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field "scriptLocation=INLINE" --field "scriptBody = echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} "
--action addTask --plan "ZCREATE5074797-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 "ZCREATE5074797-BB" --job "JOB" --description "Fail" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = exit 1" --disable
--action addTask --plan "ZCREATE5074797-BB" --job "JOB" --description "Long" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = sleep 30s exit 1" --disable
--action addTask --plan "ZCREATE5074797-BB" --job "JOB" --description "Success" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = exit 0"
--action addTask --plan "ZEXPORT4985101-Export" --job "JOB1" --taskKey "ARTIFACT_DOWNLOAD" --field "sourcePlanKey=ZEXPORT4985101-Export" --field "artifactId_1=out.txt"

addTrigger

--action addTrigger --plan "ZCREATE5074797-AA" --type "Polling"
--action addTrigger --plan "ZCREATE5074797-AA" --type "Polling" --description "polling trigger interval" --repository "example" --schedule "3600"
--action addTrigger --plan "ZCREATE5074797-AA" --type "Polling" --description "polling trigger scheduled" --repository "example" --schedule "2 0 0 ? * *"
--action addTrigger --plan "ZCREATE5074797-AA" --type "Remote" --description "remote trigger restricted" --repository "example" --ipRestriction "172.16.9.25,172.16.9.26"
--action addTrigger --plan "ZCREATE5074797-AA" --type "Remote" --description "remote trigger" --repository "example"
--action addTrigger --plan "ZCREATE5074797-AA" --type "RemoteBitbucketServer"
--action addTrigger --plan "ZCREATE5074797-AA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
--action addTrigger --plan "ZCREATE5074797-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 5302472" --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 5302472" --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 5302472" --field "Zv_2=value 2 :;<>,.?/~#$%^&*()_+'" --field "ZPLANpassword=XXX" --replace

addWebhookTemplate

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

cloneEnvironment

--action cloneEnvironment --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --dateFormat name "QACLONE" yyyy -MM-dddescription "clone of QA"
exportJob

clonePlan

--action exportJob clonePlan --plan build "ZEXPORT2813417-ExportZTEMPLATE-checkout1" --file "build/output/bamboocli/clonePlancheckout1.txt" --job toPlan "JOB1ZBAMBOOCLI4988851-checkout1" --dateFormat "yyyy-MM-dd"

exportPlan

--action exportPlan name "Clone of checkout1" --description "Created based on ZTEMPLATE-checkout1"
--action clonePlan --build "ZTEMPLATE-checkout1" --file "build/output/exportbamboocli/exportPlanCliclonePlancheckout1Disable.txt" --plan toPlan "ZEXPORT2813417ZBAMBOOCLI4988851-Exportcheckout1Disable" --disable
--dateFormat "yyyyaction clonePlan -MM-ddbuild "--action exportPlan ZTEMPLATE-notask" --file "build/output/exportbamboocli/exportPlanJavaclonePlannotask.txt" --plan toPlan "ZEXPORT2813417ZBAMBOOCLI4988851-Exportnotask" --type name "javaClone of notask" --dateFormat "yyyy-MM-dddescription "Created based on ZTEMPLATE-notask"
--action exportPlan clonePlan --plan build "ZBAMBOOCLI2811464ZTEMPLATE-checkout1notask" --action exportPlan file "build/output/bamboocli/clonePlannotaskDisable.txt" --plan toPlan "ZCLIZBAMBOOCLI4988851-REQUIREMENTSnotaskDisable" --disable
--job "JOB1action clonePlan --plan "ZTEMPLATE-checkout1" --file "build/output/requirementsbamboocli/exportPlanclonePlanRemoveTesting.txt" --action exportPlan --plan "ZEXPORT2813417-ExporttoPlan "ZBAMBOOCLI4988851-RemoveTesting" --type name "javaRemove testing"
getAgentAssignmentList

cloneProject

--action getAgentAssignmentList cloneProject --agent project "zdeployZTEMPLATE" --regex ".*ZDEPLOY2812580.*"
getArtifact
toProject "ZBAMBOOCLI4988851CLONE"
--action getArtifact cloneProject --project "ZTEMPLATE" --file "output/bamboocli/getArtifact.txt" --build "XXX-DEF" --artifact "license" --job "JOB1toProject "ZBAMBOOCLI4988851CLONEDisable" --disable

createDeploymentProject

--action createDeploymentProject --plan "ZDEPLOY5291168-BASE" --name "Deploy ZDEPLOY5291168-BASE" --description "Description for deploy"
--action getArtifact createDeploymentProject --file "output/bamboocli/getArtifactJobAll.txtplan "ZTEMPLATE-CHECKOUT1" --build "XXX-DEFbranch "2.5.0" --artifact name "license" --job "@ALL"Deploy ZTEMPLATE-CHECKOUT1"

createPlan

--action getArtifact createPlan --file "output/bamboocli/getArtifactWithPath.txt" --build "XXX-DEF" --artifact "src/test/gradle/cli.gradle" --replaceplan "ZCREATE5074797-AA" --projectName "ZCREATE5074797 created project"
--action getArtifact createPlan --file "output/bamboocli/srcplan "ZCREATE5074797-BB" --build "XXX-DEFname "Simple plan BB" --artifact "src" --replace description "Simple plan BB description"
--action createPlan --plan "ZCREATE5074797-CC" --options "mkdiraddDefaultJob"

createProject

--action getArtifact createProject --job project "JOB1ZCREATE5074797" --file "output/bamboocli/getArtifactWithResultName.txt" --build "XXX-DEF-678" --artifact "license"

getArtifactList

--action getArtifactList --build "XXX-DEFname "ZCREATE5074797 created project"
--action createProject --project "ZDEVELOPER4959040SCRIPT" --name "Project created by script 4959040"
--action getArtifactList createProject --build project "XXX-DEFZPROJECTS5391424" --job name "@allzprojects5391424" --regex "lic.*"description "Project description"

deleteDeploymentProject

--action getArtifactList deleteDeploymentProject --build deploymentProject "XXX-DEF1234567890" --job "JOB1"
getBranch
continue

deletePlan

--action getBranch deletePlan --plan "ZTEMPLATEXXX-CHECKOUT1NOTFOUND" --branch "2.5.0"continue

deleteProject

--action getBranch deleteProject --plan project "ZTEMPLATE-CHECKOUT1NOTFOUND" --branch "Release 2.6.0"
getBranchList
continue

deployEnvironment

--action getBranchList deployEnvironment --plan deploymentProject "ZTEMPLATEDeploy ZDEPLOY5291168-CHECKOUT1BASE" --action getBranchList --plan "ZTEMPLATE-CHECKOUT1environment "QA" --regex version "1.*2.50.0" --replace

getBranchingOptions

--action getBranchingOptions deployEnvironment --plan deploymentProject "ZCLIDeploy ZDEPLOY5291168-BRANCHINGBASE" --action getBranchingOptions environment "QA" --plan "ZCLI-BRANCHINGversion "1.0.0" --verbosewait
--action getBranchingOptions deployEnvironment --plan deploymentProject "ZCLIDeploy ZTEMPLATE-BRANCHING2CHECKOUT1"

getBuild

--action getBuild --build "XXX-DEFenvironment "QA" --dateFormat "yyyy-MM-dd HH:mm:ss"version "1.0.0"

disableAgent

--action getBuild disableAgent --build "XXX-DEF-678agent "Z Added 2"
getBuildList

disableJob

--action getBuildList disableJob --plan "ZCLIZCREATE5074797-BUILDLISTAA" --limit 1 job "@all" --outputFormat 999 --issues "NOTFOUND-123stage "My stage 1"
--action getBuildList disableJob --plan "ZCLIZCREATE5074797-BUILDLISTAA" --limit 1 --outputFormat 999 --labels "not_found"job "myjob"

disablePlan

--action getBuildList disablePlan --plan build "ZCLIZBAMBOOCLI4988851-BUILDLISTcheckout1"
--limit 1 action disablePlan --outputFormat 999 --labels "not_found,testlabel1"build "ZBAMBOOCLI4988851-notask"

disableProject

--action getBuildList disableProject --plan project "ZCLI-BUILDLIST" ZBAMBOOCLI4988851"

enableAgent

--outputFormat 999 action enableAgent --columns "plan,duration description,labels,issues"
getBuildQueueList
agent "Z Added 2"

enableJob

--action getBuildQueueList--action getBuildQueueList --plan "ZBUILDQUEUE-QUEUEDenableJob --plan "ZCREATE5074797-AA" --job "MYJOB"
--action getBuildQueueList enableJob --plan "ZBUILDQUEUEZCREATE5074797-QUEUED-JOB"AA" --job "myjob"

enablePlan

--action getBuildQueueList enablePlan --project build "ZBUILDQUEUEZBAMBOOCLI4988851-checkout1"
--action getBuildQueueList enablePlan --regex "ZBUILDQUEUE.*build "ZBAMBOOCLI4988851-notask"
getBuildReportList

enableProject

--action getBuildReportList enableProject --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 "678project "ZBAMBOOCLI4988851"

exportDeploymentProject

--action exportDeploymentProject --file "build/output/deploy/exportDeploymentProject.txt" --deploymentProject "Deploy ZDEPLOY5291168-BASE" --dateFormat "yyyy.MM.dd"

exportEnvironment

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

exportJob

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

exportPlan

--action exportPlan --file "build/output/export/exportPlanCli.txt" --plan "ZEXPORT4985101-Export" --dateFormat "yyyy-MM-dd"
--action exportPlan --file "build/output/export/exportPlanJava.txt" --plan "ZEXPORT4985101-Export" --type "java" --dateFormat "yyyy-MM-dd HH:mm:ss"

getCredentialsList

--action getCredentialsList exportPlan --regex "zrepositories credentials for git .*plan "ZBAMBOOCLI4988851-checkout1"

getDeploymentProject

--action getDeploymentProject exportPlan --deploymentProject plan "Deploy ZDEPLOY2812580ZCLI-BASEREQUIREMENTS"

getDeploymentProjectList

--action getDeploymentProjectList
getEnvironment
--job "JOB1" --file "build/output/requirements/exportPlan.txt"
--action getEnvironment exportPlan --deploymentProject plan "Deploy ZDEPLOY2812580ZEXPORT4985101-BASEExport" --environment type "QAjava"
getEnvironmentList

getAgentAssignmentList

--action getEnvironmentList getAgentAssignmentList --deploymentProject "Deploy ZDEPLOY2812580-BASE"
getEnvironmentNotificationList
agent "zdeploy" --regex ".*ZDEPLOY5291168.*"

getAgentList

--action getEnvironmentNotificationList getAgentList
--action getAgentList -deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"
getEnvironmentRequirementList
-excludeDisabled --outputFormat 2
--action getEnvironmentRequirementList getAgentList --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"outputFormat 2
--action getAgentList --outputFormat 999
--action getEnvironmentRequirementList getAgentList --deploymentProject "Deploy ZDEPLOY2812580-BASEregex "Z Added 3" --environment columns "QA" --id "149749975"
getEnvironmentTaskList

getArtifact

--action getEnvironmentTaskList getArtifact --deploymentProject "Deploy ZDEPLOY2812580-BASEfile "build/output/bamboocli/getArtifact.txt" --environment "QA"

getEnvironmentTrigger

--action getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QAbuild "XXX-DEF" --artifact "license" --name job "After successful deploymentJOB1"
--action getEnvironmentTrigger getArtifact --deploymentProject "Deploy ZDEPLOY2812580-BASEfile "build/output/bamboocli/getArtifactJobAll.txt" --environment build "QA" XXX--name "Scheduled"

getEnvironmentTriggerList

--action getEnvironmentTriggerList --deploymentProject "Deploy ZDEPLOY2812580-BASEDEF" --artifact "license" --environment job "QA@ALL"
getEnvironmentVariableList
--action getEnvironmentVariableList getArtifact --deploymentProject "Deploy ZDEPLOY2812580-BASE" --environment "QA"

getLabelList

--action getLabelList file "build/output/bamboocli/getArtifactWithPath.txt" --build "XXX-DEF" --number -1artifact "src/test/gradle/cli.gradle" --replace
--action getLabelList getArtifact --file "build/output/bamboocli/src" --plan build "XXX-DEF"
getLatestBuildNumber
--artifact "src" --replace --options "mkdir"
--action getLatestBuildNumber getArtifact --build job "XXX-DEF"

getPlan

--action getPlan --plan "ZBAMBOOCLI2811464-checkout1" --verboseJOB1" --file "build/output/bamboocli/getArtifactWithResultName.txt" --build "XXX-DEF-1850" --artifact "license"

getArtifactDefinitionList

--action getPlan getArtifactDefinitionList --plan "ZBAMBOOCLI2811464ZCREATE5074797-checkout1DisableAA"

getArtifactDependencyList

--action getPlan getArtifactDependencyList --plan "ZBAMBOOCLI2811464CLONEZCREATE5074797SCRIPT-checkout1PLAN"
--action getPlan getArtifactDependencyList --project plan "ZBAMBOOCLI2811464CLONEZCREATE5074797SCRIPT-PLAN" --plan job "ZBAMBOOCLI2811464CLONE-CHECKOUT1TEST1"
getPlanList

getArtifactList

--action getPlanList getArtifactList --project build "XXX-DEF"
--options "usingRepository=zrepositories git"--action getPlanList --project "ZMOVE2805697action getArtifactList --build "XXX-DEF" --job "@all" --regex "lic.*"
--action getPlanList getArtifactList --build "XXX-DEF" --project job "ZMOVE2805697XXJOB1"

getBranch

--action getPlanList getBranch --project plan "ZTEMPLATE-CHECKOUT1" --regex branch "2.5.0"
--action getBranch --plan "ZTEMPLATE-CHECKOUT1.*" --options "includeBranchPlansbranch "Release 2.6.0"
getProject

getBranchList

--action getProject getBranchList --project plan "ZPROJECTS2960235ZTEMPLATE-CHECKOUT1"
getProjectList
--action getProjectList
--action getProjectList --project "ZPROJECTS2960235"
getRepository
getBranchList --plan "ZTEMPLATE-CHECKOUT1" --regex ".*2\\.5\\.0"

getBranchingOptions

--action getRepository getBranchingOptions --plan "ZTEMPLATEZCLI-checkout1BRANCHING"
--repository "cli" --outputFormat 999--action getRepository action getBranchingOptions --repository "zrepositories git"

getRepositoryList

--action getRepositoryListplan "ZCLI-BRANCHING" --verbose

getBuild

--action getRepositoryList getBuild --plan build "XXX-RemoveAndReplaceDEF" --action getRepositoryList dateFormat "yyyy--plan "ZBAMBOOCLI2811464-checkout1"
getRequirementList
MM-dd HH:mm:ss"
--action getRequirementList getBuild --plan build "ZCLIXXX-REQUIREMENTS" --job "JOB1DEF-1850"

getServerInfo

--action getServerInfogetBuild --action getServerInfo build "ZCREATE5074797-BB-outputFormat 2 3" --dateFormat "yyyy-MM-dd HH:mm:ss.SSS"

getBuildList

--action getServerInfo getBuildList ---outputFormat 999plan "ZCLI-BUILDLIST" --action getServerInfo limit 1 --outputFormat 999 --dateFormat issues "yyyy-MM-dd HH:mm:ssNOTFOUND-123"
--action getServerInfo getBuildList --user "anonymous"
getTask
plan "ZCLI-BUILDLIST" --limit 1 --outputFormat 999 --labels "not_found"
--action getTask getBuildList --plan "ZCLI-TASKSBUILDLIST" --job "JOB" limit 1 --outputFormat 999 --task "@alllabels "not_found,testlabel1"
--action getTask getBuildList --plan "ZCLI-TASKSBUILDLIST" --outputFormat 999 --job "JOB" --task "fileReferencecolumns "plan,duration description,labels,issues"
--action getBuildList --plan "ZCREATE5074797-BB"
--action getTask getBuildList --plan "ZCLIZCREATE5074797-TASKSBB" --job "JOB" --task 1

getTaskList

--action getTaskList dateFormat "yyyy-MM-dd HH:mm:ss.SSS" --outputFormat 999 --columns "build,number,state,started,completed"
--action getBuildList --plan "ZCLIZCREATE5074797-TASKSBB" --job field1 "JOBSTARTED"

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 ZDEPLOY2812580value1 "2023-11-10T08:33:40.296+0000" --outputFormat 2 --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
--action getBuildList --plan "ZCREATE5074797-BB" --field1 "notState" --value1 "UNKNOWN"
--action getBuildList --plan "ZCREATE5074797-BB" --field1 "sTaTe" --value1 "successful"
--action getBuildList --plan "ZCREATE5074797-BB" --field1 "started" --value1 "-24h" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
--action getBuildList --plan "ZCREATE5074797-BB" --field1 "started" --value1 "2023-11-10T08:31:14.803+0000" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
--action getBuildList --plan "ZCREATE5074797-BB" --field1 "started" --value1 "today" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
--action getBuildList --plan "ZCREATE5074797-BB" --outputFormat 999
--action getBuildList --plan "ZCREATE5074797-BB" --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getBuildList --plan "ZCREATE5074797-EMPTY"
--action getBuildList --plan "ZLONGRUNNING-AA"

getBuildLog

--action getBuildLog --build "ZCREATE5074797-BB-JOB"
--action getBuildLog --build "ZCREATE5074797-BB-JOB" --findReplaceRegex ".*?\\t.*?\\t(.*):\$1"
--action getBuildLog --build "ZCREATE5074797-BB-JOB" --regex "command.*"
--action getBuildLog --plan "ZCREATE5074797-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 "1850" --dateFormat "yyyy-MM-dd HH:mm:ss"

getDeploymentProject

--action getDeploymentProject --deploymentProject "Deploy ZDEPLOY5291168-BASE"

getDeploymentProjectList

--action getDeploymentProjectList

getEnvironment

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

getEnvironmentList

--action getEnvironmentList --field1 "@alldeploymentProject "Deploy ZDEPLOY5291168-BASE"
removeLabels

getEnvironmentNotificationList

--action removeLabels getEnvironmentNotificationList --build deploymentProject "XXXDeploy ZDEPLOY5291168-DEFBASE" --labels environment "test.*QA"

getEnvironmentRequirementList

--action removeLabels getEnvironmentRequirementList --build deploymentProject "XXXDeploy ZDEPLOY5291168-DEFBASE" --number -1 --labels ".*environment "QA"
--action removeLabels getEnvironmentRequirementList --build deploymentProject "XXXDeploy ZDEPLOY5291168-DEFBASE" --number environment "QA" -1 --labels "testlabel1, testlabel2, notfound" --continueid "208766060"

getEnvironmentTaskList

--action removeLabels getEnvironmentTaskList --plan deploymentProject "XXXDeploy ZDEPLOY5291168-DEFBASE" --labels environment ".*QA"
removeRepository

getEnvironmentTrigger

--action removeRepository getEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --id name "149487862After successful deployment"
--action removeRepository getEnvironmentTrigger --plan deploymentProject "XXXDeploy ZDEPLOY5291168-RemoveAndReplaceBASE" --repository environment "zrepositories gitQA" --options name "replaceRepository=cliScheduled"

getEnvironmentTriggerList

--action removeRepository getEnvironmentTriggerList --plan deploymentProject "ZBAMBOOCLI2811464Deploy ZDEPLOY5291168-checkout1BASE" --id environment "149487858QA"
removeTask

getEnvironmentVariableList

--action removeTask getEnvironmentVariableList --plan deploymentProject "ZBAMBOOCLI2811464Deploy ZDEPLOY5291168-RemoveTestingBASE" --job environment "JOB1" --task "@all"QA"

getJob

--action removeTask getJob --plan "ZBAMBOOCLI2811464ZCREATE5074797-checkout1CC" --job "JOB1"
--action getJob --id plan "2"

removeUser

--action removeUser --userId "NOT_FOUND"
removeVariables
ZCREATE5074797-CC" --job "JOBDocker"

getJobList

--action removeVariables getJobList --plan "ZCLIZCREATE5074797-VARIABLESAA" --field job "@all" --action removeVariables --project "ZCLIstage "My stage 1" --field columns "@allenabled,type"

renderRequest

--action renderRequest getJobList --build plan "XXXZCREATE5074797-DEFCC"
--file "output/render/renderRequestBuildNumber.txt" action getJobList --number plan "676ZCREATE5074797SCRIPT-PLAN"
--action renderRequest getJobList --build plan "XXXZCREATE5074797SCRIPT-DEFPLAN" --job "JOB1" --file "output/render/renderRequestConfig.txt" --url "/configregex "TEST2.*"
--action renderRequest getJobList --build plan "XXX-DEFZCREATE5074797SCRIPT-PLAN" --regex "TEST2.*" --columns "stage,job "JOB1" --file "output/render/renderRequestJob.txt"outputType "table"

getLabelList

--action renderRequest getLabelList --build "XXX-DEF" --job "JOB1" --file "output/render/renderRequestJobBuildNumber.txt" --number "676"number -1
--action getLabelList --plan "XXX-DEF"

getLatestBuildNumber

--action renderRequest getLatestBuildNumber --build "XXX-DEF-latest" "
--action getLatestBuildNumber --file "output/render/renderRequestBuild.txt"plan "ZLONGRUNNING-AA"

getNotificationList

--action renderRequest getNotificationList --build "XXX-DEF-latest" --file "output/render/renderRequestBuildLatest.txt"plan "ZCREATE5074797-NOTIFICATIONS"

getPlan

--action getPlan --plan "ZBAMBOOCLI4988851-checkout1" --verbose
--action renderRequest getPlan --file "output/render/renderRequestConfig2.txt" --url "/browse/XXX-DEF-JOB1/configplan "ZBAMBOOCLI4988851-checkout1Disable"
--action getPlan --plan "ZBAMBOOCLI4988851CLONE-checkout1"
--action renderRequest getPlan --plan project "XXX-DEFZBAMBOOCLI4988851CLONE" --file "output/render/renderRequestPlan.txtplan "ZBAMBOOCLI4988851CLONE-CHECKOUT1"

getPlanList

--action renderRequest getPlanList --plan "XXX-DEF" --job "JOB1" --file "output/render/renderRequestPlanJob.txtproject "@all" --excludeDisabled --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action renderRequest getPlanList --plan "XXX-DEF" --job "JOB1project "@all" --favorite
--action getPlanList --project "@all" --file "build/output/rendercreate/renderRequestPlanJobNumbergetPlanList.txt"
--action getPlanList --number project "676XXX" --excludeDisabled
--action renderRequest getPlanList --plan project "ZBAMBOOCLI2811464-checkout1XXX" --job "JOB1" --file "output/bamboocli/renderRequestBuildResultcheckout1.txt" --url "-2/logexcludeEnabled
--action getPlanList --project "ZCREATE5074797SCRIPT"
--action renderRequest getPlanList --verbose project "ZCREATE5074797SCRIPT" --quiet --url "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEFfield1 "notstate" --findReplaceRegex ".*(repositoryId=\\d+).*:\$1"
run
value1 "successful"
--action rungetPlanList --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.txtproject "ZCREATE5074797SCRIPT" --field1 "state" --value1 "failed"
--action getPlanList --project "ZMOVE4960837"
--action getPlanList --project "ZMOVE4960837XX"
--action getPlanList --project "ZTEMPLATE" --regex "ZTEMPLATE-CHECKOUT1.*" --options "includeBranchPlans"

getProject

--action getProject --project "ZPROJECTS5391424"

getProjectList

--action getProjectList
--action getProjectList --project "ZPROJECTS5391424"

getRepository

--action getRepository --plan "ZCREATE5074797-AA" --name "example"
--action getRepository --plan "ZTEMPLATE-checkout1" --repository "cli" --outputFormat 999

getRepositoryList

--action getRepositoryList
--action getRepositoryList --plan "ZBAMBOOCLI4988851-checkout1"
--action getRepositoryList --plan "ZCREATE5074797-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 999
--action getServerInfo --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getServerInfo --user "anonymous"

getStage

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

getStageList

--action getStageList --plan "ZCREATE5074797SCRIPT-PLAN"
--action getStageList --plan "ZCREATE5074797SCRIPT-PLAN" --regex "A.*"
--action getStageList --project "ZCREATE5074797SCRIPT" --plan "ZCREATE5074797SCRIPT-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 "ZCREATE5074797-BB" --job "JOB"

getTaskTypeList

--action getTaskTypeList
--action getTaskTypeList --regex "((.*Checkout)|(com.atlassian.bamboo.plugins.scripttask:task.builder.script))" --columns "name,key"

getTrigger

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

getTriggerList

--action getTriggerList --plan "ZCREATE5074797-AA"
--action getTriggerList --plan "ZCREATE5074797-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"

moveEnvironment

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

moveJob

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

movePlans

--action movePlans --plan "ZMOVE4960837-Base1" --toProject "ZMOVE4960837XX"
--action movePlans --project "ZMOVE4960837" --regex ".*[23]" --toProject "ZMOVE4960837XX"

moveStage

--action moveStage --plan "ZCREATE5074797SCRIPT-PLAN" --stage "A" --after "B updated"
--action moveStage --plan "ZCREATE5074797SCRIPT-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 "ZCREATE5074797-RepositoryOrdering" --repository "example2"
--action orderRepository --plan "ZCREATE5074797-RepositoryOrdering" --repository "example2" --after "cli"

queueBuild

--action queueBuild --build "XXX-DEF" --wait
--action queueBuild --build "XXX-FAIL" --wait --continue
--action queueBuild --build "ZBAMBOOCLI4988851-checkout1" --wait --continue
--action queueBuild --build "ZBAMBOOCLI4988851-checkout1" --wait --timeout 90 --field "exitCode=0" --verbose
--action queueBuild --build "ZBAMBOOCLI4988851-checkout1" --wait --timeout 90 --fields "exitCode: 0" --verbose
--action queueBuild --build "ZBAMBOOCLI4988851-notask" --wait --continue
--action queueBuild --plan "ZCREATE5074797-BB" --continue
--action queueBuild --plan "ZCREATE5074797-BB" --field1 "started" --value1 "2023-11-10T08:31:14.803+0000" --field2 "state" --value2 "SUCCESSFUL"
--action queueBuild --plan "ZCREATE5074797-BB" --field1 "started" --value1 "XXX-DEF"
--action queueBuild --plan "ZCREATE5074797-BB" --field1 "started" --value1 "ZCREATE5074797-BB-1"
--action queueBuild --plan "ZCREATE5074797-BB" --wait --continue
--action queueBuild --plan "ZCREATE5074797-EMPTY" --wait --continue
--action queueBuild --plan "ZDEPLOY5291168-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 "ZCREATE5074797-BB" --field1 "started" --value1 "2023-11-10T08:31:14.803+0000"
--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 "209518741"
--action removeAgent --id "209518741" --continue

removeAgentAssignment

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

removeArtifact

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

removeBuildHistory

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

removeEnvironmentNotification

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

removeEnvironmentRequirement

--action removeEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --id "208766060"

removeEnvironmentTask

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

removeEnvironmentVariables

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

removeJob

--action removeJob --plan "ZCREATE5074797-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 ".*"

removeRepository

--action removeRepository --id "208602031"
--action removeRepository --plan "ZBAMBOOCLI4988851-checkout1" --id "208602028"
--action removeRepository --plan "ZCREATE5074797SCRIPT-PLAN" --name "NOT_FOUND" --continue

removeTask

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

removeTrigger

--action removeTrigger --plan "ZCREATE5074797-AA" --id "-1"
--action removeTrigger --plan "ZCREATE5074797-AA" --id "2"
--action removeTrigger --plan "ZCREATE5074797-AA" --id "2" --continue
--action removeTrigger --plan "ZCREATE5074797-AA" --name "@all"
--action removeTrigger --plan "ZCREATE5074797-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 "build/output/render/renderRequestBuildNumber.txt" --number "1848"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "build/output/render/renderRequestConfig.txt" --url "/config"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "build/output/render/renderRequestJob.txt"
--action renderRequest --build "XXX-DEF" --job "JOB1" --file "build/output/render/renderRequestJobBuildNumber.txt" --number "1848"
--action renderRequest --build "XXX-DEF-latest" --file "build/output/render/renderRequestBuild.txt"
--action renderRequest --build "XXX-DEF-latest" --file "build/output/render/renderRequestBuildLatest.txt"
--action renderRequest --deploymentProject "Deploy ZDEPLOY5291168-BASE" --url "rest/api/latest/permissions/deployment/@deploymentProjectId@/groups/developers" --requestType "PUT" --type "JSON" --data "[\"READ\", \"VIEWCONFIGURATION\", \"WRITE\"]"
--action renderRequest --file "build/output/create/verifyTriggers.txt" --url "chain/admin/config/editChainTriggers.action" --requestParameters "buildKey=ZCREATE5074797-AA"
--action renderRequest --file "build/output/render/renderRequestConfig2.txt" --url "/browse/XXX-DEF-JOB1/config"
--action renderRequest --plan "XXX-DEF" --file "build/output/render/renderRequestPlan.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "build/output/render/renderRequestPlanJob.txt"
--action renderRequest --plan "XXX-DEF" --job "JOB1" --file "build/output/render/renderRequestPlanJobNumber.txt" --number "1848"
--action renderRequest --plan "ZBAMBOOCLI4988851-checkout1" --job "JOB1" --file "build/output/bamboocli/renderRequestBuildResultcheckout1.txt" --url "-2/log"
--action renderRequest --project "ZCREATE5074797" --url "rest/api/latest/permissions/projectplan/@project@/groups/developers" --requestType "PUT" --type "JSON" --data "[\"READ\", \"WRITE\", \"VIEWCONFIGURATION\", \"WRITE\", \"BUILD\", \"CLONE\", \"ADMINISTRATION\"]"
--action renderRequest --project "ZDEVELOPER4959040SCRIPT" --url "rest/api/latest/permissions/project/@project@/groups/developers" --requestType "PUT" --type "JSON" --data "[\"READ\", \"CREATE\"]"
--action renderRequest --url "rest/api/latest/admin/groups/developers/add-users" --requestType "POST" --type "JSON" --data "[\"developer\"]"
--action renderRequest --url "rest/api/latest/permissions/environment/209289535/groups/developers" --requestType "PUT" --type "JSON" --data "[\"READ\", \"WRITE\", \"BUILD\"]"
--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

run

--action run
--action run -i "-a getServerInfo --outputFormat 2 --outputType text" -i "-a getReplacementVariableList --outputType text"
--action run < /opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/run.txt
--action run --common "--deploymentProject \"Deploy ZDEPLOY5291168-BASE\" --environment QA" -i "-a addEnvironmentTask --taskKey SCRIPT --final --field scriptLocation=INLINE --field \"scriptBody=exit 0\"" -i "-a setReplacementVariables --field markId=@taskId@" -i "-a getEnvironmentTaskList --outputType text --columns id,name,taskkey,final,position " -i "-a addEnvironmentTask --taskKey SCRIPT --final --field scriptLocation=INLINE --field \"scriptBody=exit 0\"" -i "-a getEnvironmentTaskList --outputType text --columns id,name,taskkey,final,position" -i "-a moveEnvironmentTask --task @taskId@ --before @markId@ --final " -i "-a getEnvironmentTaskList --outputType text --columns id,name,taskkey,final,position"
--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 --field "project=ZEXPORT4985101" --field "plan=ZEXPORT4985101-DISABLE" --input "-a deletePlan --plan @plan@ --name DISABLE --continue " --input "-a createPlan --plan @plan@ --replace --options addDefaultJob --disable" --input "-a getPlanList --project @project@ --regex DISABLE --outputType text --columns project,plan,enabled" --input "-a addJob --plan @plan@ --stage \"@stage@\" --job JOB2 --disable --name job2 --description myDescription" --input "-a addJob --plan @plan@ --stage \"@stage@\" --job JOB3 --type docker --docker acli" --input "-a getJobList --plan @plan@ --stage \"@stage@\" --outputType text --columns plan,job,type,docker,enabled" --input "-a addStage --plan @plan@ --stage LAST --final --manual --description last " --input "-a exportJob --plan @plan@ --job JOB2" --input "-a exportJob --plan @plan@ --job JOB3" --input "-a exportPlan --plan @plan@" --input "-a deletePlan --plan @plan@ --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 "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/create-plan.txt" --findReplace "%PLAN%:ZCREATE5074797SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 5074797" --findReplace "%STAGE_DESCRIPTION%:First stage"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/developer.txt" --findReplace "%PLAN%:ZDEVELOPER4959040SCRIPT-PLAN" --findReplace "%PLAN_NAME%:Plan created by script by developer" --findReplace "%PLAN_DESCRIPTION%:Plan description" --findReplace "%PROJECT_NAME%:Project created by script 4959040" --findReplace "%STAGE_DESCRIPTION%:First stage" --findReplace "%AGENT%:Z Added 1"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/exportPlanCli.txt" --type "cli" --findReplace "999999:49851010099" --dateFormat "yyyy-MM-dd"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/exportPlanNotifications.txt" --findReplace "%plan%:XXX-Notifications"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/renderRequest.txt" --findReplace "@build@:XXX-DEF"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/run.txt"
--action run --file "build/output/deploy/exportDeploymentProject.txt" --findReplace "--name \"Deploy ZDEPLOY5291168-BASE\":--name \"Import Deploy ZDEPLOY5291168-BASE\""
--action run --file "build/output/export/exportPlanCli.txt" --type "cli" --findReplace "4985101:498510100" --dateFormat "yyyy-MM-dd"
--action run --file "build/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 ZCREATE5074797-RepositoryOrdering --repository example --options addDefaultJob,removeTrigger" --input "-a addRepository --plan @plan@ --name example2" --input "-a addRepository --plan @plan@ --name cli"
--action run --input "-a createPlan --plan ZEXPORT4985101-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 --description test --disable" --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 com.atlassian.bamboo.plugins.vcs:task.vcs.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 ARTIFACT_DOWNLOAD --field sourcePlanKey=@plan@ --field artifactId_1=out.txt --field artifactId_2=out.txt --field localPath_2=xxx" --input "-a addTask --plan @plan@ --job @job@ --taskKey SCRIPT --final --field scriptLocation=INLINE --field scriptBody=0 --disable" --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 JOB2" --input "-a addArtifact --plan @plan@ --job @job@ --artifact out3.txt --copyPattern out3.txt" --input "-a addArtifactDependency --plan @plan@ --job @job@ --artifact out.txt --location ." --input "-a addStage --plan @plan@ --stage FINAL --final"
--action run --input "-a addVariables createPlan --field \"aaa=AAA\" plan ZJOBS-AA --replace --options addDefaultJob" --input "-a getVariableList addJob --plan @plan@ -reference bamboo. -f stage \"@stage@\" " --job JOB2 -input "-a getClientInfo disable --comment @bamboo.aaa@"type DOCKER --action run docker xxx" --input "-a createPlan addJob --plan ZBUILDARTIFACTS-AA @plan@ --stage \"@stage@\" --replace job JOB3 --options addDefaultJobdisable" --input "-a addArtifact setJobIsolationOptions --plan @plan@ --job @job@ --artifact s1 --copyPattern s1.txt --shared --requiredJOB3 --type DOCKER --docker yyy --field hostDirectory_1=\${bamboo.working.directory} --field containerDirectory_1=\${bamboo.working.directory}" --input "-a addArtifact getPlan --plan @plan@" --job @job@ input "-a getStage -artifact s2 -plan @plan@ -copyPattern s2.txt --shared --required-stage \"@stage@\"" --input "-a addArtifact getJob --plan @plan@ --job @job@ --artifact j1 --copyPattern j1.txtJOB2" --input "-a addArtifact getJob --plan @plan@ --job @job@ --artifact j2 --copyPattern j2.txtJOB3" --input "-a addTask getJobList --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\" " columns \"stage,job,job name,full key,type,docker\" --outputFormat 999 --outputType text"
--action run --input "-a queueBuild createPlan --plan @plan@ ZCREATE5074797-EMPTY --repository example --wait replace --reference firstBuildoptions clear\"" --input "-a queueBuild setReplacementVariables --plan @plan@ field repository= --waitfield repositoryId=" --input "-a getArtifactList getReplacementVariableList" --build @build@ input "--columns producer,name,shared --outputType text" --input "-a getArtifactList --build @plan@-JOB1 --columns producer,name,shared --outputType texta createPlan --plan ZCREATE5074797-EMPTY --repository example --replace --options clear" --input "-a getReplacementVariableList" --input "-a removeBuildArtifacts exportPlan --build @build@ plan ZCREATE5074797-EMPTY"
--job JOB1" action run --input "-a getArtifactList createPlan --plan ZLONGRUNNING-AA -build @build@ --columns producer,name,shared --outputType text-replace --options addDefaultJob" --input "-a getArtifactList addTask --build plan @plan@ -JOB1 --columns producer,name,shared --outputType text--job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=sleep 20s\" " --input "-a removeBuildArtifacts addStage --plan @plan@ --stage SECOND --build @build@manual" --input "-a getArtifactList addJob --build @build@ plan @plan@ --columns producer,name,shared stage @stage@ --outputType textjob JOB2" --input "-a getArtifactList addTask --build plan @plan@ -JOB1 --columns producer,name,shared --outputType text-job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field \"scriptBody=exit 0\" " --input "-a removeBuildHistory a addStage --plan @plan@ --stage THIRD --build @build@manual" --input "-a removeBuildHistory addJob --plan @plan@ --build @build@ stage @stage@ --continuejob JOB3" --input "-a removeBuildArtifacts addTask --build @firstBuild@" plan @plan@ --input "job @job@ -a getArtifactList -taskKey SCRIPT -build @firstBuild@ --columns producer,name,shared --outputType text-field scriptLocation=INLINE --field \"scriptBody=exit 0\" " --input "-a getArtifactList addStage --build @firstBuild@ plan @plan@ --job JOB1 stage FOURTH --columns producer,name,shared --outputType text"--action run manual" --input "-a createPlan addJob --plan ZCLI@plan@ --TASKS stage @stage@ --replacejob JOB4" --input "-a addVariables addTask --plan @plan@ --job @job@ --taskKey SCRIPT --field scriptLocation=INLINE --field exitCode --value 0" \"scriptBody=exit 0\" "
--action run --input "-a addStage createPlan --plan @plan@ \"ZCREATE5074797-add default job\" --stage FIRSToptions addDefaultJob" --input "-a addJob addTask --plan @plan@ --stage @stage@ job @job@ --job JOBtaskKey CLEAN" --input "-a runFromList --list ,BBB,CCC,DDD,EEE --list2 ,--disable --common \"-a addTask --updatePlan --plan @plan@ --job @job@ --taskKey SCRIPT --description \"@entry@\" @entry2@ --field scriptLocation=INLINE --field scriptBody=xxxUpdate with a description\"" --input "-a addTask getPlan --plan @plan@"
--job @job@ action run --taskKey SCRIPT input "-a deletePlan -description FFF --field scriptLocation=INLINE --field scriptBody=xxx --final -vplan ZJOBS-CLONE --continue" --input "-a addJob createPlan --plan @plan@ ZJOBS-CLONE --stage @stage@ replace --job JOB2options addDefaultJob" --action run --input "-a createPlan addTask --plan ZEXPORT2813417@plan@ -Export --description \"Export plan\" --replace --options addDefaultJobjob @job@ --taskKey CLEAN" --input "-a addRepository getJob --plan @plan@ --repository clijob @job@" --input "-a addBranch cloneJob --plan @plan@ --branch 2.5.0--job @job@ --name \"cloned job\" --description xxx" --input "-a addVariables getJob --plan @plan@ --field v1=xxxjob @job@" --input "-a addTrigger cloneJob --plan @plan@ --type scheduled --schedule 9:35job @job@ --toJob \"cloned job2\"" --input "-a addTrigger getJob --plan @plan@ --type pollingjob @job@" --input "-a addTrigger cloneJob --plan @plan@ --type remoteXXX-DEF --job JOB1 --toPlan @plan@ --toJob newJob --stage NewStage --autoStage" --input "-a addNotification getJob --plan @plan@ --event \"All Builds Completed\" --recipientType user --field notificationUserString=automation" --job @job@"
--action run --input "-a addNotification exportJob --plan @plan@ ZEXPORT4985101--event \"All Builds Completed\" --recipientType webhook --recipient \"build webhook\" --url https://example.gear.comExport --job SCRIPT -f build/output/export/scriptJob.cli" --input "-a run -f build/output/export/scriptJob.cli" --input "-a addArtifact getTask --plan @plan@ ZEXPORT4985101-Export --job @job@ SCRIPT --artifact out.txt --copyPattern out.txt --sharedtask 1" --input "-a addArtifact getTask --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 JOB2" --input "-a addArtifact --plan @plan@ --job @job@ --artifact out3.txt --copyPattern out3.txt" --input "-a addArtifactDependency --plan @plan@ --job @job@ --artifact out.txt --location ."
--action run --input "-a createPlan --plan ZJOBS-AA --replace --options addDefaultJob" --input "-a addJob --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 "/zdockerZEXPORT4985101-Export --job SCRIPT --task 2"
--action run --verbose
--action run --verbose --common "--deploymentProject \"Deploy ZDEPLOY5291168-BASE\" --environment ENV" -i "-a addEnvironment" -i "-a addArtifact --plan ZDEPLOY5291168-BASE --job JOB --artifact out --copyPattern out.txt --shared" -i "-a addArtifact --plan ZDEPLOY5291168-BASE --job JOB --artifact out2 --copyPattern out2.txt --shared" -i "-a addEnvironmentTask --taskKey ARTIFACT_DOWNLOAD --description \"task description\"" -i "-a getEnvironmentTaskList --outputType text --columns deploymentprojectname,environmentname,environmentid,id,description,enabled,final --options tableNoWrap" -i "-a updateEnvironmentTask --task 3 --description \"new task description\" --field localPath_0=xxx" -i "-a updateEnvironmentTask --task 3 --disable --final --field artifactId_1=out --field artifactId_0=-1 --field artifactId_2=out2 " -i "-a getEnvironmentTaskList --outputType text --columns deploymentprojectname,environmentname,environmentid,id,description,enabled,final --options tableNoWrap"
--action run --verbose --common "--plan ZCLI-EXAMPLES2 --job JOB1" -i "-a createPlan --replace --options addDefaultJob --options clear" -i "-a addArtifact --artifact out --copyPattern out.txt --shared" -i "-a addArtifact --artifact out2 --copyPattern out2.txt --shared" -i "-a addTask --taskKey ARTIFACT_DOWNLOAD --description \"task description\" " -i "-a getTaskList --outputType text --columns project,plan,job,id,description,enabled,final --options tableNoWrap" -i "-a updateTask --task 1 --description \"new task description\" --field localPath_0=xxx " -i "-a updateTask --task 1 --disable --final --artifact out --field artifactId_0=-1 --field artifactId_2=out2" -i "-a getTaskList --outputType text --columns project,plan,job,id,description,enabled,final --options tableNoWrap" -i "-a exportJob" -i "-a updateTask --task 1 --disable" -i "-a exportJob" -i "-a updateTask --task 1 --final --field artifactId_0=-1" -i "-a exportJob" -i "-a updateTask --task 1 --artifact out2" -i "-a exportJob"

runFromAgentList

--action runFromAgentList --common "-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 "ZCREATE5074797-BB" --field "endedBefore=2023-11-10 08:33:27.217" --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 ZDEPLOY5291168-BASE" --common "-a getEnvironment --deploymentProject ~Deploy ZDEPLOY5291168-BASE~ --environment @environmentId@" --special " ~"

runFromEnvironmentRequirementList

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

runFromEnvironmentTriggerList

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

runFromJobList

--action runFromJobList --plan "ZCREATE5074797SCRIPT-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 "ZCREATE5074797SCRIPT-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 build/output/runner/runFromListAppendAndColumn.txt --append --columns 1,2"
--action runFromList --list "Client, Server" --common "-a get@entry@Info"

runFromPlanList

--action runFromPlanList --project "@aLL" --common "-a getServerInfo --comment ~project: @project@, name: @projectName@, plan: @plan@~" --special " ~" --limit 7
--action runFromPlanList --project "ZCREATE5074797SCRIPT" --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 --options "legacy" --file "/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/run.sql" --database "@database-test"
--action runFromSql --sql "@/opt/atlassian/pipelines/agent/build/src/itest/bamboo/resources/run.sql" -i "@?column?@" --database "@database-test"

runFromStageList

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

runFromTaskList

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

runFromTriggerList

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

runFromUserList

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

setDependencyOptions

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

setFavoritePlan

--action setFavoritePlan --plan "ZCREATE5074797-AA"

unsetFavoritePlan

--action unsetFavoritePlan --plan "ZCREATE5074797-AA"

updateCapability

--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 "z Ant" --value "/ant" --agent "zcapabilities" --name "z Ant"
--action updateCapability --capability "Dockerz Ant" --value "/zdockerant" --agent name "zcapabilitiesz Ant"
--action updateCapability --capability "Perforce Executablez GW" --value "/zperforcegw" --agent "zcapabilities" --name "z GW"
--action updateCapability --capability "Perforce Executablez GW" --value "/zperforcegw" --agent name "zcapabilitiesz GW"
--action updateCapability --capability "system.git.executable.sshz JDK" --value "/zgitsshjdk" --agent "zcapabilities" --options name "sshz JDK"
--action updateCapability --capability "system.git.executable.sshz JDK" --value "/zgitsshjdk" --options name "sshz JDK"
--action updateCapability --capability "system.hg.executable.sshz custom 1" --value "/zhgsshxxx" --agent "zcapabilities" --options name "sshz custom 1"
--action updateCapability --capability "system.hg.executable.sshz custom 1" --value "/zhgsshxxx" --options name "sshz custom 1"

updateEnvironmentRequirement

--action updateCapability --capability "z Ant" --value "/ant" --agent "zcapabilities" --name "z AntupdateEnvironmentRequirement --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --id "208766060" --type "MATCHES" --value "zzz"

updateEnvironmentTask

--action updateEnvironmentTask --deploymentProject "Deploy ZDEPLOY5291168-BASE" --environment "QA" --task "4" --fields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --field "scriptBody = 0 // updated"
--action updateCapability updateEnvironmentTask --capability "z AntdeploymentProject "Deploy ZDEPLOY5291168-BASE" --value environment "/antQA" --name task "z AntGroovy" --action updateCapability --capability "z GWfields "label:Groovy,buildJdk:JDK,scriptLocation:INLINE" --value field "scriptBody = 0 /gw" / updated"

updateEnvironmentVariables

--action updateEnvironmentVariables --agent "zcapabilitiesdeploymentProject "Deploy ZDEPLOY5291168-BASE" --name environment "z GWQA" --action updateCapability append --capability "z GWfield "Zv.a = ' APPENDED_TEXT WITH BLANK'" --value "/gw" --name "z GW"field "Zv.1 = APPENDED_TEXT"

updatePlan

--action updateCapability updatePlan --capability "z JDKplan "ZCREATE5074797-AA" --value description "/jdkUpdated"

updateStage

--agent "zcapabilitiesaction updateStage --plan "ZCREATE5074797SCRIPT-PLAN" --name stage "z JDKB updated"
--action updateCapability updateStage --capability "z JDKplan "ZCREATE5074797SCRIPT-PLAN" --value stage "/jdkB" --name "z JDK"manual --action updateCapability final --capability "z custom 1name "B updated" --value description "xxx" --agent "zcapabilitiesUpdated description"

updateTask

--action updateTask --plan "ZBAMBOOCLI4988851-checkout1" --name job "z custom 1JOB1" --action updateCapability --capability "z custom 1id "2" --value description "xxxtask description" --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:fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} " --taskKey "SCRIPT"
--action updateTask --plan "ZCREATE5074797-BB" --job "JOB" --description "Fail" --taskKey "SCRIPT" --field "scriptLocation = INLINE" --field "scriptBody = 0 // updated"
updateEnvironmentVariables
exit 1" --disable --id "4" --final
--action updateEnvironmentVariables updateTask --plan "ZCREATE5074797-BB" --deploymentProject "Deploy ZDEPLOY2812580-BASEjob "JOB" --environment description "QAFail" --append taskKey "SCRIPT" --field "Zv.a = ' APPENDED_TEXT WITH BLANK'scriptLocation = INLINE" --field "Zv.1 = APPENDED_TEXT"
updateTask
scriptBody = exit 1" --id "3"
--action updateTask --plan "ZBAMBOOCLI2811464ZCREATE5074797-checkout1BB" --job "JOB1JOB" --id "2" --description "task descriptionLong" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvvtaskKey "SCRIPT" --field1 field "scriptLocation " --value1 "= INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} field "scriptBody = sleep 30s exit 1" --taskKey id "SCRIPT2"

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-6781850" --wait
--action verifyBuild --build "ZBAMBOOCLI2811464ZBAMBOOCLI4988851-checkout1"
--action verifyBuild --plan "ZLONGRUNNING-AA" --wait --timeout 40
Excerpt
Table of Contents
maxLevel1
absoluteUrltrue