--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 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 ZCREATE5074797-EMPTY --repository example --replace --options clear\"" --input "-a setReplacementVariables --field repository= --field repositoryId=" --input "-a getReplacementVariableList" --input "-a createPlan --plan ZCREATE5074797-EMPTY --repository example --replace --options clear" --input "-a getReplacementVariableList" --input "-a exportPlan --plan ZCREATE5074797-EMPTY"
|
--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 createPlan --plan \"ZCREATE5074797-add default job\" --options addDefaultJob" --input "-a addTask --plan @plan@ --job @job@ --taskKey CLEAN" --input "-a updatePlan --plan @plan@ --description \"Update with a description\"" --input "-a getPlan --plan @plan@"
|
--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 ZEXPORT4985101-Export --job SCRIPT -f build/output/export/scriptJob.cli" --input "-a run -f build/output/export/scriptJob.cli" --input "-a getTask --plan ZEXPORT4985101-Export --job SCRIPT --task 1" --input "-a getTask --plan ZEXPORT4985101-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"
|