Class Name | com.midvision.rapiddeploy.orchestration.tasks.utils.AntScriptTask |
Category | Command and Script Execution |
Ant Script Runner. Run an ANT Script or define ANT code to run. |
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
antScriptPath | java.lang.String | true | The full path to the ANT script. If the script is to be run from inside the project deployment package, reference the path using ${ARCHIVE_ROOT}/path/to/script/folder. | |
antScriptText | TextArea | true | The ANT script text to execute. This will start with a <project> element and end with a </project> element. | |
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
outputParameter | java.lang.String | ${antOutput} | true | The name of the output parameter, which can pass the return value from the task. This tasks output will be the script contents. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${antOutput}. |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
target | java.lang.String | default | true | The ANT target to run. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.LocalCommandRunnerTask |
Category | Command and Script Execution |
cmd,/c,echo LocalCommandRunnerTask001 test cmd,/c,c:/Program Files/RDScripts/helloWorld.bat,@@SHAPE@@,@@COLOUR@@,@@SIDES@@Unix Examples:
/bin/bash,-c,/bin/ls -lrt /bin/sh,-c,/bin/ps -ef | /bin/grep PROCESS_STRING | /bin/grep -v grepExample with nohup. In this case we want the server start to survive the deployment, so we use 'nohup' and '&'. We redirect the output to /dev/null to prevent the output from the command holding a lock on the shell and preventing the task from ending.
/bin/sh,-c,nohup command > /dev/null 2>&1 &
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
errorString | java.lang.String | true | If this string is set on the task, then the output stream is searched (case insensitive) for this string. If it is found then the task will fail. Useful for commands that alway exit with an exit code of 0, does not have an exit string and does not write errors to standard err and you are looking for a specific output. | |
exitString | java.lang.String | true | If this string is encountered in the output stream, the command execution will be terminated. | |
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
scriptAndArgs | java.lang.String | cmd,/c,echo test | false | Comma separated list consisting of command, arguments. Win Example: cmd,/c,echo LocalCommandRunnerTask001 test Unix Example: /bin/bash,-c,/bin/ls -lrt |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
successString | java.lang.String | true | If this string is set on the task, then the output stream is searched (case insensitive) for this string. If it is not found then the task will fail. Useful for commands that alway exit with an exit code of 0 and do not write errors to standard err and you are looking for a specific output. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.LocalCommandRunnerWithResponseTask |
Category | Command and Script Execution |
cmd,/c,echo LocalCommandRunnerTask001 test cmd,/c,c:/Program Files/RDScripts/helloWorld.bat,@@SHAPE@@,@@COLOUR@@,@@SIDES@@Unix Examples:
/bin/bash,-c,/bin/ls -lrt /bin/sh,-c,/bin/ps -ef | /bin/grep PROCESS_STRING | /bin/grep -v grepExample with nohup. In this case we want the server start to survive the deployment, so we use 'nohup' and '&'. We redirect the output to /dev/null to prevent the output from the command holding a lock on the shell and preventing the task from ending.
/bin/sh,-c,nohup command > /dev/null 2>&1 &
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
errorString | java.lang.String | true | If this string is set on the task, then the output stream is searched (case insensitive) for this string. If it is found then the task will fail. Useful for commands that alway exit with an exit code of 0, does not have an exit string and does not write errors to standard err and you are looking for a specific output. | |
exitString | java.lang.String | true | If this string is encountered in the output stream, the command execution will be terminated. | |
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
outputParameter | java.lang.String | ${output} | true | The name of the output parameter, which can pass the return value from the task. The task output will be the script output value. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${output}. |
scriptAndArgs | java.lang.String | cmd,/c,echo test | false | Comma separated list consisting of command, arguments. Win Example: cmd,/c,echo LocalCommandRunnerTask001 test Unix Example: /bin/bash,-c,/bin/ls -lrt |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
successString | java.lang.String | true | If this string is set on the task, then the output stream is searched (case insensitive) for this string. If it is not found then the task will fail. Useful for commands that alway exit with an exit code of 0 and do not write errors to standard err and you are looking for a specific output. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.utils.JavaExecTask |
Category | Command and Script Execution |
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
arguments | java.lang.String | true | Space separated list of arguments expected by your applications main method. | |
class | java.lang.String | true | The class to run. This class must exist in the classpath and must contain a main method | |
classpath | java.lang.String | true | The classpath required by this application. Classpath entries should be separated by a colon(:) on Linux and a semi-colon(;) on windows. | |
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
jarFile | java.lang.String | true | The path to the jar file to run. Must contain a Main method defined in the MANIFEST.MF file. | |
javaHome | java.lang.String | true | Path to JAVA_HOME of the java installation on the target server. If left blank, defaults to the JAVA_HOME used by this orchestration. | |
javaProperties | java.lang.String | true | The set of java properties required by this application. The properties are separated by a space e.g. -Xms256m -Xmx768m -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 | |
outputParameter | java.lang.String | ${output} | false | The name of the output parameter, which can pass the return value from the task. The task output will be the java application output to STDOUT. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${output}. |
outputResult | java.lang.String | ${outputResult} | false | The name of the output parameter, which holds the text string output from the task. The outputResult will be true if the java application returns without error. The outputResult will be false if an error occurs. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (later tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${outputResult}. |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.RunDefinedScriptTask |
Category | Command and Script Execution |
#!/bin/sh Shell script #!/bin/ksh Korn shell script #!/bin/bash Bash script #!/usr/bin/python Python script #!/usr/bin/env python Execute using Python by looking up the path to the Python interpreter automatically via env #!/usr/bin/ruby Ruby script #!/opt/local/bin/perl Perl script
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
outputParameter | java.lang.String | ${output} | true | The name of the output parameter, which can pass the return value from the task. The task output will be the script output value. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${output}. |
scriptArgs | java.lang.String | true | Arguments to pass to the script. | |
scriptBaseDir | java.lang.String | ${TMP_DIR} | true | The path to the directory where the script will be executed. By default is uses the system temp directory. |
scriptToRun | TextArea | false | Script language code that you want to run on target server. Enter the script code here for Korn shell, Bourne shell, Bash, Perl, Python, Ruby etc. | |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
successCode | java.lang.String | 0 | false | The expected return code indicating success. Normally, this should be left as 0. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.LocalScriptRunnerTask |
Category | Command and Script Execution |
Script Runner Task. |
scriptToRunPath c:/temp/Test Folder/helloWorld.batworks as expected. Note that the path is not quoted.
dir *. /xin the directory containing the directory with spaces.
24/05/2012 21:07 DIR TESTFO~1 Test FolderYou can then use:
scriptToRunPath c:/temp/TESTFO~1/helloWorld.bat
fsutil behavior query disable8dot3If it returns disable8dot3 = 1, it has been disabled. You can re-enable it with this command:
fsutil behavior set disable8dot3 0Then reboot for the setting to take affect.
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
outputParameter | java.lang.String | ${output} | true | The name of the output parameter, which can pass the return value from the task. The task output will be the script output value. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${output}. |
scriptArgs | java.lang.String | default | true | Arguments to pass to the script. |
scriptToRunPath | java.lang.String | /tmp/path/to/script | false | The full path to the script. If the script is in the deployment package, use ${ARCHIVE_ROOT}/path/to/file. |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
successCode | java.lang.String | 0 | false | The expected return code indicating success. Normally, this should be left as 0. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.ExecuteScriptTask |
Category | Command and Script Execution |
Execute a set of Scripts on a target. |
dbscript4.sh dbscript5.sh script1.sh script2.sh script3.sh test1.sh test2.shYou should therefore name your scripts such that they are executed in the desired order.
targetDir c:/temp/Test Folder/works as expected. Note that the path is not quoted.
dir *. /xin the directory containing the directory with spaces.
24/05/2012 21:07 DIR TESTFO~1 Test FolderYou can then use:
targetDir c:/temp/TESTFO~1/
fsutil behavior query disable8dot3If it returns disable8dot3 = 1, it has been disabled. You can re-enable it with this command:
fsutil behavior set disable8dot3 0Then reboot for the setting to take affect.
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
filesetExcludes | java.lang.String | false | ANT FileSet Style list of files to exclude. | |
filesetIncludes | java.lang.String | **/*.sh | false | ANT FileSet Style list of files to include. |
outputParameter | java.lang.String | ${scriptsOutput} | true | The name of the output parameter, which can pass the return value from the task. The task output will be the cumulative script output. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${output}. |
scriptArgs | java.lang.String | true | Arguments to pass to the script. These will be passed to all scripts in the fileset that are run. | |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
successCode | java.lang.String | 0 | false | The expected return code indicating success. Normally, this should be left as 0. Any other code will result in this task failing. This will be apply to all scripts in the fileset that are run. |
targetDir | java.lang.String | true | The path to the top level directory containing the scripts to run. The actual files to run are then determined by the file set definition (filesetIncludes and filesetExcludes). If the script(s) is/are to be run from inside the project deployment package, reference the path using ${ARCHIVE_ROOT}/path/to/script/folder. |
Class Name | com.midvision.rapiddeploy.orchestration.tasks.utils.SQLExecTask |
Category | Command and Script Execution |
SQL Script/Code Runner. Run SQL scripts or define SQL to run. |
dbscript4.sql dbscript5.sql script1.sql script2.sql script3.sql test1.sql test2.sqlYou should therefore name your scripts such that they are executed in the desired order.
Name | Type | Default Value | Optional | Description |
---|---|---|---|---|
classpath | java.lang.String | false | The driver class path containing the classes used to connect to the database. For example (Oracle): /Users/user/.m2/repository/com/oracle/ojdbc14/10.2.0.1/ojdbc14-10.2.0.1.jar | |
connectionUrl | java.lang.String | false | A valid database URL, conforming to the required syntax. For example (Oracle): jdbc:oracle:thin:@localhost:1521:xe | |
driver | java.lang.String | false | The driver class used to connect to the database. For example (Oracle): oracle.jdbc.driver.OracleDriver | |
errorAction | java.util.List | abort | true | Defines what action to take if an SQL statement fails. One of: continue, stop or abort. Default value is: abort - stop execution and abort transaction and throw error. stop - stop execution but don't throw error. continue - log the error but continue to the next statement. |
failOnError | java.lang.Boolean | true | false | This task will not fail the deployment on error if set to false. |
filesetExcludes | java.lang.String | false | ANT FileSet Style list of files to exclude. | |
filesetIncludes | java.lang.String | **/* | false | ANT FileSet Style list of files to include. |
outputParameter | java.lang.String | ${sqlOutput} | true | The name of the output parameter, which can pass the return value from the task. The task output will be the script output value. Define a unique parameter name starting with '${', ending with '}' for the whole orchestration (latter tasks can override the parameter value if the same parameter name is specified). You can refer to this parameter in any task below in the tasklist, as an input parameter ${sqlOutput}. |
password | java.lang.String | false | The Password to connect to the database. | |
skipOnFailure | java.lang.String | Previous Task Name | true | Skip current task based on the name of the previous task whether has failed or not. |
sqlText | TextArea | true | The SQL content you want to execute. Start each statement on a new line. End each SQL statement using a semi-colon: ';' | |
targetDir | java.lang.String | true | The path to the top level directory containing the SQL scripts to run. The actual files to run are then determined by the file set definition (filesetIncludes and filesetExcludes) If the SQL script(s) is/are to be run from inside the project deployment package, reference the path using ${ARCHIVE_ROOT}/path/to/script/folder. | |
username | java.lang.String | false | The Username to connect to the database. | |
verbose | java.lang.Boolean | true | false | Verbose output in the log file. |