File Operations

File manipulation and archive operations for copying files and uploading files to FirmwareCI.

Archive

Upload files from the test environment or host to your FirmwareCI job report.

AttributeTypeRequiredDefaultDescription
cmdconstYesarchiveCommand name
namestringYesUnique identifier for the test step (shown in reports, logs, and WebUI)
transportTransportObjectNoTransport options
optionsOptionsObjectNoAdditional command options
parametersArchiveOptionsYesArchive-specific parameters

Archive Options

AttributeTypeRequiredDefaultDescription
pathstringYesPath to the file to upload
namestringNoCustom name for the uploaded file (defaults to original file name if not set)

Archive Example

cmd: archive
name: Upload OS release info
transport: *transport
options:
  timeout: 1m
parameters:
  path: "/etc/os-release"
  name: "os-infos.txt"

Copy

Copy files to the DUT.

AttributeTypeRequiredDefaultDescription
cmdconstYescopyCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectNoAdditional transport options
optionsOptionsObjectNoAdditional command options
parametersCopyOptionsYesOptions passed into the copy cmd

Copy Options

AttributeTypeRequiredDefaultDescription
sourcestringYesSource Location of the file to copy to the DUT.
destinationstringYesDestination Location of the file to copy to the DUT
recursiveboolNofalseCopy recursively
variablestringNoSpecifies the name of the variable in which to store the destination path.
permissionsstringNopreserveFile permissions for the copied file/directory. Can be octal mode (e.g., 0755, 0644) or preserve for source permissions.
ownerstringNoOwner of the copied file/directory. Can only be UID (e.g., 1000).
groupstringNoGroup of the copied file/directory. Can only be GID (e.g., 1000).

Copy Example

cmd: copy
name: Copy some tooling to DUT
transport: *transport
parameters:
  source: "[[storage.my-tooling]]/tool"
  destination: /tmp/tool
  recursive: true
  variable: toolpath
  permissions: "0755"
  owner: 1000
  group: 1000