Re: Bug Publish over SSH

2017-11-06 Thread Naveen DN
I had the same problem...export PATH=$PATH: && mvn 
clean test solved my problem


On Wednesday, April 29, 2015 at 12:55:21 AM UTC+5:30, Erick Macedo wrote:
>
> 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?
>

-- 
Disclaimer: This e-mail and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended addressee, or the person 
responsible for delivering it to them, you may not copy, forward disclose 
or otherwise use it or any part of it in any way. To do so may be unlawful. 
If you receive this e-mail by mistake, please advise the sender immediately.

-- 
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/6293456d-6086-4952-8af3-a4cbd7bc61f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-05-01 Thread Daniel Beck
If you expect your command to have these values set from .bashrc: .bashrc is 
only loaded for interactive shells, which the Publish over SSH plugin likely is 
not. Find another way to define these, or explicitly load (source) .bashrc. 
'man bash', section 'invocation'

On 28.04.2015, at 23:16, Erick Macedo erickfmac...@gmail.com wrote:

 Hi,
 
 The user I am connecting is the correct user, not root.
 
 Are you referring to .bashrc the right remote machine?
 
 Is remote machine is a Ubuntu and the .bashrc is so.
 
 # JAVA
 export JAVA_HOME = / usr / lib / jvm / java-8-oracle
 
 # MAVEN
 export MAVEN_HOME = / usr / local / apache-maven-3.2.5
 export M2_HOME = / usr / local / apache-maven-3.2.5
 export M2 = $ M2_HOME / bin
 export PATH = $ M2: $ PATH
 
 A very strange thing is that when I run the echo $ PATH in the Exec command 
 it prints the variables of the local machine.
 
 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/d92784d9-0141-4ef1-a240-8570c627e302%40googlegroups.com.
 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/4BCB3283-4AF9-4E10-9225-A62CFF9A4452%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Erick Macedo
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.
For more options, visit https://groups.google.com/d/optout.


Re: Bug Publish over SSH

2015-04-28 Thread Slide
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=emailutm_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.
For more options, visit https://groups.google.com/d/optout.


Bug Publish over SSH

2015-04-28 Thread Erick Macedo
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/05c8eac6-eeca-488a-a9ce-3e4a31dae3c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.