vsts - Ignore files within the 'Delete Files Task' -


as part of install scripts visual studio online (vso / vsts) delete files in directory shortly after uninstalling services.

we have configuration files , logs i'd preserve everytime try tell 'delete files task' ignore files deletes them anyway.

what want files in bifrost directory deleted except for

  • the logs folder
  • app.connections.config
  • app.queues.config

can please?

enter image description here

  • if files want delete located in agent folder or subfolder of agent machine, can use delete files task. because source folder of delete files task can specified agent machine.
  • if files want delete located on remote machine, should use powershell task or remotedelete task delete files.

    for powershell task, there many powershell script on web delete files remote machine.

    for remotedelete task, can set below:

    input remote machine’s ip, username , password.

    path: directory bifrost folder, such d:\test\bitfrost

    include items: folders , files want delete , separate comma (,). such delete folder temp , file *.txt, can specify temp,*.txt

    exculde items: folders , files want keep. situation, should specify logs,app.connections.config,app.queues.config

    note: include items option can't leave empty or use **, otherwise delete files , folders in bifrost.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -