When do we see the following “Could not publish build-info: Read timed out” Error message?

The message "Could not publish build-info: Read timed out", usually happens when the build job is significantly bigger than other builds and/or if the 'build retention' option is used and there are a lot of old builds that need to be deleted after this build is deployed.

The reason is that the connection to Artifactory is kept open until all builds are deleted and the build info json is deployed. If this takes a long time, Jenkins might close the connection since it is not getting any response from Artifactory during this process.

In such a case, increasing the connection timeout in the Jenkins general configuration page (as shown below) will solve the issue:

Click on Advanced, and edit the Connection Timeout settings: