Skip to content
Snippets Groups Projects
Commit ecc1d330 authored by Frédéric Dalleau's avatar Frédéric Dalleau
Browse files

dry-run the rsync step


Signed-off-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
parent 8da0cbae
Branches T4489
No related tags found
No related merge requests found
......@@ -8,16 +8,11 @@ properties(
def uploadDirectory(source, target, upload = true) {
if (!upload) {
println "Skipping upload of ${source} to ${target}"
return
}
sshagent (credentials: [ "5a23cd79-e26d-41bf-9f91-d756c131b811", ] ) {
env.NSS_WRAPPER_PASSWD = "/tmp/passwd"
env.NSS_WRAPPER_GROUP = '/dev/null'
sh(script: 'echo docker:x:$(id -u):$(id -g):docker gecos:/tmp:/bin/false > ${NSS_WRAPPER_PASSWD}')
sh(script: "LD_PRELOAD=libnss_wrapper.so rsync -e \"ssh -oStrictHostKeyChecking=no\" -aP ${source} archive@images.apertis.org:/srv/images/public/${target}/")
sh(script: "LD_PRELOAD=libnss_wrapper.so rsync --dry-run -e \"ssh -oStrictHostKeyChecking=no\" -aP ${source} archive@images.apertis.org:/srv/images/public/${target}/")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment