I think I'm seeing a bug in the ssh build module.
I'm using the "Execute shell script on a remote host using ssh" build
option.
Suppose I chose:
builder@buildmachine:22
as the ssh target.
Now when jenkins runs, it automatically prefixes the script with the
environment variables:
USER="jenkins"
HOME="/var/lib/jenkins"
... which are incorrect (since I ssh-d in as builder, not jenkins)
Is there a way to stop jenkins prefixing the remote shell job with these
values?
I don't have any properties set in:
/configure
> Global properties.
I understand that I can override the values in my script text as follows
export USER=`whoami` && export HOME=/home/$USER && source
/home/builder/.bashrc
though its a PITA to do for each ssh job.
Thanks.
- Stu
--
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/a2fd5148-c95c-4ce7-9f7d-1a781b3cea84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.