From c326cc213b7123311259a6452106a49596717bcf Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 6 Jun 2017 11:41:17 +0200 Subject: [PATCH] #364 - 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 fb43fd64..743407e5 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -481,10 +481,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 {} \; + + + + + +