Cloud Manager for AEM Developers: Pipelines, Gates and Runs
Cloud Manager is where code for AEM as a Cloud Service stops being a set of files on your machine and becomes a deployment. Each program has its own Git repository, its own environments, and one or more pipelines that build, test and deploy your code. You rarely administer these pieces, but every failed build and paused deployment traces back to one of them.
This lesson explains how a program is organised, what the four code-source pipeline types do, and how a single deployment moves through stage testing into production. You will clone the repository, set the Java version and watch a run from start to finish. The example project is mysite, with the package com.mysite.core, running in program 12345.
I use the phrase “pipeline run” throughout. A run is one execution of a pipeline against one commit. Most confusion in Cloud Manager comes from mixing up pipelines, which are configurations, and runs, which are the executions of them.

Table of contents
- Why this matters
- Who should read this
- Prerequisites
- Programs and environments
- The program repository and project layout
- How the build runs
- The four pipeline types
- The deployment workflow
- Hands-on: from clone to production deployment
- Common problems and troubleshooting
- Hands-on challenge
- Key takeaways
- Knowledge check
- Frequently asked questions
- Continue your learning
Why this matters
Developers who understand the pipeline model debug faster. When a build fails, you know whether to look at Maven output, the quality step or the deployment step. When a change is missing from stage, you know whether a pipeline ran against your branch at all.
✅ Know which pipeline type to use for a code change, a front-end change, a Dispatcher change or a targeted configuration.
✅ Set the build Java version and the build profile in the repository, not in a wiki page.
✅ Read a deployment’s phases and know where a stuck release is waiting.
✅ Stop confusing a code quality failure with a deployment failure.
Who should read this
This lesson is for developers who push code to AEM as a Cloud Service and need to see what happens after git push. It is also useful for the Deployment Manager who configures pipelines, because the developer and the manager look at the same run from different sides.
Prerequisites
- A Cloud Manager user with the Developer role for the program. Repository access and the Developer Console depend on it.
- A Maven project with a root
pom.xml. If you are new to the layout, read the AEM multi-module project tutorial first. - Git and a JDK 21 installed locally, so you can build what Cloud Manager will build.
- Read the environments lesson if you have not already. It explains the environment types this lesson refers to.
Programs and environments
A program holds the environments, the pipelines, the Git repository and the deployment history.
The program overview page is the starting point. It has cards for Environments, Pipelines and Performance. The Performance card shows the CDN and Experience Audit scores. At the top, a call-to-action card shows the state of the last production run, with a button such as Start New Deployment. The Pipelines card is where you find Access Repo Info, which gives you the Git URL for the program.
Roles control what you can change. Developers can view pipelines, read run details, download logs and get Git access. They cannot start a pipeline, but a push to a branch whose pipeline uses the On Git Changes trigger starts it. Deployment Managers set up, edit, start and cancel pipelines. A Business Owner can also start pipelines. Go-live approval, and approving or rejecting important quality failures, belong to the Business Owner, Deployment Manager and Program Manager roles. A person can hold several roles and gets the sum of their permissions.
The program repository and project layout
Each program gets one Adobe-managed Git repository. You clone it, push feature branches to it and merge to the branch that deploys to production. Cloud Manager builds the code from the commit you point the pipeline at, not from your local machine, so anything not committed does not exist as far as the pipeline is concerned.
The repository password is generated in Cloud Manager, and generating a new one invalidates the old one. Cloud Manager does not store the password, so save it in a password manager when you generate it. Access Repo Info is visible to the Developer and Deployment Manager roles.
A typical project generated from the Adobe archetype has modules for the Java code, the component code, the OSGi configuration, sample content, the container package and the Dispatcher configuration. The layout below is the one used in this lesson. Your module names may differ.
mysite/
pom.xml root Maven build
core/ Java bundles, package com.mysite.core
ui.apps/ components, client libraries, /apps content
ui.config/ OSGi .cfg.json files, one folder per runmode
ui.content/ sample content
all/ container package that embeds the others
dispatcher/ Dispatcher configuration (conf, conf.d)
.cloudmanager/
java-version "25", "21", "17" or "11" (JDK 8 when absent)
maven/settings.xml optional, for private Maven repositories
How the build runs
The build is Maven, run by Cloud Manager on a fresh build environment for each run. Cloud Manager runs mvn --batch-mode org.jacoco:jacoco-maven-plugin:prepare-agent package at the root of the repository, so run the same command locally before you push. Four settings control the build, two in the repository and two on the pipeline:
- Java version. Create
.cloudmanager/java-versioncontaining only the major version:25,21,17or11. If the file is missing, the build uses JDK 8. Set the value on the branch the pipeline builds, because the file is read from the commit. Choosing25also moves the target environment to the Java 25 runtime, so treat it as a runtime change, not only a build change. - Maven settings. If the build needs a private Maven repository, add
.cloudmanager/maven/settings.xmland keep the credentials in pipeline secret variables, not in the file. - Build strategy. A pipeline uses Full Build or Smart Build. Smart Build caches modules and rebuilds only the modules that changed since the last successful run, which shortens long builds. To keep one module out of the cache, set the property
maven.build.cache.enabledtofalsein that module. Switch the pipeline to Full Build when you want every module rebuilt. - Build artifact reuse. If the same commit was already built in the program, Cloud Manager can reuse those build artifacts instead of building again. Set the pipeline variable
CM_DISABLE_BUILD_REUSEtotrueto force a fresh build. While it is set, the run page reminds you that removing it saves time.
Build and dependency errors are the most common first failure. A build that fails with an HTTP repository warning in the log is usually a dependency that Maven resolves over plain HTTP. Switch that repository to HTTPS in settings.xml or the pom.xml.
The four pipeline types
Cloud Manager has a pipeline type for each kind of code change. A pipeline is created with a source type, and the source decides what gets built and deployed. Production pipelines deploy to stage and then to production. Non-production pipelines either run code quality only, or deploy to a development environment.
| Pipeline type | What it deploys | Limits and notes |
|---|---|---|
| Full-stack | Java and content packages, OSGi configuration and repoinit scripts, client libraries, and the web-tier Dispatcher configuration when included | One full-stack pipeline per environment. Choose Ignore Web Tier Configuration to keep the Dispatcher config separate. Requires the Deployment Manager role to create. |
| Front-end | A front-end build, such as a React or Node-based theme, published as a theme version that AEM pages reference | Several are allowed per environment. The program limit of 300 pipelines covers all types together. Use it when front-end releases should not wait for back-end changes. |
| Web tier config | Dispatcher configuration only | One per environment. Once it exists, the full-stack pipeline for that environment skips the Dispatcher configuration. Use it when the change is only Dispatcher configuration. |
| Config (targeted) | A YAML configuration applied to selected environment types | The YAML file names its kind and, under metadata.envTypes, the environment types it targets. Secrets are referenced as ${{NAME}}. |
A config pipeline reads its YAML from the branch you select, and it applies only to the environment types the YAML names. Any secret the YAML references must exist as an environment variable before the pipeline runs. Web-tier and config pipelines are not supported for private repositories connected to Cloud Manager, so check your repository type before you plan on them.
Code-quality-only pipelines exist for full-stack, front-end and web-tier code. They run the build, the unit tests and the quality checks, but deploy nothing. Use one on every feature branch. It gives you a quality result without occupying the development environment.
The deployment workflow
A production deployment in a full-stack pipeline has three phases. Knowing them tells you where a run is waiting.
- Stage deployment. Validation, build and unit testing, code scanning, building the images the cloud runs, and deploying them to stage.
- Stage testing. Product functional tests run, then custom functional tests and custom UI tests if your program has them, then the experience audit. The experience audit is informational. The test steps can stop the run.
- Production deployment. The release is applied to production as a rolling deployment. Author is updated first, then the publish and Dispatcher instances, one set at a time, so the site stays available.
Custom functional tests run in every stage testing phase. If your project has no tests, the step is marked Not performed, with a note that no tests were found in your source code repository. The run carries on, so a finished run does not prove your tests ran. Open the step to see what executed. Non-production deployment pipelines run the same test steps after deploying to the development environment.
To start a production deployment from the overview page, use the call-to-action card at the top, or start the production pipeline from the Pipelines card. The run opens on the pipeline execution page, which lists each phase and step. A paused run waits for approval before the production phase, and a Business Owner, Deployment Manager or Program Manager approves it.
A run does not wait forever. The Code Quality, Security Testing and Performance Testing steps, Application for Approval and Schedule Production Deployment each time out after 14 days if nobody responds. A timed-out run has to be started again.
If the production deployment step fails, you can re-execute it. Re-execution is available only for the last production deployment execution, and only for the production deployment step. It is not available for push update executions, which Adobe starts to apply AEM updates. A failure in the build, the quality checks or stage testing needs a new run, usually with a fixed commit, not a re-execution.
Hands-on: from clone to production deployment
The steps below use the mysite program 12345. You need the Developer role to clone and read runs. Creating pipelines needs the Deployment Manager role, and starting one by hand needs a Deployment Manager or Business Owner, so ask for the role if you need it.
Step 1: Get the repository URL and clone it
On the program overview page, choose Access Repo Info in the Pipelines card. Choose Generate password and confirm. Copy the password and save it. Then clone the repository, using the URL from the Repository Info dialog. When Git asks for credentials, use the user name from the dialog and the password you just generated.

git clone <repository-url-from-Repository-Info> mysite
cd mysite
git checkout -b feature/search-timeout
Step 2: Set the Java version and commit the build settings
Create the .cloudmanager folder, set the Java version to 21, and make sure the build works locally with the same version. Commit the file on the feature branch, not on main, so the change stays with the feature.
mkdir -p .cloudmanager
echo "21" > .cloudmanager/java-version
java -version
mvn --batch-mode org.jacoco:jacoco-maven-plugin:prepare-agent package
git add .cloudmanager/java-version
git commit -m "Build with JDK 21 for Cloud Manager"
git push -u origin feature/search-timeout
Step 3: Create a non-production code quality pipeline
In Cloud Manager, open the Pipelines card and choose Add, then Add Non-Production Pipeline. On the Configuration step, choose Code Quality Pipeline, give it a name such as CQ search-timeout, and set Deployment Trigger to On Git Changes so every push starts a run. On the Source Code step, choose Full Stack Code, then select the repository, the feature/search-timeout branch and the build strategy.

Step 4: Create the production pipeline with its failure behaviour
Create a production pipeline against the release branch, with stage and production targets. Enable Pause before deploying to Production. For the setting that controls important quality failures, choose from Ask every time, Fail Immediately or Continue Immediately. Use Ask every time unless your team has an agreed reason to change it. Scheduled lets you choose when the production deployment runs, which helps when releases need a fixed window.

Step 5: Run the code quality pipeline and read the run
The pipeline uses the On Git Changes trigger, so a push to the branch starts it. An empty commit is a quick way to start a run without changing code. A Deployment Manager or Business Owner can also start it from the pipeline menu. Open the run, read the step list and open the log for any failed step. The run shows each phase with its duration. Compare the step durations with an earlier run to see whether a change slowed the build. Each step shows its duration and the change against earlier runs, such as -12%, with View details and Download log. On the Code Scanning step, Review Summary opens the Code Scanning Results, grouped into Critical, Important and Information. A Critical failure stops the run. An Important failure follows the pipeline’s failure behaviour, and once someone approves it the step shows Overridden. Lesson 10 explains the coverage rating.
git commit --allow-empty -m "Trigger code quality run"
git push

Step 6: Start a production deployment through the call-to-action
When the release branch passes its code quality run, merge the feature branch into it. Then start the production deployment from the program overview. With the Manual trigger, a Business Owner or Deployment Manager starts it. Approve the production phase when the pipeline pauses for it. The approved build is the one that passed stage, so production gets exactly what you tested.

Common problems and troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Build uses JDK 8 unexpectedly | .cloudmanager/java-version is missing or not on the branch the pipeline builds | Commit the file on that branch and confirm the value is 25, 21, 17 or 11. |
| Dependency download fails over HTTP | Maven 3.8.1 and later block HTTP repository mirrors | Change the repository URL to HTTPS in settings.xml or the pom.xml. |
| A package is built but not deployed | cloudManagerTarget is set to none, or the module does not produce the package | Check the module’s packaging configuration and the target folder in the build log. |
| Dispatcher change does not appear in a full-stack run | The web-tier configuration is ignored, or a separate web-tier pipeline is expected | Check the full-stack pipeline’s Ignore Web Tier Configuration setting, then run the web-tier pipeline if you need it. |
| Cannot add a second full-stack pipeline | Only one full-stack pipeline is allowed per environment | Edit the existing pipeline, or use a front-end or config pipeline for the second change. |
| Run shows an old result after a push | Build artifact reuse picked up an earlier build of the same commit, Smart Build reused a cached module, or the run built a different commit | Confirm the commit hash in the Build & Unit Testing step. Set CM_DISABLE_BUILD_REUSE to true, or switch the pipeline to Full Build, for a fresh build. |
| Run does not start and the Run option is missing | The Developer role cannot start pipelines | Use a pipeline with the On Git Changes trigger, or ask a Deployment Manager or Business Owner to start it. |
| Repository password no longer works | Generating a new password invalidated the previous one | Use the password from the latest generation. Store it immediately. |
| Production deployment is stuck waiting | The pause before production is waiting for approval | Ask a Business Owner, Deployment Manager or Program Manager to approve the run. The approval times out after 14 days. |
Note:- Avoid cancelling a run during a deployment step. Let the run finish, then fix the problem in a new run.
Hands-on challenge
Create a second non-production code quality pipeline on a branch named feature/java17-check. Set the Java version file to 17 on that branch. Set its build strategy to Smart Build. Run the pipeline twice, first with no changes and then with a one-line change in core. Compare the build time of the two runs in the pipeline details, and note any difference.
Then answer one question in a comment on your pull request: why does a Java 17 build on one branch not affect the production pipeline, which builds from the release branch?
Key takeaways
- A program holds the environments, the pipelines and one Git repository. Developers use the repository, push code and read runs. Deployment Managers configure and start the pipelines.
- The build reads
.cloudmanager/java-versionfrom the branch. Without it, the build uses JDK 8. Smart Build rebuilds only changed modules. - Pick the pipeline type by what changed: full-stack for code and content, front-end for theme builds, web tier for Dispatcher, and config for targeted YAML settings.
- A production deployment runs stage deployment, stage testing and a rolling production deployment. A pause before production waits for approval.
- Re-execution is for a failed production deployment step on the last execution only. Other failures need a new run.
Knowledge check
Which file tells Cloud Manager which JDK to use for the build?
.cloudmanager/java-version in the repository. If it is missing, the build uses JDK 8. Valid values are 25, 21, 17 and 11.
Can a developer start a pipeline from Cloud Manager?
No. Starting a pipeline needs the Business Owner or Deployment Manager role. A developer starts a run by pushing to a branch whose pipeline uses the On Git Changes trigger.
How many full-stack pipelines can an environment have?
One. Use a front-end, web-tier or config pipeline for any other change to that environment.
Which pipeline type should deploy a targeted YAML setting such as log forwarding?
A config pipeline. It reads a YAML file that names the kind, the version and the environment types it targets.
What happens to a production deployment step that failed, and how do you retry it?
You can re-execute it, but only the last production deployment execution and only for the production deployment step. Earlier failures need a new run from a new commit.
Why is a passing stage test step not, by itself, proof that your tests ran?
If the project has no custom tests, the custom functional and UI test steps are marked Not performed and the run carries on. Check each step for what actually executed.
Frequently asked questions
Do I need a pipeline for every branch?
No. A code quality pipeline on a feature branch is enough for most work. Create a deployment pipeline only for a branch that needs to reach a development environment or the release path.
Can I deploy from my laptop to a cloud environment?
Not for development, stage or production. Pipelines are the supported route for those environments. The RDE is the exception, and it has its own CLI workflow covered in the environments lesson.
What is the difference between a pipeline and a run?
A pipeline is the configuration: its source, branch, type and settings. A run is one execution of that pipeline against one commit, with its own phases, logs and result.
Why did my run not start?
Check that the branch exists and has a commit, and that the pipeline is not already running. A pipeline with the Manual trigger only starts when a Business Owner or Deployment Manager runs it. Open the pipeline and read its status for the reason it did not start.
How long does a paused production deployment wait?
Up to 14 days. If nobody approves or rejects it by then, the Application for Approval step times out and the run ends. Start a new run when you are ready to release.
Continue your learning
- Previous lesson: Lesson 12, AEMaaCS environments: RDE vs dev, stage and production.
- Next lesson: Lesson 14, Fix Cloud Manager pipeline failures and quality gates. See the AEM Cloud roadmap for its status.
- Practice: the Cloud Manager practice test.
- Roadmap: AEM as a Cloud Service learning path.
Leave a Reply