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 <dpsen...@apache.org> Authored: Tue Jul 18 17:32:06 2017 +0200 Committer: Dominik Psenner <dpsen...@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 + } } }