Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
設定 Cloud Build
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面說明如何設定 Cloud Build。如要瞭解 Cloud Build 的收費方式,請參閱「定價」頁面。
-
在 Google Cloud 控制台的專案選擇器頁面中,選取或建立 Google Cloud 專案。
選取或建立專案所需的角色
-
選取專案:選取專案時,不需要具備特定 IAM 角色,只要您已獲授角色,即可選取任何專案。
-
建立專案:如要建立專案,您需要具備專案建立者角色 (
roles/resourcemanager.projectCreator),其中包含 resourcemanager.projects.create 權限。瞭解如何授予角色。
前往專案選取器
-
確認專案已啟用計費功能 Google Cloud 。
-
啟用必要的 API。
啟用 API 時所需的角色
如要啟用 API,您需要服務使用情形管理員 IAM 角色 (roles/serviceusage.serviceUsageAdmin),其中包含 serviceusage.services.enable 權限。瞭解如何授予角色。
啟用 API
-
安裝 Google Cloud CLI。
完成後,執行下列指令來初始化 Google Cloud CLI:
gcloud init
若您採用的是外部識別資訊提供者 (IdP),請先使用聯合身分登入 gcloud CLI。
如果您之前已經安裝了 gcloud CLI,請執行
gcloud components update
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-16 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-16 (世界標準時間)。"],[],[]]