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.

...

getClientInfo

copyFiles

--action getClientInfo
identifyUser
copyFiles --sourceFile "build/output/copy/copy.txt"

getFileList

--action identifyUser --token "***" --userId "cli_1@appfire.com" --afterSql "insert into test01 (a1) values('segment')" --database "test" --host "postgres.examplegear.com" --port "50940" --dbUser "automation" --dbPassword "***" --properties "{\"email\":\"cli_1@appfire.com\", \"organization\":\"appfire\"}" --properties2 "{\"region\":\"Americas\", \"empty\":null, \"organization\":\"appfire\"}"
--action identifyUser --token "***" --userId "cli_1@appfire.com" --properties "{\"email\":\"cli_1@appfire.com\", \"organization\":\"appfire\"}" --properties2 "{\"region\":\"Americas\", \"empty\":null, \"organization\":\"appfire\"}"
--action identifyUser --token "***" --userId "cli_1@appfire.com" --sendNullProperties --properties "{\"email\":\"cli_1@appfire.com\", \"organization\":\"appfire\"}" --properties2 "{\"region\":\"Americas\", \"empty\":null, \"organization\":\"appfire\"}"

runFromList

--action runFromList --list "userId" --token "***" --common "-a identifyUser --userId @entry@"

trackEvent

--action trackEvent --token "***" --userId "cli_1@appfire.com" --event "My event" --properties "{\"email\":\"cli_1@appfire.com\", \"organization\":\"appfire\"}" --properties2 "{\"region\":\"Americas\", \"empty\":null, \"organization\":\"appfire\"}"getFileList --directory "." --limit 10 --outputType "text" --columns "path,is directory,hidden" --options "recurse"
--action getFileList --directory "/opt/atlassian/pipelines/agent/build/src/itest/system/resources" --dateFormat "yyyy-MM-dd"
--action getFileList --directory "/opt/atlassian/pipelines/agent/build/src/itest/system/resources" --regex "copy\\..*" --outputType "text" --columns "1,-4,5"
--action getFileList --directory "src" --limit 50 --outputType "text" --columns "path,is directory,hidden" --options "recurse" --options "includeDirectories"

getFileMonitorList

--action getFileMonitorList --directory "build/output/files" --limit 5 --timeout 60 --events "create,modify,delete" --outputType "text" --columns "-3,-6,7,8" --dateFormat "yyyy-MM-dd hh:mm:sss" --options "screenWidth=200"
--action getFileMonitorList --directory "build/output/files" --timeout 50 --options "monitor" --options "recurse" --options "includeDirectories" --events "create,modify,delete" --outputType "text" --columns "event,name,path,timestamp" --dateFormat "yyyy-MM-dd hh:mm:sss"
--action getFileMonitorList --directory "build/output/files/yyy" --timeout 60 --options "monitor" --options "recurse" --options "includeDirectories" --events "create,modify,delete" --outputType "text" --columns "event,name,path,timestamp" --dateFormat "yyyy-MM-dd hh:mm:sss"
--action getFileMonitorList --directory "~" --events "create" --timeout 1

getUpgradeInfo

--action getUpgradeInfo
--action getUpgradeInfo --outputType "json"

renderRequest

--action renderRequest --file "build/output/render/renderRequestAuthenticated.txt" --user "automation+user@appfire.com" --password "***" --url "https://ginthome.atlassian.net/wiki/spaces/ztest"
--action renderRequest --url "https://ginthome.atlassian.net/wiki/spaces/GINT/overview" --findReplaceRegex "(?s).*?(title=\"Gint Confluence\").*:\$1"
--action renderRequest --url "https://www.google.com/search" --requestParameters "q=gint+gradle+integration+test+automation+devops" --findReplaceRegex "(?s).*?(Gint - .*?Framework).*:\$1"
--action renderRequest --url "https://www.google.com/search?q=gint+gradle+integration+test+automation+devops" --findReplaceRegex "(?s).*?(Gint - .*?Framework).*:\$1"

run

--action run -i "-a return --value x --regex y" -i "-a return --value x --regex x --comment \"This is a completion message.\" --quiet"
--action run -i "-a return" -i "-a return --comment \"Not run\""
--action run -i "system -a getFileList --directory ."
--action run --continue -i "system -a updatePropertyFile --propertyFile @config --field \"systemtest = system\"" -i "systemtest -a sleep --value 10" -i "system -a updatePropertyFile --propertyFile @config --field systemtest="
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/system/resources/callreturn.acli"
--action run --file "/opt/atlassian/pipelines/agent/build/src/itest/system/resources/return.acli"
--action run --input "-a setReplacementVariables --field replaceVariable1=111 --field replaceVariable2=222" --input "-a copyFiles --sourceFile build/output/copy --file build/output/copy/target"
--action run --input "-a setReplacementVariables --field replaceVariable1=111 --field replaceVariable2=222" --input "-a copyFiles --sourceFile build/output/copy/copy.txt"
--action run --quiet -i "-a writeFile -f @temp --data firstText --replace" -i "-a run --clearFileBeforeAppend -i \"-a writeFile -f @temp --append --data \"\"'appendText1 \\n \\n '\"\" --options show\"" -i "-a run --clearFileBeforeAppend -i \"-a writeFile -f @temp --append --input \"\"appendText2 \\n \\n \"\" --options show\""

runFromFileList

--action runFromFileList --directory "/opt/atlassian/pipelines/agent/build/src/itest/system/resources" --input "-a copyFiles --sourceFile @filePath@ --file build/output/files/@fileBaseName@-xxx.@fileExtension@"

runFromList

--action runFromList --list "0,1,3" --input "-a sleep --value @entry@"

sleep

--action sleep
--action sleep --quiet

updatePropertyFile

--action updatePropertyFile --propertyFile "build/output/properties/example.properties" --field "# comment 1" --field "key7 = value7" --field "include = NOT_FOUND" --field "key6 = value6" --field "key2" --field "aa x =" --field "bb :x" --options "show"
--action updatePropertyFile --propertyFile "build/output/properties/example.properties" --field "# comment 2\\n! comment 3!" --options "show"
--action updatePropertyFile --propertyFile "build/output/properties/example.properties" --field "key1=value1" --field "key2 = value2" --field " key3 = value3 " --field "key4 = value4" --field "key5 = value5" --field "aa x = value aa" --field "bb :x = value bb" --field " include = build/output/properties/example-include.properties" --options "show"
--action updatePropertyFile --propertyFile "build/output/properties/test.properties" --field "key1" --field "key2" --field "key3" --field "key5 : " --field "key6 : = new value 6" --field "include=" --field "Include" --options "show"

writeFile

--action writeFile --file "build/output/copy/writeFile.txt" --data "-a getClientInfo --outputFormat 2 --outputType variables -a getReplacementVariableList" --options "show,run" --replace
--action writeFile --file "build/output/copy/writeFileInput.txt" --input "-a getClientInfo --outputFormat 2 --outputType variables" --input "-a getReplacementVariableList" --options "show" --replace
--action writeFile --file "build/output/copy/writeFileShow.txt" --data "-a getClientInfo --outputFormat 2 --outputType variables \\n -a getReplacementVariableList" --options "show" --replace
Excerpt
Table of Contents
maxLevel1
absoluteUrltrue