From fdc20b9071f3400e13cdb60d2e0a469343fc3d62 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 6 Jun 2017 11:41:17 +0200 Subject: [PATCH] #363 - Conditionally update documentation and schema target permissions. We now skip documentation and schema permission updates if these directories are not present on the remote server. Directories can be absent if a particular module does not ship with a schema or documentation. Unconditional permission updates let find exit with a non-zero return code which causes the build to fail. --- parent/pom.xml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/parent/pom.xml b/parent/pom.xml index 13b0a49e..b265fe9b 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -522,10 +522,24 @@ sshexec - + - find /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \; - find /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \; + + + + + +