Attempting to run everything on a node
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/6aeea6c4 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/6aeea6c4 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/6aeea6c4 Branch: refs/heads/master Commit: 6aeea6c4b915bd9f8be5eec54e96a1929ec9af95 Parents: 885aa97 Author: Dominik Psenner <[email protected]> Authored: Sat Jul 1 02:48:32 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Sat Jul 1 02:48:32 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/6aeea6c4/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 1ff0129..b508b08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,38 +21,33 @@ pipeline { options { timeout(time: 1, unit: 'HOURS') } - agent any + agent { label 'Windows' } environment { NAnt = 'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe' } stages { // TODO: find a better way to determine nant latest stage('Checkout') { - agent { label 'Windows' } steps { checkout scm } } stage('Build') { - agent { label 'Windows' } steps { bat "${NAnt} -buildfile:log4net.build" } } stage('Test on Windows') { - agent { label 'Windows' } steps { bat "${NAnt} -buildfile:tests\\nant.build" } } stage('Build-Site') { - agent { label 'Windodws' } steps { bat "${NAnt} -buildfile:log4net.build generate-site" } } stage('Deploy-Site') { - agent { label 'ubuntu' } when { branch 'master' }
