SmartBuild not working for STAGE pipelines in Adobe Experience Manager Cloud Manager
This article describes why SmartBuild don’t function as expected for STAGE pipelines in Adobe Experience Manager Cloud Manager, leading to longer build times, and provides steps to mitigate the issue until a product fix is available.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS) (all versions)
Symptoms
- SmartBuild is enabled for all full stack pipelines (DEV, SIT, STAGE) in Cloud Manager.
- DEV and SIT pipelines complete builds in approximately 5 minutes.
- STAGE pipelines take about an hour to build, despite having nearly identical Maven modules and code as DEV/SIT.
- Build logs for STAGE pipelines show the presence of the
-Dmaven.build.cache.skipCache=trueflag, which disables cache usage. - The issue doesn’t impact deployment correctness; it only affects build performance.
Cause
The SmartBuild cache-restore process fails validation in STAGE pipelines due to incorrect OSGi Bundle-Version re-stamping. This causes the pipeline to fall back to a slower build path, significantly increasing build times.
Resolution resolution
Follow the steps below to resolve the issue:
- Review your pipeline execution logs in the Cloud Manager UI for the STAGE pipeline. Look for the
-Dmaven.build.cache.skipCache=trueflag in the build logs, which indicates that cache usage is disabled and SmartBuild isn’t being utilized. - As a temporary mitigation, disable SmartBuild for the affected STAGE pipeline using the Cloud Manager UI. This will bypass the unstable cache-restore path and force a fresh build. Note that build times may remain longer than a successful SmartBuild run, but this avoids inconsistent cached outputs and unstable behavior.
- Monitor Adobe release notes for updates on a product fix for this issue. Once the fix is released, re-enable SmartBuild for the STAGE pipeline and monitor build performance.
- If slow build times persist after the fix is released, review your pipeline logs again and consult Adobe Support, if needed.
For more information on SmartBuild and pipeline configuration, refer to the official Cloud Manager documentation.
recommendation-more-help
experience-cloud-kcs-help-kbarticles