From 8dc1c8c1d78008cde9e49f42e8ffdf3ba92c4c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20G=C3=B3rzy=C5=84ski?= Date: Thu, 10 Dec 2020 16:40:13 +0100 Subject: [PATCH] Add withEnv --- Jenkinsfile | 4 +++- SessionCompanion/SessionCompanion/ClientApp/.gitignore | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 69976c1..c755a04 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,7 +33,9 @@ pipeline { steps { dir('SessionCompanion') { sh "echo $USER" - sh 'dotnet build' + withEnv(["HOME=$(env.WORKSPACE)"]){ + sh 'dotnet build' + } } } } diff --git a/SessionCompanion/SessionCompanion/ClientApp/.gitignore b/SessionCompanion/SessionCompanion/ClientApp/.gitignore index e1f679b..292195b 100644 --- a/SessionCompanion/SessionCompanion/ClientApp/.gitignore +++ b/SessionCompanion/SessionCompanion/ClientApp/.gitignore @@ -7,7 +7,7 @@ /out-tsc # dependencies -/node_modules +#/node_modules # IDEs and editors /.idea