[ 
https://issues.apache.org/jira/browse/WAGON-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16363695#comment-16363695
 ] 

Dennis Lundberg commented on WAGON-496:
---------------------------------------

The reason why chmod has an exit code of 1 in our case is because of file 
permissions. The user doing the deploy does not own the directory into which 
the site is being deployed, so it is not allowed to change the file mode bits 
for it. However the user has write permissions on the directory through group 
permissions, so it was successful in deploying the files.

> site-deploy using wagon-ssh broke in 2.12 because of the fix for WAGON-465
> --------------------------------------------------------------------------
>
>                 Key: WAGON-496
>                 URL: https://issues.apache.org/jira/browse/WAGON-496
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-ssh
>    Affects Versions: 2.12, 3.0.0
>            Reporter: Dennis Lundberg
>            Priority: Major
>
> The fix for WAGON-465 unfortunately broke backwards compatibility with 
> version 2.10 when using maven-site-plugin together with wagon-ssh. The first 
> commit had correct code for backwards compatibility, but that commit was 
> reverted. The next commit did not include the correct code for backwards 
> compatibility.
> When using wagon-ssh with maven-site-plugin the call to 
> AbstractJschWagon.executeCommand() is done with the one-parameter version of 
> the method. That method sets the new parameter ignoreNoneZeroExitCode to 
> false, which results in the exit code being checked. Before WAGON-465 the 
> exit code was never checked, it was only written to the log if there was an 
> error message.
> For us the site-deploy succeeds with wagon 2.10 but fails with 2.12 and 
> 3.0.0. It seems that the last chmod command returns 1 for reasons yet 
> unknown, but it outputs no message to stderr.
> I will try to investigate why chmod returns 1 and I'll create a patch that 
> restores the compatibility with version 2.10.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to