-1

I am having Azure DevOps pipeline using Ansible task, current execution time is around 24 mins but I want to bring it down to under 10 mins. I see multiple ARM template taking maximum of the time and those template does not have any changes. is there anyway in Azure or Ansible by which pipeline can determine the delta changes or deploy only if there is a change in the template ?

sushant kumar
  • 91
  • 1
  • 11

1 Answers1

0
  • We can determine the changes if we have a change in a specific template, and we can deploy that modified template only.

  • For this you need to retrieve that modified template filename in your script for your pipeline.

  • And then add the paths trigger to the specific template file in pipeline.

Example:

trigger: 
  paths:
    include: 
    - pathTo/template1.json
...

 - task: ARGDeployment@2
      inputs:
        ....
        templateLocation: 'Linked artifact'
        csmFile: '**\template1.json'
  • Reference: Similar kind of SO fixed here, sharing this for your reference.
RajkumarPalnati
  • 541
  • 2
  • 6