Jenkinsfile: removed the method definition

I'm simply uncapable of understanding the 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/bcd2281a
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/bcd2281a
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/bcd2281a

Branch: refs/heads/develop
Commit: bcd2281a7fe6ba932af19245d855933a04e8cacb
Parents: 2d8ac6a
Author: Dominik Psenner <[email protected]>
Authored: Mon Jul 3 14:45:30 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Mon Jul 3 14:45:30 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/bcd2281a/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 7a999fa..816c0c3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,7 @@
 pipeline {
        options {
                timeout(time: 1, unit: 'HOURS')
-               buildDiscarder(logRotator(numToKeepStr: '1'))
+               buildDiscarder(logRotator(numToKeepStr: '3'))
                skipDefaultCheckout()
        }
        agent {
@@ -30,7 +30,7 @@ pipeline {
                stage('build net-4.0') {
                        agent { label 'Windows' }
                        environment {
-                               NANT_BIN = getPathToNAntOnWindows()
+                               NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
                                checkout scm
@@ -41,7 +41,7 @@ pipeline {
                stage('build net-4.0-cp') {
                        agent { label 'Windows' }
                        environment {
-                               NANT_BIN = getPathToNAntOnWindows()
+                               NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
                                checkout scm
@@ -52,7 +52,7 @@ pipeline {
                stage('build net-4.5') {
                        agent { label 'Windows' }
                        environment {
-                               NANT_BIN = getPathToNAntOnWindows()
+                               NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
                                checkout scm
@@ -106,7 +106,7 @@ pipeline {
                                jdk 'JDK 1.8 (latest)'
                        }
                        environment {
-                               NANT_BIN = getPathToNAntOnWindows()
+                               NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
                                checkout scm
@@ -118,7 +118,7 @@ pipeline {
                stage('test on Windows') {
                        agent { label 'Windows' }
                        environment {
-                               NANT_BIN = getPathToNAntOnWindows()
+                               NANT_BIN = 
'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
                        }
                        steps {
                                checkout scm
@@ -156,8 +156,3 @@ pipeline {
        }
 }
 
-// TODO: find a better way to determine nant installation path
-def getPathToNAntOnWindows() {
-       'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
-}
-

Reply via email to