The plugin "SSH plugin" only allows you to run an SSH command on the server, 
since the "Publish over SSH" lets you send data and execute any command.

Out of curiosity I auditioned with "SSH plugin" and it also returns mvn: 
command not found, which leads me to understand that the problem is not in 
the plugins

Em terça-feira, 28 de abril de 2015 16:25:21 UTC-3, Erick Macedo escreveu:
>
> Hi,
>
> I'm using the plugin Publish over SSH to run a remote command maven on a 
> linux machine with properly configured maven.
>
> However when running mvn command is generated an error "bash: mvn: command 
> not found".
>
> The plugin is properly connecting the remote machine, as for testing in 
> the "Exec command" I include the command "ifconfig" and the same printed 
> data from the remote machine.
>
> However, when performing the command echo $ M2_HOME or echo $ PATH in the 
> "Exec command" he printed the local machine where the information jenkins 
> is the created, not the remote machine.
>
> Something very strange.
>
> Someone could help me?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6314b01c-2b24-476a-b22b-b8ca23cb4e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to