Versions Compared

Key

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

...

Refer to the FlexDeploy - Variables Guide for reference on available variables.

Supported Versions

  • OEL5OEL6-9

  • 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
languagebash
'env -i HOME=\"$HOME\" bash -l -c  \'cd ' + FDTOM_CATALINA_HOME + '/bin && nohup ./startup.sh \\& && sleep 10\''