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/06/30 16:32:37 UTC
logging-log4net git commit: Refactored jenkinsfile
Repository: logging-log4net
Updated Branches:
refs/heads/develop c4afbb533 -> d50e81177
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/develop
Commit: d50e811774f91556c13332c709df70a51863cada
Parents: c4afbb5
Author: Dominik Psenner <dp...@apache.org>
Authored: Fri Jun 30 18:32:22 2017 +0200
Committer: Dominik Psenner <dp...@apache.org>
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"
+ }
}
}
}