Jenkins environment variable in "execute shell script on report host using ssh"

56 views
Skip to first unread message

Shambhu Sharma

unread,
Feb 19, 2016, 2:18:22 AM2/19/16
to jenkins...@googlegroups.com
Hi,

      I am trying to do ssh to a linux machine and run some commands. I am using ssh agent plugin for this. I tried accessing Jenkins environment variable in "execute shell script on report host using ssh", but i am getting "command not found" error for that environment variable. Here is what i am trying:

In execute shell script on report host using ssh:
echo $BUILD_NUMBER

In log:
BUILD_NUMBER=163: Command not found.

And echo is not printing anything.

Please let me know how to access environment variable.

Regards,
Shambhu.

--
If linux doesn't have a solution, then u have a wrong problem.

Shambhu Kumar Sharma
91-98807 52962
Reply all
Reply to author
Forward
0 new messages