Moved node statement into the stage statements
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/9432f621 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/9432f621 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/9432f621 Branch: refs/heads/master Commit: 9432f621c64df76196a2797ac1c63df577636b04 Parents: 0f58a56 Author: Dominik Psenner <[email protected]> Authored: Sat Jul 1 09:26:25 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Sat Jul 1 09:26:25 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/9432f621/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index c0d3848..7888012 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,32 +26,40 @@ pipeline { // TODO: find a better way to determine nant latest NAnt = 'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe' } - node { - stages { - stage('Checkout') { + stages { + stage('Checkout') { + node { steps { checkout scm } } - stage('Build') { + } + stage('Build') { + node { steps { bat "${NAnt} -buildfile:log4net.build" } } - stage('Test on Windows') { + } + stage('Test on Windows') { + node { steps { bat "${NAnt} -buildfile:tests\\nant.build" } } - stage('Build-Site') { + } + stage('Build-Site') { + node { steps { bat "${NAnt} -buildfile:log4net.build generate-site" } } - stage('Deploy-Site') { - when { - branch 'master' - } + } + stage('Deploy-Site') { + when { + branch 'master' + } + node { steps { echo 'This is a placeholder for the deployment of the site' }
