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:09 UTC
[19/50] [abbrv] logging-log4net git commit: Jenkinsfile: added a
script block
Jenkinsfile: added a script block
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/ed50566f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/ed50566f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/ed50566f
Branch: refs/heads/develop
Commit: ed50566fcb47db09bb0ab21d081e93a7bf614e8a
Parents: a914dad
Author: Dominik Psenner <dp...@apache.org>
Authored: Tue Jul 18 17:32:06 2017 +0200
Committer: Dominik Psenner <dp...@apache.org>
Committed: Tue Jul 18 17:32:06 2017 +0200
----------------------------------------------------------------------
Jenkinsfile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/ed50566f/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 16ff091..20cd33c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -32,10 +32,12 @@ pipeline {
steps {
deleteDir()
checkout scm
- def JENKINS_UID = sh(returnStdout: true, script: 'stat -c "%u" .').trim()
- def JENKINS_GID = sh(returnStdout: true, script: 'stat -c "%g" .').trim()
- echo $JENKINS_UID
- echo $JENKINS_GID
+ script {
+ def JENKINS_UID = sh(returnStdout: true, script: 'stat -c "%u" .').trim()
+ def JENKINS_GID = sh(returnStdout: true, script: 'stat -c "%g" .').trim()
+ echo $JENKINS_UID
+ echo $JENKINS_GID
+ }
}
}