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
  • 1443 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   

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/using-cloud-manager/cicd-pipelines/introduction-ci-cd-pipelines#full-stack-pipeline

 

 

arunpatidar
Community Advisor
Community Advisor
August 30, 2024

@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 


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