I am using AEM 6.5 service pack 4. I am building a multi module maven project and building and installing 3 modules in AEM. I am unable to install the module using Jenkins, especially the 3rd module wherein I am facing the below errors interchangeably and occurs intermittently:
Request to http://<hostname>:<port>/crx/packmgr/service.jsp failed, response=Created
@abn93 thank you for posting in Communities. Based on data provided it seems like you have three modules with package/content type which will get installed to AEM one after another.. but intermittently some modules are getting failed to be deployed. It could be possible that after the either first or second package gets deployed it will have its associated bundle also gets deployed... sometimes deployment of bundle restart/refreshes AEM core/system bundles so during this time crx package will also be down...so it will not take new deployment requests.. so for success cases it could be cause of either delay of other module build or core bundles got refreshed quickly so you will not see this issue.
As you said you are using AEM 6.5.4 please deploy only all package instead of 3 separate modules, use below command for deployments: