summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-10-12 18:04:23 +0200
committerHolger Levsen <holger@layer-acht.org>2016-10-12 18:13:52 +0200
commit3d39a1dac89946d07d7771055e2f56d533384ebc (patch)
treeb023a78ac21fc1884555867a64294a3f2d965395 /bin
parent8bb746383a6fefc533ee6bd559569b7fc0782d2f (diff)
downloadjenkins.debian.net-3d39a1dac89946d07d7771055e2f56d533384ebc.tar.xz
jenkins_node_wrapper: allow to push files to /srv/reproducible-results/
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jenkins_node_wrapper.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index c2c8875c..67c7e0b4 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -82,6 +82,9 @@ elif [ "$*" = "reproducible_nodes_info" ] ; then
exec /srv/jenkins/bin/reproducible_info.sh ; croak "Exec failed";
elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then
exec /srv/jenkins/bin/reproducible_build.sh "$2" "$3" "$4" "$5" ; croak "Exec failed";
+elif [[ "$*" =~ ^rsync\ --server\ .*\ \.\ /srv/reproducible-results/.* ]] ; then
+ # allow to push files to /srv/reproducible-results/
+ exec rsync --server "$3" . "$5" ; croak "Exec failed";
elif [[ "$*" =~ ^rsync\ --server\ --sender\ .*\ \.\ /srv/reproducible-results/.* ]] ; then
exec rsync --server --sender "$4" . "$6" ; croak "Exec failed";
elif [[ "$*" =~ ^rsync\ --server\ --sender\ .*\ \.\ /var/lib/jenkins/userContent/reproducible/.* ]] ; then