builder-netstandard: yet another try

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

Branch: refs/heads/develop
Commit: 34729e30a33e9b809321f6c551a905f8fc1d32c4
Parents: ceb5d4a
Author: Dominik Psenner <dpsen...@apache.org>
Authored: Sun Jul 9 16:57:54 2017 +0200
Committer: Dominik Psenner <dpsen...@apache.org>
Committed: Sun Jul 9 16:57:54 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile                                      | 4 ++++
 buildtools/docker/builder-netstandard/Dockerfile | 7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/34729e30/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 8eff08f..9fb6a70 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -42,7 +42,11 @@ pipeline {
                                        dir 
'buildtools/docker/builder-netstandard'
                                }
                        }
+                       environment {
+                               WORKSPACE = '/var/workspaces/jenkins'
+                       }
                        steps {
+                               sh 'cd $WORKSPACE'
                                sh 'export HOME=`pwd`'
                                sh 'echo home=$HOME'
                                sh 'echo user=$USER'

http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/34729e30/buildtools/docker/builder-netstandard/Dockerfile
----------------------------------------------------------------------
diff --git a/buildtools/docker/builder-netstandard/Dockerfile 
b/buildtools/docker/builder-netstandard/Dockerfile
index 8dc6710..97c20a6 100644
--- a/buildtools/docker/builder-netstandard/Dockerfile
+++ b/buildtools/docker/builder-netstandard/Dockerfile
@@ -7,7 +7,10 @@ MAINTAINER "d...@logging.apache.org"
 # install dependencies
 RUN apt-get update && apt-get install -y nant git
 
-# add user jenkins, otherwise dotnet will not be able to find a place to cache 
artifacts
+# add custom workspace that can be written by anyone
+RUN mkdir -p /var/workspaces && chmod 0777 /var/workspaces
+
+# add jenkins user that maps to the custom workspace
 RUN groupadd -r -g 12040 jenkins-slave
-RUN useradd --home-dir /home/jenkins-10025 --shell /bin/bash --uid 10025 --gid 
12040 --groups 12040 -p -M jenkins
+-RUN useradd --home-dir /var/workspaces/jenkins --shell /bin/bash --uid 10025 
--gid 12040 --groups 12040 -p -M jenkins
 

Reply via email to