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:

%REVISION%
This variable will insert the Revision that is being deployed.

%FROM_SCRATCH?%
This will be a 1 or 0 depending on whether the deployment is from scratch or not.

%BRANCH%
Current branch that is being deployed. Available only for Git repositories.

%COMMENT%
Current deployment comment.

%USER_NAME%
Name of the user who triggered the deployment.

%USER_EMAIL%
Email address of the user who triggered the deployment.

%RELEASE_ID%
Unique ID for the triggered deployment.

%ROLLBACK?%
This will be a 1 or 0 whether deployment is a rollback or not.

%TIMESTAMP_UTC%
Time when deployment was triggered in UNIX epoch format.

%REMOTE_PATH%
Remote path from settings in a particular deployment server.

%AUTO?%
Substitutes 1 or 0 whether deployment was triggered automatically or manually.

%REPO_NAME%
Name of the repository being deployed. It's better to wrap this variable in quotes because it can contain spaces.

%REPO_URL%
URL of the repository being deployed.

Still need help? Contact Us Contact Us