Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[incubator-kie-issues-1444] drools.weekly-deploy jobs frequently fail… #6049

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .ci/jenkins/Jenkinsfile.weekly.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ pipeline {
withCredentials([usernamePassword(credentialsId: env.MAVEN_REPO_CREDS_ID, usernameVariable: 'REPOSITORY_USER', passwordVariable: 'REPOSITORY_TOKEN')]) {
def installOrDeploy
if (shouldDeployToRepository()) {
installOrDeploy = "deploy -DdeployAtEnd -Dapache.repository.username=${REPOSITORY_USER} -Dapache.repository.password=${REPOSITORY_TOKEN} -DretryFailedDeploymentCount=5"
installOrDeploy = "deploy -DdeployAtEnd -Dapache.repository.username=${REPOSITORY_USER} -Dapache.repository.password=${REPOSITORY_TOKEN} -DretryFailedDeploymentCount=5" +
" -Dhttp.socket.timeout=300000 -Dhttp.connection.timeout=300000"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, maven-deploy-plugin doesn't specify timeout values, so the default values seem to be 60 sec. https://stackoverflow.com/questions/9734384/default-timeout-for-httpcomponent-client

Indeed, there was a log telling that the timeout happened within 2 minutes.

[2024-08-04T04:32:56.568Z] [INFO] Retrying deployment attempt 4 of 5
[2024-08-04T04:34:17.465Z] [WARNING] Failed to upload checksum to org/drools/drools-ruleunits/999-20240804-SNAPSHOT/drools-ruleunits-999-20240804-20240804.030311-1.pom.sha1
[2024-08-04T04:34:17.465Z] org.apache.http.client.HttpResponseException: status code: 408, reason phrase: Request Timeout (408)

So I set 300 sec this time. I hope we can see an observable difference.

} else {
installOrDeploy = 'install'
}
Expand Down
Loading