RemoteLinux: Add an rsync deploy step

Using rsync enables proper incremental deployment and is particularly
helpful when larger files are involved.
We check whether rsync works as part of the device test. If it does, it
becomes the default deploy step, otherwise we fall back to SFTP.

Change-Id: I6ab938ccd5acd7e0cbe07b90b6938dccad19bba5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2018-12-14 15:41:59 +01:00
parent e6a71fb43d
commit 1dfa7279d4
19 changed files with 421 additions and 15 deletions

View File

@@ -286,4 +286,14 @@ DeviceEnvironmentFetcher::Ptr LinuxDevice::environmentFetcher() const
return DeviceEnvironmentFetcher::Ptr(new LinuxDeviceEnvironmentFetcher(sharedFromThis()));
}
void LinuxDevice::setSupportsRsync(bool supportsRsync)
{
setExtraData("RemoteLinux.SupportsRSync", supportsRsync);
}
bool LinuxDevice::supportsRSync() const
{
return extraData("RemoteLinux.SupportsRSync").toBool();
}
} // namespace RemoteLinux