Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Yaml file to create CICD pipeline for Adobe Cloud Manager

Avatar

Level 2

I have written yaml file for create CI/CD pipeline by installing maven pkg , deploy to stage/production  followed by checkout branch and push it to master .

 

But pl buddy check and  need help  if anything missing .As I need 

1.Proper Yaml file to create CI/CD Pipeline 

2. Include tools like git, maven, sonar,webpack,github actions

======

name: CI/CD pipeline for installing Maven Pkg
trigger:
  batch: true
  branches:
    include:
    - master

variables:
- name: remote_aem_git
  git_url : https://<>.remote_aem.git
 
# Define the pipeline stages
  stages:
    - name: Checkout Branch
      steps:
        - name: Checkout branch
          scripts:
          git checkout -b feature/aem-kx

    - name: Build and Test
      steps:
        - name: Build
# Build first AEM project
          script: |
          mvn clean install -P autoInstallPackage
   
# Run code quality checks
    - name: Code Quality Check
        script: |
        mvn sonar:sonar

# Run unit tests
    - name: Unit Tests
        script: |
        mvn test

# Deploy to the staging environment
    - name: Deploy to Stage
      steps:
        - name: Deploy
          script: |
          mvn -P autoInstallPackage -D env=stage

# Run performance tests
    - name: Performance Testing
      steps:
        - name: Performance Test
          script: |
          mvn -P performanceTest

# Deploy to the production environment
    - name: Deploy to Production
      steps:
        - name: Deploy
          script: |
          mvn -P autoInstallPackage -D env=prod

    - name: Push Changes
      steps:
        - name: Commit and push
# Add , commit and push changes
          scripts:
          git add .
          git commit -m " new changes"  
          git push origin feature/aem-kx  

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @HrishikeshDu 

You can't create adobe pipeline using yaml file. you have to create pipeline in advance.

There are predefine steps, you can't modify that either.

Please check PROD/STAGE pipeline, which refer as production pipeline in Adobe

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi... 

 

Yes, you can commit code in Adobe repo or you can sync from Gitlab to Adobe repo

https://medium.com/tech-learnings/sync-external-git-repository-to-cloud-manager-repository-342525fb1... 



Arun Patidar

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @HrishikeshDu 
Could you please share the adobe document which you have referred for this. AFAIK, you can only create pipeline via Cloud manager API or using UI but not using yaml file.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi... 



Arun Patidar

Avatar

Level 2

Hi @arunpatidar  Thanks for reply and confirmation .

I have referred Gitlab CICD Yaml syntax to prepare this yaml file but not Adobe one  as I didnt find any document refernce for creation of yaml file for CICD pipeline 

https://docs.gitlab.com/ee/ci/yaml/index.html

 

Is there any document which says not to use yaml file while creating pipeline for adobe cloud manager

 

Does " Full Stack Code" includes all necessary stuffs for creating pipeline for adobe cloud manager ? 

Avatar

Level 2

Hi @arunpatidar   

How to create CI/CD pipeline for the CI/CD tools like Git, Maven, Webpack, Github Action to deploy them to Stage and prod in Adobe cloud manager .

 

As  you said earlier , Full Stack code pipeline is the solution  .I have gone through - Full Stack Pipeline to understand this ..But having doubt as how we can commit /trigger pipeline for those ci/cd tools to be injected into adobe cloud manager ? https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...

 

 

Avatar

Correct answer by
Community Advisor

Hi @HrishikeshDu 

You can't create adobe pipeline using yaml file. you have to create pipeline in advance.

There are predefine steps, you can't modify that either.

Please check PROD/STAGE pipeline, which refer as production pipeline in Adobe

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi... 

 

Yes, you can commit code in Adobe repo or you can sync from Gitlab to Adobe repo

https://medium.com/tech-learnings/sync-external-git-repository-to-cloud-manager-repository-342525fb1... 



Arun Patidar

Avatar

Level 2

@arunpatidar  Since am beginner and new to adobe cloud manager , i would like to learn as how to create pipeline in advance ? which tool needs to use for the same if  not this in yaml 

Avatar

Community Advisor

Hi @HrishikeshDu 
You can use UI to create any pipeline in Adobe Cloud Manager. If you want to achieve pragmatically then you can use HTTP REST API or CLI

https://developer.adobe.com/experience-cloud/cloud-manager/ 



Arun Patidar