You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2017/07/18 19:22:03 UTC
[13/50] [abbrv] logging-log4net git commit: Jenkinsfile: yet another
attempt to work out a working syntax
Jenkinsfile: yet another attempt to work out a working syntax
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/9f2527b0
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/9f2527b0
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/9f2527b0
Branch: refs/heads/feature/RollingFileAppender-NG
Commit: 9f2527b0cd51bbe5001505b6227bd7613a2a363b
Parents: 26835fa
Author: Dominik Psenner <dp...@apache.org>
Authored: Tue Jul 18 17:24:25 2017 +0200
Committer: Dominik Psenner <dp...@apache.org>
Committed: Tue Jul 18 17:24:25 2017 +0200
----------------------------------------------------------------------
Jenkinsfile | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/9f2527b0/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index a10e64f..dbdca76 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -32,16 +32,10 @@ pipeline {
steps {
deleteDir()
checkout scm
- JENKINS_UID = sh (
- script: 'stat -c "%u" ${env.WORKSPACE}',
- returnStdout: true
- ).strip()
- JENKINS_GID = sh (
- script: 'stat -c "%g" ${env.WORKSPACE}',
- returnStdout: true
- ).strip()
- sh 'echo ${env.JENKINS_UID}'
- sh 'echo ${env.JENKINS_GID}'
+ sh 'export JENKINS_UID=`stat -c "%u" ${env.WORKSPACE}`'
+ sh 'export JENKINS_GID=`stat -c "%g" ${env.WORKSPACE}`'
+ sh 'echo $JENKINS_UID'
+ sh 'echo $JENKINS_GID'
}
}
@@ -50,7 +44,7 @@ pipeline {
agent {
dockerfile {
dir 'buildtools/docker/builder-netstandard'
- args '--build-arg JENKINS_UID=${env.JENKINS_UID} --build-arg JENKINS_GID=${env.JENKINS_GID}'
+ args '--build-arg JENKINS_UID=$JENKINS_UID --build-arg JENKINS_GID=$JENKINS_GID'
reuseNode true
}
}