WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.
MIT License
186 stars 116 forks source link

Update Web Resources Regular Expression #288

Closed tklooster closed 4 years ago

tklooster commented 4 years ago

Hi All,

I'm trying to figure out the regular expression on Update Web Resources. I've tried the help syntax (new*?(filename), new($FileName) and other syntax but I either get 'Sequence contains more than one matching element' or 'No matching elements'. It only works if I put the full filename but then only one resource is updated. My resource names are in multiple folders like new_/folder1/folder2/webresource.js, etc. I have my Web Resource folder path set to something like ProjectName/WebResources/Scripts and it is finding the files. Can anyone help with this? Thanks.

tklooster commented 4 years ago

My mistake. I was using () not {} and including the file extension which is included in {filename}. So, for me it was new_/folder1/folder2/{filename}. Thanks again for the great tool Wael!