Versions Compared

Key

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

...

Expand
titleSee generated CLI source


Code Block
languagebash
linenumberstrue
# Exported from https://examplegear.com running Bamboo 6.0.0 on 2017-05-02 by automation using the Bamboo CLI 6.4.0-SNAPSHOT

-a createOrUpdatePlan    --plan ZEXPORT-BASE  --name "Base"  --description "" 

-a removeRepository      --plan @plan@  --repository @all 
-a addRepository         --plan @plan@  --repository "cli" 

-a removeBranch          --plan @plan@  --branch @all 
-a addBranch             --plan @plan@  --branch 2.5.0 \
                                                --name "ZEXPORT - Base - 2.5.0" 

-a removeVariables       --plan @plan@  --field1 @all 
-a addVariables          --plan @plan@  --field1 "v1"  --value1 "xxx" 

-a removeStage           --plan @plan@  --stage @all 
-a addStage              --plan @plan@  --stage "FIRST" 

-a addJob                --plan @plan@  --stage @stage@  --job JOB1 \
                                                --name "JOB1" 
-a addArtifact           --plan @plan@  --job @job@ \
                                                --artifact "out.txt" \
                                                --copyPattern "out.txt" 
-a addTask               --plan @plan@  --job @job@ \
                                                --taskKey com.atlassian.bamboo.plugins.vcs:task.vcs.checkout \
                                                --name "Source Code Checkout" \
                                                --description "Checkout Default Repository" 
-a addTask               --plan @plan@  --job @job@ \
                                                --field1 "cleanCheckout"taskKey com.atlassian.bamboo.plugins.scripttask:task.builder.script \
                                                --value1name "Script" \
                                                --field2field1 "checkoutDir_0scriptLocation" \
                                                --value2value1 "INLINE" \
                                                --field3field2 "checkoutDir_{index}scriptBody" \
                                                --value3value2 ""echo \xxx                                                 --field4 "selectedRepository_{index}> out.txt" \
                                                --value4 "defaultRepository" \
                                                --field5 "selectedRepository_0" \
                                                --value5 "defaultRepository" 
-a addTask               --plan @plan@  --job @job@ \
                                                --taskKey com.atlassian.bamboo.plugins.scripttask:task.builder.script \
                                                --name "Script" \
                                                --field1 "argument" \
                                                --value1 "" \
                                                --field2 "scriptLocation" \
                                                --value2 "INLINE" \
                                                --field3 "environmentVariables" \
                                                --value3 "" \
                                                --field4 "scriptBody" \
                                                --value4 "echo xxx > out.txt" \
                                                --field5 "interpreter" \
                                                --value5 "RUN_AS_EXECUTABLE" \
                                                --field6 "script" \
                                                --value6 "" \
                                                --field7 "workingSubDirectory" \
                                                --value7 "" 
-a addTask               --plan @plan@  --job @job@ \
                                                --taskKey org.swift.bamboo.acli:bamboo \
                                                --name "Bamboo CLI" \                           --field3 "interpreter" \
                   --field1 "scriptLocation" \                           --value3 "RUN_AS_EXECUTABLE" 
-a addTask               --plan @plan@  --value1job "FILE"@job@ \
                                                --field2 "scriptBody"taskKey org.swift.bamboo.acli:bamboo \
                                                --value2name "--helpBamboo CLI" \
                                                --field3field1 "directoryscriptLocation" \
                                                --value3value1 "INLINE" \
                                                --field4field2 "scriptscriptBody" \
                                                --value4value2 "--help"


Export All Plans With One CLI Action

...