跳到主要内容

Google App Engine

Learn how to add and configure the "Google App Engine" action in your Buddy pipeline

POST参数

名称类型描述
name
必填
String操作名称
type
必填
StringThe type of the action. Should be set to GOOGLE_APP_DEPLOY.
bucket_name
必填
StringThe name of the GAE Bucket.
application_name
必填
StringThe name of the GAE application.
integration
必填
The integration.
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.
version_labelStringThe label of the image version.
image_urlStringThe URL address to the desired image.
promote_all_trafficBooleanSpecifies whether or not to send all traffic to the new version immediately.
stop_previous_versionBooleanSpecifies whether or not to stop previous version instances.
verbosityStringThe verbosity level. Default level is warning. Can be one of critical, debug, error, info, none or warning.
config_pathStringYAML configuration file.

示例

请求

POST https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions

JSON

{
"name": "Deploy to Google App Engine/buddy-tests-112923",
"type": "GOOGLE_APP_DEPLOY",
"trigger_time": "ON_EVERY_EXECUTION",
"input_type": "SCM_REPOSITORY",
"local_path": "/",
"bucket_name": "artifacts.tokyo-house-112923.appspot.com",
"application_name": "buddy-tests-112923",
"version_label": "${BUDDY_EXECUTION_REVISION}",
"image_url": "gcr.io/your-project-id/your-image",
"promote_all_traffic": true,
"stop_previous_version": true,
"verbosity": "warning"
}

示例响应

HTTP

Status: 201 Created
X-Rate-Limit-Limit: 1
X-Rate-Limit-Remaining: 999

JSON

{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2/action/2/edit",
"id": 2,
"name": "Deploy to Google App Engine/buddy-tests-112923",
"type": "GOOGLE_APP_DEPLOY",
"trigger_time": "ON_EVERY_EXECUTION",
"last_execution_status": "INITIAL",
"input_type": "SCM_REPOSITORY",
"local_path": "/",
"bucket_name": "artifacts.tokyo-house-112923.appspot.com",
"application_name": "buddy-tests-112923",
"version_label": "${BUDDY_EXECUTION_REVISION}",
"image_url": "gcr.io/your-project-id/your-image",
"promote_all_traffic": true,
"stop_previous_version": true,
"verbosity": "warning",
"pipeline": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2",
"id": 2,
"name": "test server",
"on": "CLICK",
"refs": [
"refs/heads/master"
],
"last_execution_status": "SUCCESSFUL",
"last_execution_revision": "506a3963507943d6908154f4bc9646e829128a08"
}
}