Google Compute Engine with YAML

Google Compute Engine [Password]

YAML parameters for Google Compute Engine

NameTypeDescription
action
Required
StringThe ID of the action.
authentication_mode
Required
StringThe authentication mode for SSH. Should be set to PASS.
host
Required
StringThe host for the connection.
login
Required
StringThe username required to connect to the server.
port
Required
StringThe port for the connection.
type
Required
StringThe type of the action. Should be set to GCE.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passwordStringThe password required to connect to the server.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.

YAML example for Google Compute Engine

actions:
- action: "Upload files to GCE"
type: "GCE"
input_type: "SCM_REPOSITORY"
local_path: "/src"
remote_path: "/www"
login: "api_tests_user"
password: "$api_tests_password"
host: "123.45.67.89"
port: "22"
authentication_mode: "PASS"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"

Google Compute Engine [Private Key]

YAML parameters for Google Compute Engine

NameRequiredType
action
Required
StringThe ID of the action.
authentication_mode
Required
StringThe authentication mode for SSH. Should be set to PRIVATE_KEY or ENV_KEY.
host
Required
StringThe host for the connection.
login
Required
StringThe username required to connect to the server.
port
Required
StringThe port for the connection.
server_key
Required
StringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY.
env_key
Required
StringThe private SSH key name defined in environment variables. Required if authentication_mode is set to ENV_KEY.
type
Required
StringThe type of the action. Should be set to GCE.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passphraseStringThe passphrase for the private SSH key.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML example for Google Compute Engine

actions:
- action: "Upload files to GCE"
type: "GCE"
input_type: "SCM_REPOSITORY"
local_path: "/src"
remote_path: "/www"
login: "api_tests_user"
host: "123.45.67.89"
port: "22"
server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII="
passphrase: "api_tests_passphrase"
authentication_mode: "PRIVATE_KEY"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"
actions:
- action: "Upload files to GCE"
type: "GCE"
input_type: "SCM_REPOSITORY"
local_path: "/src"
remote_path: "/www"
login: "api_tests_user"
host: "123.45.67.89"
port: "22"
server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII="
env_key: "MyKey"
passphrase: "api_tests_passphrase"
authentication_mode: "ENV_KEY"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"

Google Compute Engine [Private Key & Password]

YAML parameters for Google Compute Engine

NameTypeDescription
action
Required
StringThe ID of the action.
authentication_mode
Required
StringThe authentication mode for SSH. Should be set to PRIVATE_KEY_AND_PASS.
host
Required
StringThe host for the connection.
login
Required
StringThe username required to connect to the server.
password
Required
StringThe password required to connect to the server.
port
Required
StringThe port for the connection.
server_key
Required
StringThe private SSH key.
type
Required
StringThe type of the action. Should be set to GCE.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
passphraseStringThe passphrase for the private SSH key.
remote_pathStringThe absolute or relative path on the remote server.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.

YAML example for Google Compute Engine

actions:
- action: "Upload files to GCE"
type: "GCE"
input_type: "SCM_REPOSITORY"
local_path: "/src"
remote_path: "/www"
login: "api_tests_user"
host: "123.45.67.89"
port: "22"
server_key: "secure!5sC8oH94UIHZVKIUxTp0q/lSHjIgjP6+Lz0/6BpaKII="
passphrase: "api_tests_passphrase"
password: "api_tests_password"
authentication_mode: "PRIVATE_KEY_AND_PASS"
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"