Repository: logging-log4net
Updated Branches:
  refs/heads/master c4afbb533 -> c72211698


Refactored jenkinsfile


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

Branch: refs/heads/master
Commit: d50e811774f91556c13332c709df70a51863cada
Parents: c4afbb5
Author: Dominik Psenner <[email protected]>
Authored: Fri Jun 30 18:32:22 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Fri Jun 30 18:32:22 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 35 ++++++++++++++---------------------
 1 file changed, 14 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/d50e8117/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 60577e5..bcc5ac5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,30 +17,23 @@
  * under the License.
  */
 
-node('Windows')
-{
-       // TODO: find a better way to determine nant latest
-       def NANT_LATEST="F:\\jenkins\\tools\\nant\\nant-0.92\\bin"
-       dir('build')
-       {
-               stage('Checkout')
-               {
+pipeline {
+       agent { label 'Windows' }
+       stages {
+               // TODO: find a better way to determine nant latest
+               def NANT_LATEST="F:\\jenkins\\tools\\nant\\nant-0.92\\bin"
+               stage('Checkout') {
                        checkout scm
                }
-
-               stage('Build')
-               {
-                       withEnv(["Path+NANT=$NANT_LATEST"])
-                       {
-                               bat "NAnt.exe -buildfile:log4net.build"
-                       }
+               stage('Build') {
+                       withEnv(["Path+NANT=$NANT_LATEST"]) {
+                               bat "NAnt.exe -buildfile:log4net.build"
+                       }
                }
-               stage('Test')
-               {
-                       withEnv(["Path+NANT=$NANT_LATEST"])
-                       {
-                               bat "NAnt.exe -buildfile:tests\\nant.build"
-                       }
+               stage('Test') {
+                       withEnv(["Path+NANT=$NANT_LATEST"]) {
+                               bat "NAnt.exe -buildfile:tests\\nant.build"
+                       }
                }
        }
 }

Reply via email to