neilpeterson / azure-blueprints-pipeline-tasks

MIT License
17 stars 16 forks source link

Clean out artifacts before a blueprint update #13

Closed ajf214 closed 5 years ago

ajf214 commented 5 years ago

If the blueprint already exists, the task should delete all existing artifacts. Otherwise artifacts from old versions of the source code will remain in the blueprint. The source code should be the source of truth, so the blueprint should always have only the artifacts that are in source. The API does not natively support this, so artifacts will need to be manually cleaned out by the task before a new set of artifacts is uploaded.

neilpeterson commented 5 years ago

@ajf214 I've added this functionality in this PR. I will merge and publish the updated extension after Build.

https://github.com/neilpeterson/azure-blueprints-pipeline-tasks/pull/17

neilpeterson commented 5 years ago

@ajf214 v1.1.f has been published which includes this functionality.