(replies inline) On Thu, 08 Jun 2017, Changqin Xie wrote:
> Using the following Jenkinsfile:
> #!/usr/bin/env groovy
>
> pipeline {
> agent any
>
> stages {
> stage('Deploy') {
> steps {
> sh 'echo $HOME'
> }
> }
> }
> }
>
> And I get $HOME == /var/www
> Why isn't it being "/home/www-data"? By the way, I am running Jenkins under
> the user www-data.
I would be willing to bet that the home directory for the www-data user is
actually set to `/var/www` in /etc/passwd.
Most Linux packages set the home-directory for that user to /var/www
- R. Tyler Croy
------------------------------------------------------
Code: <https://github.com/rtyler>
Chatter: <https://twitter.com/agentdero>
xmpp: [email protected]
% gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
------------------------------------------------------
--
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/20170608165035.a6azgzxiplldv47m%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature
