I am using pipline for my Google App engine project.
Sometimes, the pipeline would stuck at the step of deploying to app engine with gcloud sdk.
If I didn't press the stop button manually, it will continue to waste my build time for 2hrs.
Is there any way to set a timer and cancel the deploying in pipeline?
I would like to use the schedule pipeline feature but I am afraid of being stuck and costing all my build time.
I can't help you with the app-engine deployment problem without knowing more about your set up, or seeing some logs, but you can easily configure the maximum execution time for a step by setting the max-time option in bitbucket-pipelines.yml.
See the max-time documentation, which contains this example:
- step:
name: quick step
max-time: 5
script:
- sleep 120m # this step will timeout after 5 minutes
So you could configure a much shorter time limit, reducing the risk of burning through your build minutes, at the risk of terminating a build early that would otherwise have completed normally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.