Does Beanstalk support variables in SSH deployment commands?
Yes, it does. Variables allow you to insert repository or Beanstalk specific information into your SSH commands. Below are the available options:
This variable will insert the Revision that is being deployed.
This will be a 1 or 0 depending on whether the deployment is from scratch or not.
Current branch that is being deployed. Available only for Git repositories.
Current deployment comment.
Name of the user who triggered the deployment.
Email address of the user who triggered the deployment.
Unique ID for the triggered deployment.
This will be a 1 or 0 whether deployment is a rollback or not.
Time when deployment was triggered in UNIX epoch format.
Remote path from settings in a particular deployment server.
Substitutes 1 or 0 whether deployment was triggered automatically or manually.
Name of the repository being deployed. It's better to wrap this variable in quotes because it can contain spaces.
URL of the repository being deployed.