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?
- 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, suchd:\test\bitfrost
include items: folders , files want delete , separate comma (
,
). such delete foldertemp
, file*.txt
, can specifytemp,*.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 inbifrost
.
Comments
Post a Comment