To that effect, check your .bashrc as on Debian, for instance, one of the
first things it does it not run anything in .bashrc if not starting as an
interactive process.

Richard.

On Wed, 29 Apr 2015 at 08:41 Slide <slide.o....@gmail.com> wrote:

> It works as the user that you are connecting as? Is there anything in the
> .bashrc that would set the path to mvn? Perhaps the Publish Over SSH
> doesn't run in such a way that the .bashrc file is loaded? Check into these
> things.
>
> On Tue, Apr 28, 2015 at 1:19 PM Erick Macedo <erickfmac...@gmail.com>
> wrote:
>
>> I can not understand this behavior.
>>
>> In Exec command: cd test / build-38 / project && ls && echo $ M2 && mvn -v
>>
>> This command does the following:
>>
>> 1 - cd test / build-38 / project (in this directory on the remote server)
>> 2 - ls (list the remote server content)
>> 3 - echo $ M2 (Prints $ M2 LOCAL server, where the jenkins is the created)
>> 4 - mvn -v (bash: mvn: command not found, here is also strange because
>> mvn -v works both on the local server, and the remote)
>>
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/24f4e71d-fba0-468d-8047-44d6f4c48225%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd2--GmN5YBMqPOf6%3DLUnG3JUz%2BASpV0WuRC%3DhL376rMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd2--GmN5YBMqPOf6%3DLUnG3JUz%2BASpV0WuRC%3DhL376rMQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui945yYL5FgJYDD6iFVWWdGe-p6JTCjn28F0KFDez3_1jRLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to