Repository: logging-log4net
Updated Branches:
  refs/heads/feature/cd-pipeline 552044696 -> fe42cc4d6


Jenkinsfile: attempt to run useradd to have a user that dotnet can attach to


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

Branch: refs/heads/feature/cd-pipeline
Commit: fe42cc4d6080673fb99edbeaa5abdf445794fa81
Parents: 5520446
Author: Dominik Psenner <dpsen...@apache.org>
Authored: Sat Jul 8 17:20:47 2017 +0200
Committer: Dominik Psenner <dpsen...@apache.org>
Committed: Sat Jul 8 17:20:47 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/fe42cc4d/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 219402e..d898db2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -164,16 +164,20 @@ pipeline {
                                        reuseNode true
                                }
                        }
+                       environment {
+                               USER='jenkins'
+                       }
                        steps {
                                // TODO FIXME
-                               sh 'echo $UID'
-                               sh 'echo $USER'
-                               sh 'echo $PWD'
-                               sh 'echo $HOME'
-                               sh 'id'
-                               sh 'pwd'
+                               sh 'export HOME=$(pwd)
+                               sh 'useradd --home-dir $HOME --shell /bin/bash 
--uid $(uid -u) --gid $(uid -g) --groups $(uid -g) -p -M $USER'
+                               sh 'echo user=$USER'
+                               sh 'echo pwd=$PWD'
+                               sh 'echo home=$HOME'
+                               sh 'echo `whoami`'
+                               sh 'echo id=`id`'
+                               sh 'echo pwd=`pwd`'
                                sh 'cat /etc/passwd'
-                               sh ''
                                // checkout scm
                                
                                // compile 

Reply via email to