Azure DevOps CI Pipeline

  1. Create a new Pipeline

Go to Pipeline and create New Pipeline

Azure_Cloud_Ashish
  • Select Repository and Continue
Azure_Cloud_Ashish
  • Chose the template as ‘ASP.NET’ and Apply
Azure_Cloud_Ashish
  • Update the ‘Nuget Restore’ task to use the ‘nuget.config’
Azure_Cloud_Ashish
  • In Build Solution Task, remove the argument in MSBuild Arguments “p:PackageLocation=”$(build.artifactStagingDirectory)” because when the projects are getting build we don’t need to package the output artifact repository.
Azure_Cloud_Ashish
  • Add a new task ‘npm Install’

Select the ‘Build’ as working folder

Azure_Cloud_Ashish
Azure_Cloud_Ashish
  • Add a new task ‘gulp’

Update the gulp Task Name as ‘CI-Build’, which we added to the gulp.js in the previous step.

Azure_Cloud_Ashish

  • Add a new task ‘Archive Output’, using by which we can add the ‘output’ folder contents to the ‘.zip’ file
Azure_Cloud_Ashish
  • Check YML pipeline file with following changes:
Azure_Cloud_Ashish
  1. Save Change and Run Pipeline
Azure_Cloud_Ashish

I hope this article will help you to configure the DevOps!

Please let me know if you have any specific issue.

Connect me on Twitter – https://twitter.com/sitecore_ashish or Linkedin – https://www.linkedin.com/in/ashishbansal9/

Happy Sitecoring and Cloud

Leave a Reply

Your email address will not be published.