Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with pipeline when stuck?

jeffrey_chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 6, 2019

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.

 

1 answer

0 votes
Kenny MacLeod
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 7, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events