diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-11-04 22:35:18 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-11-04 22:49:29 +0100 |
commit | e281538194e36e5dc2df3ca5e57ddb90cc25e29a (patch) | |
tree | ade6e3333adc098cec83ac8298fc14d6bef8883b /bin/jenkins_node_wrapper.sh | |
parent | f737b8c605da4ff991b75a8fa1881d82f2608a48 (diff) | |
download | jenkins.debian.net-e281538194e36e5dc2df3ca5e57ddb90cc25e29a.tar.xz |
jenkins_node_wrapper: whitelist rsync --server /srv/workspace/chroots/.
LEDE is using now /srv/workspace/chroots as build folders.
Because LEDE is require this whitelist because it's downloading
all source files on pb3 in one run and rsync'ing /dl folder to the
jenkins-runner and from there to pb4.
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/jenkins_node_wrapper.sh')
-rwxr-xr-x | bin/jenkins_node_wrapper.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh index 57ab5ea7..7413b0ad 100755 --- a/bin/jenkins_node_wrapper.sh +++ b/bin/jenkins_node_wrapper.sh @@ -86,6 +86,9 @@ elif [[ "$*" =~ ^rsync\ --server\ --sender\ .*\ \.\ /var/lib/jenkins/jobs/.*/wor exec rsync --server --sender "$4" . "$6" ; croak "Exec failed"; elif [[ "$*" =~ ^rsync\ --server\ .*\ \.\ /srv/d-i/isos/ ]] ; then exec rsync --server "$3" . "$5" ; croak "Exec failed"; +elif [[ "$*" =~ ^rsync\ --server\ .*\ \.\ /srv/workspace/chroots/.* ]] ; then + # LEDE is using this to share files between master node1 node2. + exec rsync --server "$3" . "$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"; |