Added node statement
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/b08bb617 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/b08bb617 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/b08bb617 Branch: refs/heads/master Commit: b08bb617e20934feeb7bdb5b85214f3e348b561d Parents: 6aeea6c Author: Dominik Psenner <[email protected]> Authored: Sat Jul 1 03:04:06 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Sat Jul 1 03:04:06 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/b08bb617/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index b508b08..c0d3848 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,36 +23,38 @@ pipeline { } agent { label 'Windows' } environment { + // TODO: find a better way to determine nant latest NAnt = 'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe' } - stages { - // TODO: find a better way to determine nant latest - stage('Checkout') { - steps { - checkout scm + node { + stages { + stage('Checkout') { + steps { + checkout scm + } } - } - stage('Build') { - steps { - bat "${NAnt} -buildfile:log4net.build" + stage('Build') { + steps { + bat "${NAnt} -buildfile:log4net.build" + } } - } - stage('Test on Windows') { - steps { - bat "${NAnt} -buildfile:tests\\nant.build" + stage('Test on Windows') { + steps { + bat "${NAnt} -buildfile:tests\\nant.build" + } } - } - stage('Build-Site') { - steps { - bat "${NAnt} -buildfile:log4net.build generate-site" - } - } - stage('Deploy-Site') { - when { - branch 'master' + stage('Build-Site') { + steps { + bat "${NAnt} -buildfile:log4net.build generate-site" + } } - steps { - echo 'This is a placeholder for the deployment of the site' + stage('Deploy-Site') { + when { + branch 'master' + } + steps { + echo 'This is a placeholder for the deployment of the site' + } } } }
