jenkinsci / jenkinsci/google-cloudbuild-plugin

CloudBuild plugin loses connection to CloudBuild

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
14
Forks
18
PR merge metrics
No merged PRs in 30d

Description

### What feature do you want to see added?

Hello,

Lately I have been having issues with frequently failing Jenkins builds because CloudBuild plugin is enable to fetch the build info from GCP CloudBuild.

When I check the CloudBuild itself after the job fails I can see that the build is done, but the job didn't manage to retrieve the info at some point and failed with:

```
Checking build status: QUEUED
Checking build status: QUEUED
Checking build status: WORKING
Checking build status: WORKING
Checking build status: WORKING
Checking build status: WORKING
connect timed out
```

or

```
Checking build status: WORKING
Checking build status: WORKING
Checking build status: WORKING
Checking build status: WORKING
sleep interrupted
```

My K8 cluster is hosted on GCP and I checked the network status but I don't see any issues on the cluster side so this is most likely caused by some intermittent issue with CloudBuild since it does not happen all the time, but on certain days it is very hard to complete any builds because of this issue

Is there a way to implement some parameter that will define retry attempts or a timeout increase, so the build won't fail in situations where there is just a temporary connection issue?

### Upstream changes

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.