<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>File Operations :: FirmwareCI</title><link>https://docs.firmware-ci.com/references/2_commands/file-operations/index.html</link><description>File manipulation and archive operations for copying files and uploading files to FirmwareCI.
Archive Copy</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://docs.firmware-ci.com/references/2_commands/file-operations/index.xml" rel="self" type="application/rss+xml"/><item><title>Archive</title><link>https://docs.firmware-ci.com/references/2_commands/file-operations/archive/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.firmware-ci.com/references/2_commands/file-operations/archive/index.html</guid><description>Upload files from the test environment or host to your FirmwareCI job report. Over SSH, the step reads the file with SFTP, so the SSH server on the target must offer SFTP.
Attribute Type Required Default Description cmd const Yes archive Command name name string Yes Unique identifier for the test step (shown in reports, logs, and WebUI) transport TransportObject No Transport options options OptionsObject No Additional command options parameters ArchiveOptions Yes Archive-specific parameters Archive Options Attribute Type Required Default Description path string Yes Path to the file to upload name string No Custom 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"</description></item><item><title>Copy</title><link>https://docs.firmware-ci.com/references/2_commands/file-operations/copy/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.firmware-ci.com/references/2_commands/file-operations/copy/index.html</guid><description>Copy files to the DUT. Over SSH, the step writes the files with SFTP, so the SSH server on the DUT must offer SFTP.
Attribute Type Required Default Description cmd const Yes copy Command Name name string Yes Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI transport TransportObject No Additional transport options options OptionsObject No Additional command options parameters CopyOptions Yes Options passed into the copy cmd Copy Options Attribute Type Required Default Description source string Yes Source Location of the file to copy to the DUT. destination string Yes Destination Location of the file to copy to the DUT recursive bool No false Copy recursively variable string No Specifies the name of the variable in which to store the destination path. permissions string No preserve File permissions for the copied file/directory. Can be octal mode (e.g., 0755, 0644) or preserve for source permissions. owner string No Owner of the copied file/directory. Can only be UID (e.g., 1000). group string No Group 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</description></item></channel></rss>