跳到主要内容

Google Compute Engine with YAML

List of YAML parameters and examples for the "GCE" action

Google Compute Engine [Password]

YAML parameters for Google Compute Engine

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to GCE.
authentication_mode
必填
StringThe authentication mode for SSH. Should be set to PASS.
host
必填
StringThe host for the connection.
login
必填
StringThe username required to connect to the server.
port
必填
StringThe port for the connection.
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.

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
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to GCE.
authentication_mode
必填
StringThe authentication mode for SSH. Should be set to PRIVATE_KEY or ENV_KEY.
host
必填
StringThe host for the connection.
login
必填
StringThe username required to connect to the server.
port
必填
StringThe port for the connection.
server_key
必填
StringThe private SSH key. Required if authentication_mode is set to PRIVATE_KEY.
env_key
必填
StringThe private SSH key name defined in environment variables. Required if authentication_mode is set to ENV_KEY.
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

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to GCE.
authentication_mode
必填
StringThe authentication mode for SSH. Should be set to PRIVATE_KEY_AND_PASS.
host
必填
StringThe host for the connection.
login
必填
StringThe username required to connect to the server.
password
必填
StringThe password required to connect to the server.
port
必填
StringThe port for the connection.
server_key
必填
StringThe private SSH key.
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"