Skip to content

File Copier Tasks YAML

Richard Fennell edited this page Oct 25, 2018 · 7 revisions

FileUtilities

The FileUtilities package contains the following tasks. The table show the possible variables that can be used in YAML Azure DevOps Pipeline configurations

FileCopyTask

Copies files between locations

Variables

Name: sourceFolder

  • Description: The source folders, comma delimited
  • Type: string
  • Required: True
  • Default:

Name: targetFolder

  • Description: The target folder
  • Type: string
  • Required: True
  • Default:

Name: include

  • Description: The files types to match, comma delimited
  • Type: string
  • Required: True
  • Default: *

Name: filter

  • Description: The file pattern to match
  • Type: string
  • Required: True
  • Default: *

GetArtifactFromUncShareTask

Gets the contents of a remote TFS server build's drop location

Variables

Name: tfsUri

Name: teamproject

  • Description: The name of the source team project
  • Type: string
  • Required: True
  • Default:

Name: defname

  • Description: The name of the build definition.
  • Type: string
  • Required: True
  • Default:

Name: artifactname

  • Description: The name of the build artifact.
  • Type: string
  • Required: True
  • Default:

Name: buildnumber

  • Description: Number of the build to download (if blank latest complete build used)
  • Type: string
  • Required: False
  • Default:

Name: username

  • Description: User name to access remote server (if blank default creds. used)
  • Type: string
  • Required: False
  • Default:

Name: password

  • Description: Password to access remote server (if blank default creds. used)
  • Type: string
  • Required: False
  • Default:

Name: localdir

  • Description: The root directory to store the artifact in, defaults to $(SYSTEM.ARTIFACTSDIRECTORY)
  • Type: string
  • Required: True
  • Default: $(SYSTEM.ARTIFACTSDIRECTORY)

XmlFileUpdateTask

Update an attribute in an Xml file based on XPath filter

Variables

Name: filename

  • Description: The file to update e.g: $(SYSTEM.ARTIFACTSDIRECTORY)\myfile.dll.config
  • Type: string
  • Required: True
  • Default:

Name: xpath

  • Description: The Xpath query to select a node e.g: /configuration/appSettings/add[@key='A variable']
  • Type: string
  • Required: True
  • Default:

Name: attribute

  • Description: The attribute name to update e.g. value (if not set InnerText of node will be updated)
  • Type: string
  • Required: False
  • Default:

Name: value

  • Description: The new value to set e.g. 'new value'
  • Type: string
  • Required: True
  • Default:

Name: recurse

  • Description: If true will search for files recursivally, default is true.
  • Type: boolean
  • Required: False
  • Default: True
Clone this wiki locally