google-cloud-build

Google Cloud build conditional step

懵懂的女人 提交于 2020-06-23 03:13:09
问题 This is my cloud build file substitutions: _CLOUDSDK_COMPUTE_ZONE: us-central1-a _CLOUDSDK_CONTAINER_CLUSTER: $_CLOUDSDK_CONTAINER_CLUSTER steps: - name: gcr.io/$PROJECT_ID/sonar-scanner:latest args: - '-Dsonar.host.url=https://sonar.test.io' - '-Dsonar.login=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' - '-Dsonar.projectKey=test-service' - '-Dsonar.sources=.' - id: 'build test-service image' name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/$PROJECT_ID/$REPO_NAME/$BRANCH_NAME:$SHORT

Adding a “Are you sure …” dialog in GCP cloudbuild.yaml

二次信任 提交于 2020-06-17 09:50:08
问题 Basically, I want to add a "Are you sure you want to run unit tests ?" dialog before step 2(run_test_test-coverage) in my cloudbuild.yaml . How can I do that ? This can be done in jenkins but don't know how to do the same in GCP cloudbuild. cloudbuild.yaml steps: - name: 'node:10.10.0' id: installing_npm args: ['npm', 'install'] dir: 'API/system_performance' - name: 'node:10.10.0' id: run_test_test-coverage args: ['npm', 'run', 'coverage'] dir: 'API/system_performance' Edit: Below is my

Python cloud function is not updated after rebuild

天大地大妈咪最大 提交于 2020-06-01 07:44:05
问题 Steps to reproduce: Enable these APIs: Cloud Repositories, Cloud Build, and Cloud Functions Create Repository and push content from here there. This is a simple Python Flask app returning simple Html with cloudbuild.yaml file. Create Cloud function using created repository with name la-repo-function-1 (which is referred in cloudbuild.yaml file) and using Python 3.7 with HTTP trigger and function to execute equal greetings_http Create Cloud Build trigger on that repo and point it to use

Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?

爷,独闯天下 提交于 2020-05-27 17:29:13
问题 Firebase: Enable the Google Cloud Build API for your Cloud Functions project? & understanding "action required" email from GCP, re: enable Cloud Build API ask for something different and I understand what Cloud Build means for Firebase Functions as described in the following. I am asking about the billing requirement - if that is a thing. This is not clear from the notice. Cloud Functions & Cloud Build I have received notice via email that I need to do the following for my Firebase project:

Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?

南楼画角 提交于 2020-05-27 17:27:44
问题 Firebase: Enable the Google Cloud Build API for your Cloud Functions project? & understanding "action required" email from GCP, re: enable Cloud Build API ask for something different and I understand what Cloud Build means for Firebase Functions as described in the following. I am asking about the billing requirement - if that is a thing. This is not clear from the notice. Cloud Functions & Cloud Build I have received notice via email that I need to do the following for my Firebase project:

Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?

做~自己de王妃 提交于 2020-05-27 17:26:18
问题 Firebase: Enable the Google Cloud Build API for your Cloud Functions project? & understanding "action required" email from GCP, re: enable Cloud Build API ask for something different and I understand what Cloud Build means for Firebase Functions as described in the following. I am asking about the billing requirement - if that is a thing. This is not clear from the notice. Cloud Functions & Cloud Build I have received notice via email that I need to do the following for my Firebase project:

Do Firebase Cloud Functions require Billing to be enabled by April 20, 2020 because of the Cloud Build API?

一笑奈何 提交于 2020-05-27 17:21:44
问题 Firebase: Enable the Google Cloud Build API for your Cloud Functions project? & understanding "action required" email from GCP, re: enable Cloud Build API ask for something different and I understand what Cloud Build means for Firebase Functions as described in the following. I am asking about the billing requirement - if that is a thing. This is not clear from the notice. Cloud Functions & Cloud Build I have received notice via email that I need to do the following for my Firebase project:

How can I save google cloud build step text output to file

别来无恙 提交于 2020-05-23 08:11:07
问题 I'm trying to use google cloud build. At one step, I need to get a list of all running compute instances. - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list'] and it works fine. Problem starts when I tried to save the output to a file Trial 1 : failed - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list', '> gce-list.txt'] Trial 2 : failed - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list', '>', 'gce-list.txt'] Trial 3 :

How to trigger a Google Cloud Build job periodically from Google cloud scheduler

◇◆丶佛笑我妖孽 提交于 2020-05-17 05:55:14
问题 I configured a cloud schedular job following enter link description here But find error status: "INVALID_ARGUMENT" . did not understand from where it came from. any suggestion to fix this, would be grateful. 回答1: You need to follow the bellow steps to trigger: 1.- Create a new Service Account and add the "Cloud Build Service Account" and "Cloud Scheduler Service Agent" roles to it. 2.- The HTTP method should be "post". 3.- You must specify in the body field the "repoName" and the "branchName"

invalid image name in cloud build when using domain-scoped project

隐身守侯 提交于 2020-05-11 13:01:35
问题 I'm trying to build a container with GCP's Cloud Build. I'm using the simple template from the quickstart doc. I've done this before successfully. However, this time I am using a project which is under an "organization". So the project ID is mycompany.com:projectX , rather than simply projectX . I am unable to get the build to complete. When I run: gcloud builds submit --tag gcr.io/mycompany.com:project-id/helloworld I get the following error: (gcloud.builds.submit) INVALID_ARGUMENT: invalid