#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.
This commit is contained in:
@@ -481,10 +481,24 @@
|
|||||||
<goals>
|
<goals>
|
||||||
<goal>sshexec</goal>
|
<goal>sshexec</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration> <!-- Prevent reformatting, wrap with CDATA -->
|
||||||
<commands>
|
<commands>
|
||||||
<command>find /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \;</command>
|
<command>
|
||||||
<command>find /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \;</command>
|
<![CDATA[
|
||||||
|
if [ -d /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version}/ ]
|
||||||
|
then
|
||||||
|
find /var/www/domains/spring.io/www/htdocs/autorepo/schema/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \;
|
||||||
|
fi
|
||||||
|
]]>
|
||||||
|
</command>
|
||||||
|
<command>
|
||||||
|
<![CDATA[
|
||||||
|
if [ -d /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version}/ ]
|
||||||
|
then
|
||||||
|
find /var/www/domains/spring.io/www/htdocs/autorepo/docs/${dist.id}/${project.version}/ ! -perm -g=w -exec chmod g+w {} \;
|
||||||
|
fi
|
||||||
|
]]>
|
||||||
|
</command>
|
||||||
</commands>
|
</commands>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|||||||
Reference in New Issue
Block a user