0

In Azure git repo, I have taken sample react app code as shown below, enter image description here

then I have to host this in app service using Azure DevOps so I created CI & CD pipeline as shown in below images, CI pipeline

enter image description here

CD pipeline enter image description here

It's working fine now in the same way our development team give some react/spx app code in git repo now I want to host/deploy those into SharePoint. for this I need to set up CI/CD pipeline. As I am new to DevOps I am not sure about this setup. Please help me out.

When development team pushes code into git repo the pipeline automatically trigger and that should be hosted/deployed into sharepoint. The development team building code is related to custom screens for SharePoint.

1 Answer 1

1

To deploy your app to SharePoint, you can refer to this SharePoint's official doc Implement Continuous Integration and Continuous deployment using Azure DevOps. This article explains the steps involved in setting up your Azure DevOps environment with Continuous Integration and Continuous Deployment to automate your SharePoint Framework builds, unit tests, and deployment.

You can also refer to this blog Deploying SPFx apps with Azure DevOps pipelines, which demonstrates how to create build & release pipelines in Azure DevOps to build and deploy an SharePoint Framework application.

To trigger your build pipeline when the team push code into the repo, go to your pipeline, click Triggers -> check Enable continuous integration. enter image description here

To trigger the release pipeline when the build is complete, go to edit your release pipeline, click Continuous deployment trigger and enable it. enter image description here

Learn more about trigger in the DevOps pipeline, see Specify events that trigger pipelines.

Sign up to request clarification or add additional context in comments.

5 Comments

thanks for your response but i know how to enable trigger for automation and i also seen the documents you are refering but as you can see in my images in that way i want clear images & ci ,cd pipeline set for sharepoint. Can you please provide those.
I am bit confused in setup CI,CD for my requirement . So please provide those images & details please.
In the official document and blog I shared, there are very detailed steps including the tasks used and the corresponding parameters. Could you please elaborate on where you are confused?
Thank you . yes i will go through those documents again & get back to you. Meanwhile can you please let me know what credentials/information do i need to get from sharepoint team to perform those CI /CD set up as per your docuements.
If you are referring the official doc, you will need a username and a password to connect to SharePoint at step "Connecting to SharePoint Online". If you are referring to the blog, you will use an Entra ID Application Registration and authenticate using the client credentials grant flow with a certificate. You can directly use the PowerShell scripts in the blog.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.