@@ -23,7 +23,7 @@ function create_remote_dir()
23
23
# For this hack $base_dir is just an arbitrary existing directory
24
24
# It doesn't matter which one
25
25
# No files will be copied from it anyway because of the exclude parameter
26
- rsync -a --exclude=' *' " $base_dir " / " $1 "
26
+ rsync -e ssh - a --exclude=' *' " $base_dir " / " $1 "
27
27
fi
28
28
}
29
29
37
37
# the final remote directory to store it
38
38
# So let's just store it in the top-level so we have a trace
39
39
# of the build start or very early failures
40
- rsync -a " $log_file " " $host " /build-logs
40
+ rsync -e ssh - a " $log_file " " $host " /build-logs
41
41
else
42
42
# Now the subdirectory to store the log file is is known
43
43
# In addition group per month to simplify navigation even more
46
46
create_remote_dir " $host " /build-logs/$remote_branch_dir
47
47
create_remote_dir " $host " /build-logs/$remote_branch_dir /$month_part
48
48
49
- rsync -a " $log_file " " $host " /build-logs/$remote_branch_dir /$month_part
49
+ rsync -e ssh - a " $log_file " " $host " /build-logs/$remote_branch_dir /$month_part
50
50
51
51
# Finally remove the initially start build log uploaded earlier
52
52
# Disable fatal error handling though to prevent the complete script from exiting
53
53
# if no early build log exists
54
54
echo " Removing initial startup build log uploaded earlier"
55
55
set +ex
56
- rsync -rv --delete --include=" $( basename $log_file ) " --exclude=' *' " $base_dir " / " $host " /build-logs/
56
+ rsync -e ssh - rv --delete --include=" $( basename $log_file ) " --exclude=' *' " $base_dir " / " $host " /build-logs/
57
57
set -ex
58
58
fi
59
59
fi
0 commit comments