awslabs / awslabs/aws-codebuild-jenkins-plugin

Parallel execution with "Use Jenkins source" results S3 upload error and strange error message

Open
#129 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
156
Forks
130
PR merge metrics
No merged PRs in 30d

Description

Running `awsCodeBuild` with `sourceControlType: 'jenkins'` often results following error:

```
[AWS CodeBuild Plugin] Unexpected exception upon uploading source zip to S3: The request to the service failed with a retryable reason, but resetting the request input stream has failed. See exception.getExtraInfo or debug-level logging for the original failure that caused this retry.; If the request involves an input stream, the maximum stream buffer size can be configured via request.getRequestClientOptions().setReadLimit(int)
[AWS CodeBuild Plugin] A versioned S3 bucket is required.
```

The message is strange as S3 versioning feature is enabled.
I found that this happens when multiple builds run at the same time and multiple `awsCodeBuild` for the same codebuild project run at the same time.

Contributor guide

Open the contributing guide

Research direction

Start at the awsCodeBuild build step and reproduce the issue with multiple concurrent builds using sourceControlType 'jenkins'. Trace the source archive upload and the resulting S3 error; done means concurrent builds complete without the misleading versioning message.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
ci-cd, cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.