Command
bamboo --action removeRepository --name "global (delete me)"
bamboo --action removeRepository --name "global updated (delete me)"
bamboo --action removeRepository --name "cli-ssh"
bamboo --action getProjectList --file "target/output/bamboocli/deleteProjects.txt" --regex "ZBAMBOOCLI.*" --columns "key"
bamboo --action clonePlan --build "ZTEMPLATE-checkout1" --file "target/output/bamboocli/clonePlancheckout1.txt" --toPlan "ZBAMBOOCLI1755078-checkout1" --name "Clone of checkout1" --description "Created based on ZTEMPLATE-checkout1"
bamboo --action getPlan --plan "ZBAMBOOCLI1755078-checkout1" --verbose
bamboo --action clonePlan --build "ZTEMPLATE-checkout1" --file "target/output/bamboocli/clonePlancheckout1Disable.txt" --toPlan "ZBAMBOOCLI1755078-checkout1Disable" --disable
bamboo --action getPlan --plan "ZBAMBOOCLI1755078-checkout1Disable"
bamboo --action disablePlan --build "ZBAMBOOCLI1755078-checkout1"
bamboo --action enablePlan --build "ZBAMBOOCLI1755078-checkout1"
bamboo --action queueBuild --build "ZBAMBOOCLI1755078-checkout1" --wait --continue
bamboo --action clonePlan --build "ZTEMPLATE-notask" --file "target/output/bamboocli/clonePlannotask.txt" --toPlan "ZBAMBOOCLI1755078-notask" --name "Clone of notask" --description "Created based on ZTEMPLATE-notask"
bamboo --action clonePlan --build "ZTEMPLATE-notask" --file "target/output/bamboocli/clonePlannotaskDisable.txt" --toPlan "ZBAMBOOCLI1755078-notaskDisable" --disable
bamboo --action disablePlan --build "ZBAMBOOCLI1755078-notask"
bamboo --action enablePlan --build "ZBAMBOOCLI1755078-notask"
bamboo --action queueBuild --build "ZBAMBOOCLI1755078-notask" --wait --continue
bamboo --action clonePlan --plan "ZTEMPLATE-checkout1" --file "target/output/bamboocli/clonePlanRemoveTesting.txt" --toPlan "ZBAMBOOCLI1755078-RemoveTesting" --name "Remove testing"
bamboo --action disableProject --project "ZBAMBOOCLI1755078"
bamboo --action enableProject --project "ZBAMBOOCLI1755078"
bamboo --action addTask --plan "ZBAMBOOCLI1755078-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} "
bamboo --action updateTask --plan "ZBAMBOOCLI1755078-checkout1" --job "JOB1" --id "2" --description "task description" --fields "argument:aaaaa,environmentVariables:eeeee=vvvvv" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "echo 'exitCode: \${bamboo.exitCode}'; exit \${bamboo.exitCode} " --taskKey "SCRIPT"
bamboo --action addTask --plan "ZBAMBOOCLI1755078-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} "
bamboo --action queueBuild --build "ZBAMBOOCLI1755078-checkout1" --wait --timeout 90 --fields "exitCode: 0" --verbose
bamboo --action verifyBuild --build "ZBAMBOOCLI1755078-checkout1"
bamboo --action renderRequest --plan "ZBAMBOOCLI1755078-checkout1" --job "JOB1" --file "target/output/bamboocli/renderRequestBuildResultcheckout1.txt" --request "-2/log"
bamboo --action queueBuild --build "ZBAMBOOCLI1755078-checkout1" --wait --timeout 90 --field1 "exitCode" --value1 "0" --verbose
bamboo --action removeTask --plan "ZBAMBOOCLI1755078-checkout1" --job "JOB1" --id "2"
bamboo --action removeTask --plan "ZBAMBOOCLI1755078-RemoveTesting" --job "JOB1" --task "@all"
bamboo --action addRepository --plan "ZBAMBOOCLI1755078-checkout1" --repositoryKey "GIT" --name "groovy" --fields "repository.git.repositoryUrl:'https://code.examplegear.com/scm/public/groovy-2.1.2.git',repository.git.authenticationType:NONE,repository.git.username:,repository.git.password:,repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"
bamboo --action addRequirement --plan "ZBAMBOOCLI1755078-checkout1" --job "JOB1" --requirement "system.builder.ant.Ant"
bamboo --action addRequirement --plan "ZBAMBOOCLI1755078-checkout1" --job "JOB1" --requirement "my-custom-requirement" --type "equal" --value "mine"
bamboo --action updateRepository --plan "ZBAMBOOCLI1755078-checkout1" --id "77564205" --name "groovy updated" --fields "repository.git.repositoryUrl:'https://code.examplegear.com/scm/public/groovy-2.1.2.git'"
bamboo --action removeRepository --plan "ZBAMBOOCLI1755078-checkout1" --id "77564205"
bamboo --action addRepository --name "global (delete me)" --repositoryKey "GIT" --fields "repository.git.repositoryUrl:'https://code.examplegear.com/scm/public/groovy-2.1.2.git',repository.git.authenticationType:NONE,repository.git.username:,repository.git.password:,repository.git.branch:master,repository.git.commandTimeout:2,selectedWebRepositoryViewer:'bamboo.webrepositoryviewer.provided:noRepositoryViewer'"
bamboo --action addRepository --name "global (delete me)" --repositoryKey "GIT" --fields "repository.git.repositoryUrl:'https://code.examplegear.com/scm/public/groovy-2.1.2.git'" --replace
bamboo --action updateRepository --id "77564206" --name "global updated (delete me)" --fields "repository.git.repositoryUrl:'https://code.examplegear.com/scm/public/groovy-2.1.2.git'"
bamboo --action removeRepository --id "77564206"
bamboo --action getRepository --plan "ZTEMPLATE-checkout1" --repository "groovy-task"
bamboo --action getRepositoryList
bamboo --action getRepositoryList --plan "ZBAMBOOCLI1755078-checkout1"
bamboo --action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI1755078CLONE"
bamboo --action getPlan --project "ZBAMBOOCLI1755078CLONE" --plan "ZBAMBOOCLI1755078CLONE-CHECKOUT1"
bamboo --action cloneProject --project "ZTEMPLATE" --toProject "ZBAMBOOCLI1755078CLONEDisable" --disable
bamboo --action getPlan --plan "ZBAMBOOCLI1755078CLONE-checkout1"
bamboo --action getServerInfo
bamboo --action getServerInfo --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
bamboo --action validateLicense
bamboo --action getClientInfo
bamboo --action getBuild --build "XXX-DEF" --dateFormat "yyyy-MM-dd HH:mm:ss"
bamboo --action queueBuild --build "XXX-DEF" --wait
bamboo --action queueBuild --build "XXX-FAIL" --wait --continue
bamboo --action getLatestBuildNumber --build "XXX-DEF"
bamboo --action getBuild --build "XXX-DEF-880"
bamboo --action verifyBuild --build "XXX-DEF-880"
bamboo --action getArtifact --file "target/output/bamboocli/getArtifact.txt" --build "XXX-DEF" --artifact "notices" --job "JOB1"
bamboo --action getArtifact --job "JOB1" --file "target/output/bamboocli/getArtifactWithResultName.txt" --build "XXX-DEF-880" --artifact "notices"
bamboo --action getArtifact --file "target/output/bamboocli/getArtifactJobAll.txt" --build "XXX-DEF" --artifact "notices" --job "@ALL"
bamboo --action getArtifact --file "target/output/bamboocli/getArtifactWithPath.txt" --build "XXX-DEF" --artifact "src/itest/groovy/cli.gant"
bamboo --action getArtifact --file "target/output/bamboocli" --build "XXX-DEF" --artifact "src" --replace
bamboo --action getArtifact --file "target/output/bamboocli" --build "XXX-DEF" --artifact "src/main" --replace
bamboo --action getArtifactList --build "XXX-DEF"
bamboo --action getArtifactList --build "XXX-DEF" --job "JOB1"
bamboo --action getArtifactList --build "XXX-DEF" --job "@all" --regex "not.*"
bamboo --action getProjectList
bamboo --action getBuildQueueList
bamboo --action getBuildQueueList --project "ZBAMBOOCLI1755078"
bamboo --action getBuildQueueList --build "XXX-DEF"
bamboo --action addComment --build "XXX-DEF" --comment "This is a comment added by automation"
bamboo --action addComment --build "XXX-DEF" --number "880" --file "src/itest/resources/data.txt" --findReplace "xxx:yyy"
bamboo --action getCommentList --build "XXX-DEF" --number "880"
bamboo --action removeLabels --build "XXX-DEF" --number -1 --labels "notfound"
bamboo --action addLabels --build "XXX-DEF" --number -1 --labels "testlabel1 testlabel2"
bamboo --action getLabelList --build "XXX-DEF" --number -1
bamboo --action removeLabels --build "XXX-DEF" --number -1 --labels ".*"
bamboo --action removeLabels --build "XXX-DEF" --number -1 --labels "testlabel1, testlabel2, notfound"
bamboo --action addLabels --labels "morelabel1" --searchLabels "testlabel1 testlabel2"
bamboo --action removeLabels --labels "morelabel1" --searchLabels "testlabel1,testlabel2"
bamboo --action addLabels --build "XXX-DEF" --labels "testlabel1, testlabel2"
bamboo --action removeLabels --build "XXX-DEF" --labels "test.*"
bamboo --action renderRequest --build "XXX-DEF" --file "target/output/bamboocli/renderRequestBuild.txt"
bamboo --action renderRequest --build "XXX-DEF" --job "JOB1" --file "target/output/bamboocli/renderRequestJob.txt"
bamboo --action renderRequest --build "XXX-DEF" --job "JOB1" --file "target/output/bamboocli/renderRequestConfig.txt" --request "/config"
bamboo --action renderRequest --file "target/output/bamboocli/renderRequestConfig2.txt" --request "/browse/XXX-DEF-JOB1/config"
bamboo --action run --file "src/itest/resources/renderRequest.txt" --findReplace "<at:var at:name="build" />@build@:XXX-DEF"
bamboo --action renderRequest --verbose --quiet --request "/chain/admin/config/editChainRepository.action?buildKey=XXX-DEF" --findReplaceRegex ".*(repositoryId=\d+).*:\$1"
bamboo --action removeVariables --plan "ZBAMBOOCLI1755078-RemoveTesting" --field1 "@all" --value1 "xx"
bamboo --action addVariables --plan "ZBAMBOOCLI1755078-RemoveTesting" --fields "Zv.a:value a,Zv.b:value b" --field1 "Zv.1" --value1 "value 1 1755078" --field2 "Zv_2" --value2 "value 2 :;<>,.?/~#$%^&*()_+'" --field3 "ZPLANpassword" --value3 "XXX" --replace
bamboo --action getVariableList --plan "ZBAMBOOCLI1755078-RemoveTesting"
bamboo --action addVariables --fields "Zv.a:value a,Zv.b:value b" --field1 "Zv.1" --value1 "value 1 1755078" --field2 "Zv_2" --value2 "value 2 :;<>,.?/~#$%^&*()_+'" --field3 "ZGLOBALpassword" --value3 "XXX" --replace
bamboo --action getVariableList
bamboo --action deletePlan --build "ZBAMBOOCLI1755078-notask" --verbose
bamboo --action removeBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0"
bamboo --action removeBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "@all"
bamboo --action deleteDeploymentProject --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1"
bamboo --action addBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --description "Branch for tag 2.5.0" --enable
bamboo --action addBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.6.0"
bamboo --action getBranch --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0"
bamboo --action getBranchList --plan "ZTEMPLATE-CHECKOUT1"
bamboo --action getBranchList --plan "ZTEMPLATE-CHECKOUT1" --regex ".*2.5.0"
bamboo --action queueBuild --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --wait
bamboo --action createDeploymentProject --plan "ZTEMPLATE-CHECKOUT1" --branch "2.5.0" --name "Deploy ZTEMPLATE-CHECKOUT1"
bamboo --action addEnvironment --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --name "QA"
bamboo --action addEnvironmentTask --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --environment "QA" --taskKey "SCRIPT" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"
bamboo --action deployEnvironment --deploymentProject "Deploy ZTEMPLATE-CHECKOUT1" --environment "QA" --version "1.0.0"
bamboo --action removeAgent --agent "Z Added 1" --verbose
bamboo --action removeAgent --agent "Z Added 2" --verbose
bamboo --action removeAgent --agent "Z Added 3" --verbose
bamboo --action getProjectList --file "target/output/create/deleteProjects.txt" --regex "ZCREATE.*" --columns "key"
bamboo --action createPlan --plan "ZCREATE2079466-AA" --projectName "ZCREATE2079466 created project"
bamboo --action createOrUpdatePlan --plan "ZCREATE2079466-AA" --description "Updated"
bamboo --action createOrUpdatePlan --plan "ZCREATE2079466-EMPTY" --projectName "ZCREATE2079466 created project"
bamboo --action addStage --plan "ZCREATE2079466-AA" --stage "My stage 1" --description "My stage description"
bamboo --action createPlan --plan "ZCREATE2079466-BB" --name "Simple plan BB" --description "Simple plan BB description"
bamboo --action addStage --plan "ZCREATE2079466-BB" --stage "Stage 1"
bamboo --action addStage --plan "ZCREATE2079466-AA" --name "My stage 2" --description "My stage description"
bamboo --action setDependencyOptions --plan "ZCREATE2079466-AA" --childPlans "ZCREATE2079466-BB, ZCREATE2079466-EMPTY"
bamboo --action addJob --plan "ZCREATE2079466-AA" --name "my job 1" --stage "My stage 1" --job "myjob"
bamboo --action addJob --plan "ZCREATE2079466-AA" --description "My job 1 description" --stage "My stage 1" --job "my job another"
bamboo --action disableJob --plan "ZCREATE2079466-AA" --job "myjob"
bamboo --action enableJob --plan "ZCREATE2079466-AA" --job "myjob"
bamboo --action addJob --plan "ZCREATE2079466-BB" --job "JOB1" --stage "Stage 1"
bamboo --action addArtifact --plan "ZCREATE2079466-AA" --job "myjob" --artifact "jar" --location "target" --copyPattern "**/*.jar" --shared
bamboo --action addArtifact --plan "ZCREATE2079466-AA" --job "myjob" --artifact "remove me" --location "target" --copyPattern "**/*.jar"
bamboo --action removeArtifact --plan "ZCREATE2079466-AA" --job "myjob" --artifact "remove me"
bamboo --action getArtifactDefinitionList --plan "ZCREATE2079466-AA"
bamboo --action addTask --plan "ZCREATE2079466-AA" --job "myjob" --taskKey "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} "
bamboo --action addTask --plan "ZCREATE2079466-AA" --job "myjobanother" --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} "
bamboo --action addTask --plan "ZCREATE2079466-BB" --job "JOB1" --description "Success" --taskKey "SCRIPT" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "exit 0"
bamboo --action addTask --plan "ZCREATE2079466-BB" --job "JOB1" --description "Long" --taskKey "SCRIPT" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "sleep 30s
exit -1" --disable
bamboo --action addTask --plan "ZCREATE2079466-BB" --job "JOB1" --description "Fail" --taskKey "SCRIPT" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "exit -1" --disable
bamboo --action getTaskList --plan "ZCREATE2079466-BB" --job "JOB1"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Scheduled" --schedule "9:35"
bamboo --action addRepository --plan "ZCREATE2079466-AA" --name "example" --description "example"
bamboo --action getRepository --plan "ZCREATE2079466-AA" --name "example"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Polling"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Polling" --description "polling trigger interval" --repository "example" --schedule "3600"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Polling" --description "polling trigger scheduled" --repository "example" --schedule "2 0 0 ? * *"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Remote" --description "remote trigger" --repository "example"
bamboo --action addTrigger --plan "ZCREATE2079466-AA" --type "Remote" --description "remote trigger restricted" --repository "example" --ipRestriction "172.16.9.25,172.16.9.26"
bamboo --action renderRequest --file "target/output/create/verifyTriggers.txt" --request "chain/admin/config/editChainTriggers.action" --requestParameters "buildKey=ZCREATE2079466-AA"
bamboo --action removeTrigger --plan "ZCREATE2079466-AA" --id "2" --verbose
bamboo --action removeTrigger --plan "ZCREATE2079466-AA" --id "-1"
bamboo --action run --file "src/itest/resources/create-plan.txt" --findReplace "%PLAN%:ZCREATE2079466SCRIPT-PLAN,%PLAN_NAME%:Plan created by script,%PLAN_DESCRIPTION%:Plan description,%PROJECT_NAME%:Project created by script 2079466,%STAGE_DESCRIPTION%:First stage"
bamboo --action run
bamboo --action run --file "src/itest/resources/create-plan-standard-tasks.txt" --findReplace "%project%:ZCREATE2079466,%plan%:STANDARDTASKSFROMLIST"
bamboo --action setFavoritePlan --plan "ZCREATE2079466-AA"
bamboo --action getPlanList --project "@all" --favorite
bamboo --action unsetFavoritePlan --plan "ZCREATE2079466-AA"
bamboo --action getPlanList --project "@all" --file "target/output/create/getPlanList.txt"
bamboo --action getPlanList --project "ZCREATE2079466SCRIPT"
bamboo --action getPlanList --project "XXX" --excludeDisabled
bamboo --action getPlanList --project "XXX" --excludeEnabled
bamboo --action getBuildList --plan "ZCREATE2079466-EMPTY"
bamboo --action queueBuild --plan "ZCREATE2079466-EMPTY" --wait --continue
bamboo --action queueBuild --plan "ZCREATE2079466-BB" --wait --continue
bamboo --action queueBuild --plan "ZCREATE2079466-BB" --field1 "started" --value1 "2017-05-24T11:07:59.471-0500" --field2 "state" --value2 "SUCCESSFUL"
bamboo --action queueBuild --plan "ZCREATE2079466-BB" --field1 "started" --value1 "XXX-DEF"
bamboo --action queueBuild --plan "ZCREATE2079466-BB" --field1 "started" --value1 "ZCREATE2079466-BB-1"
bamboo --action queueBuildFromList --list "ZCREATE2079466-BB" --field1 "started" --value1 "2017-05-24T11:07:59.471-0500"
bamboo --action getBuildList --plan "ZCREATE2079466-BB"
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "notState" --value1 "UNKNOWN"
bamboo --action updateTask --plan "ZCREATE2079466-BB" --job "JOB1" --description "Fail" --taskKey "SCRIPT" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "exit -1" --id "3"
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
bamboo --action updateTask --plan "ZCREATE2079466-BB" --job "JOB1" --description "Long" --taskKey "SCRIPT" --field1 "scriptLocation" --value1 "INLINE" --field2 "scriptBody" --value2 "sleep 30s
exit -1" --id "2"
bamboo --action queueBuild --plan "ZCREATE2079466-BB" --continue
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --outputFormat 999
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "sTaTe" --value1 "successful"
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "started" --value1 "2017-05-24T11:07:59.471-0500" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "started" --value1 "today" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "started" --value1 "-24h" --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ" --verbose
bamboo --action getBuildList --plan "ZCREATE2079466-BB" --field1 "STARTED" --value1 "2017-05-24T11:10:39.938-0500" --outputFormat 2 --dateFormat "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
bamboo --action getPlanList --project "@all" --excludeDisabled --outputFormat 999 --dateFormat "yyyy-MM-dd HH:mm:ss"
bamboo --action getStage --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN" --stage "B"
bamboo --action updateStage --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN" --stage "B" --manual --name "B updated" --description "Updated description"
bamboo --action getStage --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN" --stage "B updated"
bamboo --action getStageList --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN"
bamboo --action getStageList --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN" --regex "A.*"
bamboo --action getJobList --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN"
bamboo --action getJobList --project "ZCREATE2079466SCRIPT" --plan "ZCREATE2079466SCRIPT-PLAN" --regex "TEST2.*"
bamboo --action addAgent --agent "Z Added 1" --description "Agent added by 2079466"
bamboo --action getAgentList
bamboo --action getAgentList --outputFormat 2
bamboo --action addAgent --agent "Z Added 2"
bamboo --action disableAgent --agent "Z Added 2"
bamboo --action enableAgent --agent "Z Added 2"
bamboo --action runFromAgentList --common "-a getServerInfo --comment ~agent: <at:var at:name="agent" />@agent@, id: <at:var at:name="agentId" />~"@agentId@~" --regex "Z Added .*" --special " ~"
bamboo --action removeAgent --agent "Z Added 2"
bamboo --action removeAgent --agent "Z Added 2" --continue
bamboo --action addAgent --agent "Z Added 3"
bamboo --action getAgentList --regex "Z Added 3" --columns "id"
bamboo --action removeAgent --id "78643392"
bamboo --action removeAgent --id "78643392" --continue
bamboo --action addAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466"
bamboo --action addAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA"
bamboo --action addAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA-MYJOB"
bamboo --action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466"
bamboo --action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA"
bamboo --action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA" --continue
bamboo --action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA-myJob"
bamboo --action removeAgentAssignment --agent "Z Added 1" --assignment "ZCREATE2079466-AA-myJob" --continue
bamboo --action runFromProjectList --common "-a getServerInfo --comment ~project: <at:var at:name="project" />@project@, name: <at:var at:name="projectName" />~" @projectName@~" --limit 2 --special " ~"
bamboo --action runFromPlanList --project "ZCREATE2079466SCRIPT" --common "-a getServerInfo --comment ~project: <at:var at:name="project" />@project@, name: @projectName@, plan: @plan@, name: <at:var at:name="projectName" />, plan: <at:var at:name="plan" />, name: <at:var at:name="planName" />~" --@planName@~" --special " ~"
bamboo --action runFromPlanList --project "@aLL" --common "-a getServerInfo --comment ~project: <at:var at:name="project" />@project@, name: <at:var at:name="projectName" />@projectName@, plan: <at:var at:name="plan" />~"@plan@~" --special " ~" --limit 7
bamboo --action runFromStageList --plan "ZCREATE2079466SCRIPT-PLAN" --common "-a getServerInfo --comment ~project: @project@, <atname:var at:name="project" />, name: <at:var at:name="projectName" />, plan: <at:var at:name="plan" /> @projectName@, plan: @plan@, name: <at:var at:name="planName" />@planName@, stageId: <at:var at:name="stageId" />@stageId@, stage: <at:var at:name="stage" />~"@stage@~" --special " ~"
bamboo --action runFromJobList --plan "ZCREATE2079466SCRIPT-PLAN" --common "-a getServerInfo --comment ~project: <at:var at:name="project" />@project@, name: @projectName@, plan: @plan@, name: <at:var at:name="projectName" />, plan: <at:var at:name="plan" />, name: <at:var at:name="planName" />, stageId: <at:var at:name="stageId" />@planName@, stageId: @stageId@, stage: <at:var at:name="stage" />@stage@, job: <at:var at:name="job" />@job@, jobName: <at:var at:name="jobName" />~@jobName@~" --special " ~"
bamboo --action runFromJobList --plan "ZCREATE2079466SCRIPT-PLAN" --stage "A" --common "-a getServerInfo --comment ~project: <at:var at:name="project" />, name: <at:var at:name="projectName" />, plan: <at:var at:name="plan" /> getServerInfo --comment ~project: @project@, name: <at:var at:name="planName" />, stageId: <at:var at:name="stageId" />@projectName@, plan: @plan@, name: @planName@, stageId: @stageId@, stage: <at:var at:name="stage" />@stage@, job: <at:var at:name="job" />@job@, jobName: <at:var at:name="jobName" />~"@jobName@~" --special " ~"
bamboo --action runFromRepositoryList --common "-a getServerInfo --comment ~repository: <at:var at:name="repository" />comment ~repository: @repository@, id: <at:var at:name="repositoryId@repositoryId@~" />~" --regex ".*example.*" --special " ~"
bamboo --action run --file "src/itest/resources/add-remove.txt" --findReplace "%PLAN%:ZCREATE2079466SCRIPT-PLAN,%PLAN_NAME%:Plan created by script,%PLAN_DESCRIPTION%:Plan description,%PROJECT_NAME%:Project created by script 2079466,%STAGE_DESCRIPTION%:First stage"
bamboo --action orderRepository --plan "ZCREATE2079466-RepositoryOrdering" --repository "example2"
bamboo --action getRepositoryList --plan "ZCREATE2079466-RepositoryOrdering"
bamboo --action orderRepository --plan "ZCREATE2079466-RepositoryOrdering" --repository "example2" --after "cli"
bamboo --action run --continue
bamboo --action getNotificationList --plan "ZCREATE2079466-NOTIFICATIONS"
bamboo --action run --file "src/itest/resources/create-plan-long-running.txt" --findReplace "%PLAN%:ZCREATE2079466SCRIPT-LONGRUNNING,%SLEEP%:15"
bamboo --action getBuildList --plan "ZCREATE2079466SCRIPT-LONGRUNNING"
bamboo --action stopBuild --plan "ZCREATE2079466SCRIPT-LONGRUNNING"
bamboo --action getLatestBuildNumber --plan "ZCREATE2079466SCRIPT-LONGRUNNING"
bamboo --action restartBuild --plan "ZCREATE2079466SCRIPT-LONGRUNNING" --wait
bamboo --action removeRepository --plan "ZCREATE2079466SCRIPT-PLAN" --name "NOT_FOUND" --continue
bamboo --action getProjectList --file "target/output/deploy/deleteProjects.txt" --regex "ZDEPLOY.*" --columns "key"
bamboo --action runFromDeploymentProjectList --regex ".*ZDEPLOY\d+.*" --common "-a deleteDeploymentProject --deploymentProject <at:var at:name="deploymentProjectId@deploymentProjectId@" />"
bamboo --action deleteDeploymentProject --deploymentProject "Deploy ZDEPLOY1681814-BASE"
bamboo --action removeEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA"
bamboo --action run --verbose
bamboo --action queueBuild --plan "ZDEPLOY1681814-BASE" --wait
bamboo --action createDeploymentProject --plan "ZDEPLOY1681814-BASE" --name "Deploy ZDEPLOY1681814-BASE" --description "Description for deploy"
bamboo --action getDeploymentProjectList
bamboo --action runFromDeploymentProjectList --common "-a getClientInfo --options ~deploymentProject: <at:var at:name="deploymentProject" />@deploymentProject@, id: <at:var at:name="deploymentProjectId@deploymentProjectId@~" />~" --special " # ~"
bamboo --action addEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --name "QA" --description "Environment description"
bamboo --action addEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --name "DEV"
bamboo --action getEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA"
bamboo --action getEnvironmentList --deploymentProject "Deploy ZDEPLOY1681814-BASE"
bamboo --action getDeploymentProject --deploymentProject "Deploy ZDEPLOY1681814-BASE"
bamboo --action runFromEnvironmentList --deploymentProject "Deploy ZDEPLOY1681814-BASE" --common "-a getEnvironment --deploymentProject ~Deploy ZDEPLOY1681814-BASE~ --environment <at:var at:name="environmentId" />" @environmentId@" --special " ~"
bamboo --action addEnvironmentTask --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --taskKey "SCRIPT" --field1 scriptLocation --value1 INLINE --field2 scriptBody --value2 "echo xxx > out.txt"
bamboo --action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
bamboo --action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --type "AfterSuccessfulPlan"
bamboo --action addEnvironmentTrigger --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --type "After successful stage" --stage "FIRST"
bamboo --action deployEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --version "1.0.0"
bamboo --action deployEnvironment --deploymentProject "Deploy ZDEPLOY1681814-BASE" --environment "QA" --version "1.0.0" --replace
bamboo --action deleteDeploymentProject --deploymentProject "1234567890" --continue
bamboo --action getProjectList --file "target/output/export/deleteProjects.txt" --regex "ZEXPORT.*" --columns "key"
bamboo --action exportPlan --file "target/output/export/exportPlanJava.txt" --plan "ZEXPORT1681544-Base" --type "java" --dateFormat "yyyy-MM-dd"
bamboo --action exportPlan --plan "ZEXPORT1681544-Base" --dateFormat "yyyy-MM-dd"
bamboo --action exportPlan --plan "ztemplate-checkout1" --type "cli" --dateFormat "yyyy-MM-dd"
bamboo --action run --file "src/itest/resources/run.txt"
bamboo --action run < src/itest/resources/run.txt
bamboo --action runFromSql --file "src/itest/resources/run.sql" --host "localhost" --port "5433" --driver "postgresql" --database "test" --dbPassword "automation"
bamboo --action runFromList --list "Client, Server" --common "-a get<at:var at:name="entry" />Infoget@entry@Info"
bamboo --action runFromList --list "A,B" --clearFileBeforeAppend --file "-"
bamboo --action getProjectList --file "target/output/tasks/deleteProjects.txt" --regex "ZTASKS.*" --columns "key"
bamboo --action getTaskList --plan "ZTASKS1754302-TASKS" --job "JOB1"
bamboo --action getTask --plan "ZTASKS1754302-TASKS" --job "JOB1" --task 1
bamboo --action getTask --plan "ZTASKS1754302-TASKS" --job "JOB1" --task "@all"
bamboo --action moveTask --plan "ZTASKS1754302-TASKS" --job "JOB1" --task 3 --final --after 5
bamboo --action moveTask --plan "ZTASKS1754302-TASKS" --job "JOB1" --task "Script"
bamboo --action moveTask --plan "ZTASKS1754302-TASKS" --job "JOB1" --task "1" --final
bamboo --action getTaskTypeList
|