Re: Jenkins pipeline shell set $HOME to /var/www

2017-06-09 Thread Kirill Peskov
On 08.06.17 18:50, R. Tyler Croy wrote: > (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

Re: Jenkins pipeline shell set $HOME to /var/www

2017-06-08 Thread R. Tyler Croy
(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' > } > } > } > } > >

Jenkins pipeline shell set $HOME to /var/www

2017-06-08 Thread Changqin Xie
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