Yaml file to create CICD pipeline for Adobe Cloud Manager | Community
Skip to main content
Level 2
August 29, 2024
Solved

Yaml file to create CICD pipeline for Adobe Cloud Manager

  • August 29, 2024
  • 1 reply
  • 1435 views

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  

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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/using-cloud-manager/cicd-pipelines/configuring-production-pipelines 

 

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-342525fb13c0 

1 reply

arunpatidar
Community Advisor
Community Advisor
August 29, 2024

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/using-cloud-manager/cicd-pipelines/configuring-non-production-pipelines#full-stack-code 

Arun Patidar
Level 2
August 29, 2024

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 ?