Spunny Posted August 1, 2023 Share Posted August 1, 2023 Hi All, We are using Azure Devops TFSVC and creating CI\CD for angular applications using classic build. In release pipeline, I have a requirements to copy artifacts to a shared folder on some other server. Requirement is shared folder has certain static files and folders which should not be deleted. I tried to use Delete Files task. This is how delete files task is: Source Folder: \\server1\sharedFolder$ contents: \\server1\sharedFolder$\!(subfolder1) \\server1\sharedFolder$\!*.config Found out that Delete Files task can be used to delete files only on agent server and not on remote servers even if you specify path. In order to delete files on another server, need to use powershell or powershell on Target Machines task. We prefer not to mention username or password in release pipelines. Build Agent service account has full control to this remote server shared folder. Please suggest how to take care of this in release pipeline. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.