Jump to content

TFSVC CI\CD for angular projects


Recommended Posts

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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...