Reputation: 35
Hello I have exhausted all sorts of options i found on web and nothings seems to work for me.
I am pushing changes to a repo which is already setup for cloud build.
This is my yaml file for cloud trigger
steps:
name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy", ".yaml"]
timeout: 1200s
It also triggers one extra Google Cloud Storage build in parallel which I cant figure out where is it coming from. It has no ties to the code repo I got. This build times out in 10 minutes and hence causing my main build to fail.
Even if set timeout to 1200 to my step, it seems to have no impact on this cloud storage build. It times out at 10 mins.
TIA
I already have timeouts on steps and build level which is higher than 10minuyes, but this doesnot seem to do the magic on "Google Cloud Storage" build
Upvotes: 0
Views: 2303
Reputation: 35
This solved it: steps:
seems like step level timeout didnot work for me. but this one is cool . phewwww. thanks all Guys!
Upvotes: 0
Reputation: 75745
I can tell you why you have this error, but not how to fix it...
Why?? Because the gcloud app deploy
command use Cloud Build
During deployment, the Cloud Build service builds a container image of your application to run in the App Engine standard environment. Learn more in Managing build images.
The Cloud Build default timeout parameter is 10 minutes. That's why.
How to fix?
If you use flexible environment, try to build your container separately. Then create a Dockerfile
which only use your builded container (FROM gcr.io/MyProjectID/containerName
) and use a runtime: custom
in your app.yaml
file.
If you use standard environment, what's your service? Is it big? Do it have lot of dependencies?
Upvotes: 1