Jenkinsfile: let's try it with an environment variable declaration

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

Branch: refs/heads/feature/RollingFileAppender-NG
Commit: 83d2b87b7e773e75e0d0cadb30fe4ca00e33898d
Parents: 1e38d08
Author: Dominik Psenner <dpsen...@apache.org>
Authored: Tue Jul 18 17:36:37 2017 +0200
Committer: Dominik Psenner <dpsen...@apache.org>
Committed: Tue Jul 18 17:36:37 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/83d2b87b/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index ff65f52..4530268 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -26,8 +26,10 @@ pipeline {
        agent {
                label 'ubuntu'
        }
-       def JENKINS_UID
-       def JENKINS_GID
+       environment {
+               JENKINS_UID = "null"
+               JENKINS_GID = "null"
+       }
        stages {
                // prepare node for builds
                stage('checkout') {

Reply via email to