...
Refer to the FlexDeploy - Variables Guide for reference on available variables.
Tip |
---|
See Generic Package-Based Projects for use with packageExecute operation. |
Supported Versions
OEL5-9
OEL6
AIX
Solaris
Key Features
User-defined inputs/outputs allowed
Can run any shell command(s)
Can run any shell script(s)
...
Child pages (Children Display) |
---|
Special Considerations
Shell plugin operations allow for restricting environment variables passed to child process. See Restrict Environment
and No Secure Variables
plugin inputs. Although note that FlexDeploy plugin execution context environment variables will always be present in child process. For example, FD_TEMP_DIR
, FD_ENVIRONMENT_CODE
etc. and more will be part of child process environment. This should not cause any issues but if that is not desired in cases where you are starting server process (long running) then you can take approach shown below to clear environment. Here is shell plugin script code (Groovy) to start tomcat process without inheriting parent plugin process’s environment.
Code Block | ||
---|---|---|
| ||
'env -i HOME=\"$HOME\" bash -l -c \'cd ' + FDTOM_CATALINA_HOME + '/bin && nohup ./startup.sh \\& && sleep 10\'' |