Jenkinsfile: alternative approach to set the HOME variable

Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/ca4eddd2
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/ca4eddd2
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/ca4eddd2

Branch: refs/heads/feature/cd-pipeline
Commit: ca4eddd2ef4203a7f0d1a7c84c2234665847b70a
Parents: 2eb01f3
Author: Dominik Psenner <[email protected]>
Authored: Wed Jul 5 23:47:53 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Wed Jul 5 23:47:53 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/ca4eddd2/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index c731e67..410a9ff 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -162,12 +162,11 @@ pipeline {
                                dockerfile {
                                        dir 
'buildtools/docker/builder-netstandard'
                                        reuseNode true
-
-                                       // workaround: 
https://github.com/NuGet/Home/issues/5106
-                                       args '-e HOME=/home/jenkins -e 
USER=jenkins'
                                }
                        }
                        steps {
+                               // workaround: 
https://github.com/NuGet/Home/issues/5106
+                               sh 'set HOME=$(pwd)'
                                sh "rm -rf bin/ tests/"
                                checkout scm
                                

Reply via email to